/* These three routines are used to recognize on-disk extended attributes that are in a recognized namespace. If the attribute is not recognized, "os2." is prepended to the name  */
static int is_os2_xattr(struct jfs_ea *ea)
/* These three routines are used to recognize on-disk extended attributes that are in a recognized namespace. If the attribute is not recognized, "os2." is prepended to the name  */
static int is_os2_xattr(struct jfs_ea *ea)
{
	if ((ea->namelen >= XATTR_SYSTEM_PREFIX_LEN) &&
	    !strncmp(ea->name, XATTR_SYSTEM_PREFIX, XATTR_SYSTEM_PREFIX_LEN))
		return false;
	if ((ea->namelen >= XATTR_USER_PREFIX_LEN) &&
	    !strncmp(ea->name, XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN))
		return false;
	if ((ea->namelen >= XATTR_SECURITY_PREFIX_LEN) &&
	    !strncmp(ea->name, XATTR_SECURITY_PREFIX,
		     XATTR_SECURITY_PREFIX_LEN))
		return false;
	if ((ea->namelen >= XATTR_TRUSTED_PREFIX_LEN) &&
	    !strncmp(ea->name, XATTR_TRUSTED_PREFIX, XATTR_TRUSTED_PREFIX_LEN))
		return false;
	return true;
}