aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/write.c
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@hammerspace.com>2021-04-13 09:41:16 -0400
committerTrond Myklebust <trond.myklebust@hammerspace.com>2021-04-13 09:41:16 -0400
commit720869eb19f3161980d6d4631d3df7e8c5355993 (patch)
tree80976633eab2643d26ed42a547e45e75fb049783 /fs/nfs/write.c
parentNFS: Separate tracking of file nlinks cache validity from the mode/uid/gid (diff)
downloadlinux-dev-720869eb19f3161980d6d4631d3df7e8c5355993.tar.xz
linux-dev-720869eb19f3161980d6d4631d3df7e8c5355993.zip
NFS: Separate tracking of file mode cache validity from the uid/gid
chown()/chgrp() and chmod() are separate operations, and in addition, there are mode operations that are performed automatically by the server. So let's track mode validity separately from the file ownership validity. Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs/write.c')
-rw-r--r--fs/nfs/write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c
index 7a39b3d424da..61d1174935b6 100644
--- a/fs/nfs/write.c
+++ b/fs/nfs/write.c
@@ -1604,7 +1604,7 @@ static int nfs_writeback_done(struct rpc_task *task,
/* Deal with the suid/sgid bit corner case */
if (nfs_should_remove_suid(inode)) {
spin_lock(&inode->i_lock);
- nfs_set_cache_invalid(inode, NFS_INO_INVALID_OTHER);
+ nfs_set_cache_invalid(inode, NFS_INO_INVALID_MODE);
spin_unlock(&inode->i_lock);
}
return 0;