[PATCH 11/18] nfsd: nfsd4_create_file(): remove NFSD_MAY_CREATE check.
NeilBrown <[email protected]>
| Newsgroups | gmane.linux.nfs,gmane.linux.file-systems |
|---|---|
| Message-ID | <[email protected]> |
From: NeilBrown <neil-+NVA1uvv1dVBDLzU/[email protected]> This check is redundant as dentry_create() called by nfsd4_vfs_create() performs the same check. Signed-off-by: NeilBrown <neil-+NVA1uvv1dVBDLzU/[email protected]> --- fs/nfsd/nfs4proc.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c index bce64e2061d7..65447b964733 100644 --- a/fs/nfsd/nfs4proc.c +++ b/fs/nfsd/nfs4proc.c @@ -331,12 +331,6 @@ nfsd4_create_file(struct svc_rqst *rqstp, struct svc_fh *fhp, goto out; } - if (d_really_is_negative(child)) { - status = fh_verify(rqstp, fhp, S_IFDIR, NFSD_MAY_CREATE); - if (status != nfs_ok) - goto out; - } - if (d_really_is_negative(child)) { status = nfsd4_vfs_create(fhp, &child, open); if (status != nfs_ok) -- 2.50.0.107.gf914562f5916.dirty