]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
nfsd4: remove obselete comment
authorJ. Bruce Fields <bfields@redhat.com>
Tue, 26 Oct 2021 16:56:55 +0000 (12:56 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Apr 2024 14:18:54 +0000 (16:18 +0200)
[ Upstream commit 80479eb862102f9513e93fcf726c78cc0be2e3b2 ]

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>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/vfs.c

index 59e30cff920cad07a5ebedaaf2f938a408cd3257..925aa08ca107503cc3d97442408bfac9a0524d76 100644 (file)
@@ -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;