diff options
author | Christoph Hellwig <hch@infradead.org> | 2011-07-26 15:07:29 +0000 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2011-07-26 22:06:50 -0500 |
commit | 510792ee29770a38dd409bf2b469ade2fea9eb52 (patch) | |
tree | ed442b019b3ce77c4cead40082e7229bb7044eed /fs/btrfs/xattr.h | |
parent | d1166ec792c96b65e4c18cbc5985944b5309d838 (diff) | |
download | linux-stable-510792ee29770a38dd409bf2b469ade2fea9eb52.tar.gz linux-stable-510792ee29770a38dd409bf2b469ade2fea9eb52.tar.bz2 linux-stable-510792ee29770a38dd409bf2b469ade2fea9eb52.zip |
xfs: optimize the negative xattr caching
Since the addition of file capabilities every write needs to read xattrs to
check if we have any capabilities to clear. In Linux 3.0 Andi Kleen added
a flag to cache the fact that we do not have any attributes on an inode.
Make sure to already mark a file as not having any attributes when reading
it from disk in case it doesn't even have an attribute fork. Based on an
earlier patch from Andi Kleen.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/btrfs/xattr.h')
0 files changed, 0 insertions, 0 deletions