Btrfs: optimize btrget/set/removexattr
authorChristoph Hellwig <hch@lst.de>
Thu, 28 Aug 2008 10:21:17 +0000 (06:21 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:04:07 +0000 (11:04 -0400)
commit95819c05732c511338b43c115ffbcee978c02888
tree4622f326207c53e42e7c9e8e8d14960e17190a30
parenteaa47d8612783807ef9703ebc9bf0d0f0455bf62
Btrfs: optimize btrget/set/removexattr

btrfs actually stores the whole xattr name, including the prefix ondisk,
so using the generic resolver that strips off the prefix is not very
helpful.  Instead do the real ondisk xattrs manually and only use the
generic resolver for synthetic xattrs like ACLs.

(Sorry Josef for guiding you towards the wrong direction here intially)

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/acl.c
fs/btrfs/inode.c
fs/btrfs/xattr.c
fs/btrfs/xattr.h