]> www.infradead.org Git - users/hch/misc.git/commitdiff
NFSD: Minor cleanup in layoutcommit processing
authorSergey Bashirov <sergeybashirov@gmail.com>
Tue, 15 Jul 2025 15:32:18 +0000 (18:32 +0300)
committerChuck Lever <chuck.lever@oracle.com>
Sun, 21 Sep 2025 23:24:50 +0000 (19:24 -0400)
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>
fs/nfsd/nfs4proc.c

index 71b428efcbb59485d12d1041ca17bd1bc09e631a..04b8856d061573b5e5a900a1cb421fda11921d42 100644 (file)
@@ -2492,18 +2492,12 @@ nfsd4_layoutcommit(struct svc_rqst *rqstp,
        inode = d_inode(current_fh->fh_dentry);
 
        nfserr = nfserr_inval;
-       if (new_size <= seg->offset) {
-               dprintk("pnfsd: last write before layout segment\n");
+       if (new_size <= seg->offset)
                goto out;
-       }
-       if (new_size > seg->offset + seg->length) {
-               dprintk("pnfsd: last write beyond layout segment\n");
+       if (new_size > seg->offset + seg->length)
                goto out;
-       }
-       if (!lcp->lc_newoffset && new_size > i_size_read(inode)) {
-               dprintk("pnfsd: layoutcommit beyond EOF\n");
+       if (!lcp->lc_newoffset && new_size > i_size_read(inode))
                goto out;
-       }
 
        nfserr = nfsd4_preprocess_layout_stateid(rqstp, cstate, &lcp->lc_sid,
                                                false, lcp->lc_layout_type,