From: J. Bruce Fields Date: Tue, 26 Oct 2021 16:56:55 +0000 (-0400) Subject: nfsd4: remove obselete comment X-Git-Tag: v5.15.154~487 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e11c8a6e8c921f0f06d0b22698c67379144f1adf;p=thirdparty%2Fkernel%2Fstable.git nfsd4: remove obselete comment [ Upstream commit 80479eb862102f9513e93fcf726c78cc0be2e3b2 ] Mandatory locking has been removed. And the rest of this comment is redundant with the code. Reported-by: Jeff layton Signed-off-by: J. Bruce Fields Signed-off-by: Chuck Lever --- diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c index 59e30cff920ca..925aa08ca1075 100644 --- a/fs/nfsd/vfs.c +++ b/fs/nfsd/vfs.c @@ -744,9 +744,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;