aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2021-10-26 12:56:55 -0400
committerJ. Bruce Fields <bfields@redhat.com>2021-11-01 17:17:14 -0400
commit80479eb862102f9513e93fcf726c78cc0be2e3b2 (patch)
tree19fb3477c266079d1c388c078fc7890f6eabaaee
parentnfsd: document server-to-server-copy parameters (diff)
downloadlinux-dev-80479eb862102f9513e93fcf726c78cc0be2e3b2.tar.xz
linux-dev-80479eb862102f9513e93fcf726c78cc0be2e3b2.zip
nfsd4: remove obselete comment
Mandatory locking has been removed. And the rest of this comment is redundant with the code. Reported-by: Jeff layton <jlayton@kernel.org> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
-rw-r--r--fs/nfsd/vfs.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c
index 5c76d6813517..c99857689e2c 100644
--- a/fs/nfsd/vfs.c
+++ b/fs/nfsd/vfs.c
@@ -730,9 +730,6 @@ __nfsd_open(struct svc_rqst *rqstp, struct svc_fh *fhp, umode_t type,
path.dentry = fhp->fh_dentry;
inode = d_inode(path.dentry);
- /* Disallow write access to files with the append-only bit set
- * or any access when mandatory locking enabled
- */
err = nfserr_perm;
if (IS_APPEND(inode) && (may_flags & NFSD_MAY_WRITE))
goto out;