• C
    xfs: optimize the negative xattr caching · 510792ee
    Christoph Hellwig 提交于
    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: NChristoph Hellwig <hch@lst.de>
    Signed-off-by: NAlex Elder <aelder@sgi.com>
    510792ee
xfs_iops.c 29.2 KB