summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@hammerspace.com>2022-02-23 23:46:20 +0300
committerTrond Myklebust <trond.myklebust@hammerspace.com>2022-02-26 02:50:13 +0300
commitf1ec501d08b78fd52e56124519e3e6cdecbfc16f (patch)
treec83aa508b77688f63255e7bc03716567a985b3d9 /fs
parentb622ffe1d9ecbac71f0cddb52ff0831efdf8fb83 (diff)
downloadlinux-f1ec501d08b78fd52e56124519e3e6cdecbfc16f.tar.xz
NFS: Remove unnecessary XATTR cache invalidation in nfs_fhget()
We should never expect the 'xattr_cache' to be non-null in that case, hence nfs_set_cache_invalid() is just going to optimise it away. Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/nfs/inode.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c
index f9fc506ebb29..7cecabf57b95 100644
--- a/fs/nfs/inode.c
+++ b/fs/nfs/inode.c
@@ -561,8 +561,6 @@ nfs_fhget(struct super_block *sb, struct nfs_fh *fh, struct nfs_fattr *fattr)
inode->i_gid = fattr->gid;
else if (fattr_supported & NFS_ATTR_FATTR_GROUP)
nfs_set_cache_invalid(inode, NFS_INO_INVALID_OTHER);
- if (nfs_server_capable(inode, NFS_CAP_XATTR))
- nfs_set_cache_invalid(inode, NFS_INO_INVALID_XATTR);
if (fattr->valid & NFS_ATTR_FATTR_BLOCKS_USED)
inode->i_blocks = fattr->du.nfs2.blocks;
else if (fattr_supported & NFS_ATTR_FATTR_BLOCKS_USED &&