Commit 80479eb8 authored by J. Bruce Fields's avatar J. Bruce Fields

nfsd4: remove obselete comment

Mandatory locking has been removed.  And the rest of this comment is
redundant with the code.
Reported-by: default avatarJeff layton <jlayton@kernel.org>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 6d91929a
...@@ -730,9 +730,6 @@ __nfsd_open(struct svc_rqst *rqstp, struct svc_fh *fhp, umode_t type, ...@@ -730,9 +730,6 @@ __nfsd_open(struct svc_rqst *rqstp, struct svc_fh *fhp, umode_t type,
path.dentry = fhp->fh_dentry; path.dentry = fhp->fh_dentry;
inode = d_inode(path.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; err = nfserr_perm;
if (IS_APPEND(inode) && (may_flags & NFSD_MAY_WRITE)) if (IS_APPEND(inode) && (may_flags & NFSD_MAY_WRITE))
goto out; goto out;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment