Linux Kernels

Btrfs: xattr fixes

This change “Btrfs: xattr fixes” (commit 3acd7ee) in Linux kernel is authored by Josef Bacik <jbacik [at] redhat.com> on Mon Nov 19 10:18:19 2007 -0500.

Description of "Btrfs: xattr fixes"

The change “Btrfs: xattr fixes” introduces changes as follows.

Btrfs: xattr fixes

This fixes two typos that Yan pointed out to me.  Thanks much,

Signed-off-by: Chris Mason <chris.mason@oracle.com>

Linux kernel releases containing commit 3acd7ee

The Linux kernel releases containing this commit are as follows.

Linux kernel code changes from "Btrfs: xattr fixes"

There are 4 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 fs/btrfs/xattr.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 
diff --git a/fs/btrfs/xattr.c b/fs/btrfs/xattr.c
index 984616cca254..33caaf5b4b0c 100644
--- a/fs/btrfs/xattr.c
+++ b/fs/btrfs/xattr.c
@@ -180,7 +180,7 @@ ssize_t btrfs_xattr_get(struct inode *inode, int name_index,
 	data_ptr = (unsigned long)((char *)(di + 1) +
 				   btrfs_dir_name_len(leaf, di));
 	read_extent_buffer(leaf, buffer, data_ptr,
-			   btrfs_dir_name_len(leaf, di));
+			   btrfs_dir_data_len(leaf, di));
 	ret = btrfs_dir_data_len(leaf, di);
 
 out:
@@ -490,7 +490,7 @@ struct xattr_handler btrfs_xattr_user_handler = {
 };
 
 struct xattr_handler btrfs_xattr_trusted_handler = {
-	.prefix = XATTR_USER_PREFIX,
+	.prefix = XATTR_TRUSTED_PREFIX,
 	.list	= btrfs_xattr_generic_list,
 	.get	= btrfs_xattr_trusted_get,
 	.set	= btrfs_xattr_trusted_set,

The commit for this change in Linux stable tree is 3acd7ee (patch).

Last modified: 2020/01/11 09:39