aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/acl.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2008-08-28 06:21:16 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:07 -0400
commiteaa47d8612783807ef9703ebc9bf0d0f0455bf62 (patch)
treeaae589fac6573e2974935b357bfa687dbab2e718 /fs/btrfs/acl.c
parenteab922ec8907b8c506e799785e7e2d16eabe50e4 (diff)
btrfs: optmize listxattr
The ->list handler is really not useful at all, because we always call btrfs_xattr_generic_list anyway. After this is done find_btrfs_xattr_handler becomes unused, and it becomes obvious that the temporary name buffer allocation isn't needed but we can directly copy into the supplied buffer. Tested with various getfattr -d calls on varying xattr lists. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/acl.c')
-rw-r--r--fs/btrfs/acl.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/btrfs/acl.c b/fs/btrfs/acl.c
index b95147ef1c7..2f865311460 100644
--- a/fs/btrfs/acl.c
+++ b/fs/btrfs/acl.c
@@ -320,14 +320,12 @@ int btrfs_acl_chmod(struct inode *inode)
320 320
321struct xattr_handler btrfs_xattr_acl_default_handler = { 321struct xattr_handler btrfs_xattr_acl_default_handler = {
322 .prefix = POSIX_ACL_XATTR_DEFAULT, 322 .prefix = POSIX_ACL_XATTR_DEFAULT,
323 .list = btrfs_xattr_generic_list,
324 .get = btrfs_xattr_acl_default_get, 323 .get = btrfs_xattr_acl_default_get,
325 .set = btrfs_xattr_acl_default_set, 324 .set = btrfs_xattr_acl_default_set,
326}; 325};
327 326
328struct xattr_handler btrfs_xattr_acl_access_handler = { 327struct xattr_handler btrfs_xattr_acl_access_handler = {
329 .prefix = POSIX_ACL_XATTR_ACCESS, 328 .prefix = POSIX_ACL_XATTR_ACCESS,
330 .list = btrfs_xattr_generic_list,
331 .get = btrfs_xattr_acl_access_get, 329 .get = btrfs_xattr_acl_access_get,
332 .set = btrfs_xattr_acl_access_set, 330 .set = btrfs_xattr_acl_access_set,
333}; 331};