]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - queue-5.15/nfsd4-remove-obselete-comment.patch
Fixes for 5.15
[thirdparty/kernel/stable-queue.git] / queue-5.15 / nfsd4-remove-obselete-comment.patch
1 From 0c8dbd4cf80659d54b19a612cadb0ac7693d386a Mon Sep 17 00:00:00 2001
2 From: Sasha Levin <sashal@kernel.org>
3 Date: Tue, 26 Oct 2021 12:56:55 -0400
4 Subject: nfsd4: remove obselete comment
5
6 From: J. Bruce Fields <bfields@redhat.com>
7
8 [ Upstream commit 80479eb862102f9513e93fcf726c78cc0be2e3b2 ]
9
10 Mandatory locking has been removed. And the rest of this comment is
11 redundant with the code.
12
13 Reported-by: Jeff layton <jlayton@kernel.org>
14 Signed-off-by: J. Bruce Fields <bfields@redhat.com>
15 Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
16 ---
17 fs/nfsd/vfs.c | 3 ---
18 1 file changed, 3 deletions(-)
19
20 diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c
21 index 59e30cff920ca..925aa08ca1075 100644
22 --- a/fs/nfsd/vfs.c
23 +++ b/fs/nfsd/vfs.c
24 @@ -744,9 +744,6 @@ __nfsd_open(struct svc_rqst *rqstp, struct svc_fh *fhp, umode_t type,
25 path.dentry = fhp->fh_dentry;
26 inode = d_inode(path.dentry);
27
28 - /* Disallow write access to files with the append-only bit set
29 - * or any access when mandatory locking enabled
30 - */
31 err = nfserr_perm;
32 if (IS_APPEND(inode) && (may_flags & NFSD_MAY_WRITE))
33 goto out;
34 --
35 2.43.0
36