Skip to content

Commit 274365a

Browse files
sbashirochucklever
authored andcommitted
NFSD: Minor cleanup in layoutcommit processing
Remove dprintk in nfsd4_layoutcommit. These are not needed in day to day usage, and the information is also available in Wireshark when capturing NFS traffic. Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Sergey Bashirov <sergeybashirov@gmail.com> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
1 parent 832738e commit 274365a

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

fs/nfsd/nfs4proc.c

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2492,18 +2492,12 @@ nfsd4_layoutcommit(struct svc_rqst *rqstp,
24922492
inode = d_inode(current_fh->fh_dentry);
24932493

24942494
nfserr = nfserr_inval;
2495-
if (new_size <= seg->offset) {
2496-
dprintk("pnfsd: last write before layout segment\n");
2495+
if (new_size <= seg->offset)
24972496
goto out;
2498-
}
2499-
if (new_size > seg->offset + seg->length) {
2500-
dprintk("pnfsd: last write beyond layout segment\n");
2497+
if (new_size > seg->offset + seg->length)
25012498
goto out;
2502-
}
2503-
if (!lcp->lc_newoffset && new_size > i_size_read(inode)) {
2504-
dprintk("pnfsd: layoutcommit beyond EOF\n");
2499+
if (!lcp->lc_newoffset && new_size > i_size_read(inode))
25052500
goto out;
2506-
}
25072501

25082502
nfserr = nfsd4_preprocess_layout_stateid(rqstp, cstate, &lcp->lc_sid,
25092503
false, lcp->lc_layout_type,

0 commit comments

Comments
 (0)