From patchwork Tue Nov 22 13:28:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Donglin Peng X-Patchwork-Id: 24370 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2200168wrr; Tue, 22 Nov 2022 05:31:18 -0800 (PST) X-Google-Smtp-Source: AA0mqf7N+ETK8iAdd+bGJOiXBxSjxvhxLCLwtBqbGuiCmf3IAFR9CtaMG7H0xJN51yvf8dC3Ltrn X-Received: by 2002:a17:90a:dc13:b0:212:c87e:dc8b with SMTP id i19-20020a17090adc1300b00212c87edc8bmr25806526pjv.229.1669123878029; Tue, 22 Nov 2022 05:31:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669123878; cv=none; d=google.com; s=arc-20160816; b=XdAADMoBgLg7VGbuDqs08J9Y58yFa0aL9y5m4EC3eagd/huaWd1O5FkoYYSRPO1xLl 6GgEOdwPVmrG6duIMCP/zPohC49LTrKVoScDjEsyBoBdST6SU3vFz4bnTgODJgkcr/9O Atzza27D79rBfXmKSWsQvEdgu+vRTK+gRzgPhocXukroOcE1L+6JNVvcehJgHBAcBzm6 eLCsTPyE4mEpDyH6PNI+td7kEpr9n0wzIBakXi3sBpZ0RDjXpfEFvn3S6FPCaEQl6A0d HOvfpaFBJF1/L5g5Ri3T9AO27fMo9m+5TBWUo+a4fknxcLd70RkIX+Ejld4FlQNJLzZx 3Y+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=95bxvB3m1WUxDVxDgwyJI7abCy5JBWykIIuSBhM3v5c=; b=fa1/WAFq8fpSCbyfbRDE/9iXvhUtFddPmUg090JvjWDQ5hGf7g/YktbRRb3gs6t87w Dp9fFk+8BPsncWbgxiVknoOP2wZLtKQ5vmF0CibanyaYkhHqQ731M7fYT9WvB+PohQ2e 8ttXvwRNutfyld3CkqqKHPyLHV/zBZZ6zQ4xSoRUd/rHkdzHepNc9Oi6LjEW+Vx0/awo wxCfiiII1NyXiWnWaWLXp6UIsCyBfREsVVYJLGA1GvyntAKrcNzBqGjpegY85wWA0keN oYzrr3I1khW8/S+a5SFdXJBcj+vE6A2ZghcsWEGhuANRaw+bwN0i0taEL6TvutGfJIVt 2uqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=qltDiL46; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y24-20020a63fa18000000b0046ffe3fea86si2100051pgh.97.2022.11.22.05.31.03; Tue, 22 Nov 2022 05:31:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=qltDiL46; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232835AbiKVN25 (ORCPT + 99 others); Tue, 22 Nov 2022 08:28:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232626AbiKVN24 (ORCPT ); Tue, 22 Nov 2022 08:28:56 -0500 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E80FD64547; Tue, 22 Nov 2022 05:28:51 -0800 (PST) Received: by mail-pj1-x102d.google.com with SMTP id b1-20020a17090a7ac100b00213fde52d49so14342889pjl.3; Tue, 22 Nov 2022 05:28:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=95bxvB3m1WUxDVxDgwyJI7abCy5JBWykIIuSBhM3v5c=; b=qltDiL46ZrbgP8NaY3ll908jwySCkQARbcOCWypjMjQQctaGmfP416MwFYa25trYjS gpwOmyjHsHJBGiOA7wAQJZBabbF2Qw9PakW6X1A2jUNCSMwSNHl0ywhMzeGhkMUN8HA6 98v1p/9ky7jCOd0YKW5XkUXhtx4lZteE5HP810Av20WpJJcVcvjX4Amj5T8L8Pti6kMX rWyUPzgXPXsmADpky4ltumvueC+UVCL+qHcL+weIpIbHKhxNtji7M3haLCKg4vn1JsPq AgmGdRATW4BqdyCcNDzWuQfnrnyTUrLirrQAKsxqWrprnQz6HBmd5pVZzLLKnUNQiGEu XLGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=95bxvB3m1WUxDVxDgwyJI7abCy5JBWykIIuSBhM3v5c=; b=QXeSZG6iw9ve8lq+opOBrGO3GUrX7mQky7jHZemsakC+oFQw0fwvm0iP515grV/gSG 3APGxYGO0xHO60FGJbtlQT47a+GlQG6XL/uNszhV49XeD2JW1124K73CgpIvMvZugEO2 VV1sRA0VeH18lMo2F5U3p3qDy10jIVawSFs6I/Nk8dX/WAfL7bikFg6B9EjnW1Rx6BMn nj80rVR98ZJJmkj9M1jvTtN57AUDvkfwDXdWJYWl8RsW+ZTHJ+1Gkd++Qktu7/1x4O1g 0MKWHbSFGdLR9QgmwyiJLg8ZNSnPNlP6v2T1fxxXJTpCmGR96kXHahSOUA1sfcKaw31s s33A== X-Gm-Message-State: ANoB5pnhF2rBbk1gFRfOBYui/oZH5FJ2JPy4/2gfokLT8UdG0LxoqhQK R2VHjOC4MBOJEPej/IPtKzQ= X-Received: by 2002:a17:902:cf0e:b0:17c:5b01:f227 with SMTP id i14-20020a170902cf0e00b0017c5b01f227mr3766303plg.3.1669123731346; Tue, 22 Nov 2022 05:28:51 -0800 (PST) Received: from ubuntu.localdomain ([60.221.110.5]) by smtp.gmail.com with ESMTPSA id x3-20020aa79403000000b0056d2317455bsm10652181pfo.7.2022.11.22.05.28.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Nov 2022 05:28:50 -0800 (PST) From: Donglin Peng To: trond.myklebust@hammerspace.com, anna@kernel.org Cc: linux-kernel@vger.kernel.org, linux-nfs@vger.kernel.org, Donglin Peng Subject: [PATCH] NFS: dprintk() should not print negative inode number Date: Tue, 22 Nov 2022 05:28:15 -0800 Message-Id: <20221122132815.15673-1-dolinux.peng@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750203239505316038?= X-GMAIL-MSGID: =?utf-8?q?1750203239505316038?= The type of the i_ino member of the inode structure is unsigned long. There are some occurrences where dprintk() outputs a negative inode number.This leads to confusion and more difficult to read debugging. Fixes: 9e6e70f8d8b6 ("NFSv4: Support NFSv4 optional attributes in the struct nfs_fattr") Signed-off-by: Donglin Peng --- fs/nfs/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index 6b2cfa59a1a2..53d8704e07c5 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c @@ -2081,7 +2081,7 @@ static int nfs_update_inode(struct inode *inode, struct nfs_fattr *fattr) if (S_ISDIR(inode->i_mode)) nfs_force_lookup_revalidate(inode); attr_changed = true; - dprintk("NFS: change_attr change on server for file %s/%ld\n", + dprintk("NFS: change_attr change on server for file %s/%lu\n", inode->i_sb->s_id, inode->i_ino); } else if (!have_delegation)