]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: optimize the negative xattr caching
authorChristoph Hellwig <hch@infradead.org>
Tue, 26 Jul 2011 15:07:29 +0000 (15:07 +0000)
committerAlex Elder <aelder@sgi.com>
Wed, 27 Jul 2011 03:06:50 +0000 (22:06 -0500)
commitaa051b90f9e8a3c6e5b899ee97de37797dfe37d1
treeed442b019b3ce77c4cead40082e7229bb7044eed
parentad63b472a082f7948b4eed7f43c8c5cf946865d6
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>
fs/xfs/linux-2.6/xfs_iops.c