Skip to content

Commit fb4e525

Browse files
Mike SnitzerTrond Myklebust
authored andcommitted
nfs/localio: remove redundant suid/sgid handling
nfs_writeback_done() will take care of suid/sgid corner case. Signed-off-by: Mike Snitzer <[email protected]> Signed-off-by: Trond Myklebust <[email protected]>
1 parent 288d722 commit fb4e525

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

fs/nfs/localio.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -521,12 +521,7 @@ nfs_local_write_done(struct nfs_local_kiocb *iocb, long status)
521521
}
522522
if (status < 0)
523523
nfs_reset_boot_verifier(inode);
524-
else if (nfs_should_remove_suid(inode)) {
525-
/* Deal with the suid/sgid bit corner case */
526-
spin_lock(&inode->i_lock);
527-
nfs_set_cache_invalid(inode, NFS_INO_INVALID_MODE);
528-
spin_unlock(&inode->i_lock);
529-
}
524+
530525
nfs_local_pgio_done(hdr, status);
531526
}
532527

0 commit comments

Comments
 (0)