Commit 3acd7ee8 authored by Josef Bacik's avatar Josef Bacik Committed by Chris Mason

Btrfs: xattr fixes

This fixes two typos that Yan pointed out to me.  Thanks much,
Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent 1caf9342
...@@ -180,7 +180,7 @@ ssize_t btrfs_xattr_get(struct inode *inode, int name_index, ...@@ -180,7 +180,7 @@ ssize_t btrfs_xattr_get(struct inode *inode, int name_index,
data_ptr = (unsigned long)((char *)(di + 1) + data_ptr = (unsigned long)((char *)(di + 1) +
btrfs_dir_name_len(leaf, di)); btrfs_dir_name_len(leaf, di));
read_extent_buffer(leaf, buffer, data_ptr, 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); ret = btrfs_dir_data_len(leaf, di);
out: out:
...@@ -490,7 +490,7 @@ struct xattr_handler btrfs_xattr_user_handler = { ...@@ -490,7 +490,7 @@ struct xattr_handler btrfs_xattr_user_handler = {
}; };
struct xattr_handler btrfs_xattr_trusted_handler = { struct xattr_handler btrfs_xattr_trusted_handler = {
.prefix = XATTR_USER_PREFIX, .prefix = XATTR_TRUSTED_PREFIX,
.list = btrfs_xattr_generic_list, .list = btrfs_xattr_generic_list,
.get = btrfs_xattr_trusted_get, .get = btrfs_xattr_trusted_get,
.set = btrfs_xattr_trusted_set, .set = btrfs_xattr_trusted_set,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment