mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 03:53:37 +02:00
nfs/localio: remove redundant suid/sgid handling
nfs_writeback_done() will take care of suid/sgid corner case. Signed-off-by: Mike Snitzer <snitzer@kernel.org> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
This commit is contained in:
parent
288d7224db
commit
fb4e525da1
|
|
@ -521,12 +521,7 @@ nfs_local_write_done(struct nfs_local_kiocb *iocb, long status)
|
|||
}
|
||||
if (status < 0)
|
||||
nfs_reset_boot_verifier(inode);
|
||||
else if (nfs_should_remove_suid(inode)) {
|
||||
/* Deal with the suid/sgid bit corner case */
|
||||
spin_lock(&inode->i_lock);
|
||||
nfs_set_cache_invalid(inode, NFS_INO_INVALID_MODE);
|
||||
spin_unlock(&inode->i_lock);
|
||||
}
|
||||
|
||||
nfs_local_pgio_done(hdr, status);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user