Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp111988pxk; Tue, 15 Sep 2020 22:42:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdHizvHunYxAtBTwF2X+C93Ug4JB7zGN+Ivo2u3StGfkJ9iu7EzQoMJDbJbigXPnEwiSnE X-Received: by 2002:a17:906:2618:: with SMTP id h24mr22727095ejc.198.1600234955701; Tue, 15 Sep 2020 22:42:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600234955; cv=none; d=google.com; s=arc-20160816; b=B26uZs2avYsATyc1G/IanDDvWYjFtb4GznMr06fMz5i/98/jGxwwgd6vdeNvcshDk6 wdN3HJ5niXtQ+oDzVP2QArPkqfSKgdIqWu3nEaVPgKZFC68MxxeLioD+axA9AJku4K2n iWQ3wmchrzsdZtw5gIkb692P6YJy5OPj+pclIBKPoEzUE6laR02HXrkHznRDO8UBEMdj JateIozGPWY5tpBcKTMigmONT2byNdPVGwXDAKHLy1CPv09WY+/h2SgSlDw6hh6CsO6V mRW9xOvkd5FZqa+f3pQkw5GyTX5Siat/olNhKAyosNmkZsYgi+YCNeQhIiKzGeEhKUiw vLcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=yrI79b3uwWN8a4WBIiqnQokZYHwvZrQnaLru+CHWOVw=; b=IGp90yQG12X190oLh3uzi4YnBMr1NUoXXLzNcXzHiKNIrqfvZinXhcpXh9AuScBa3Y tdlauCmCfiYDyEuV+YykY59TJjIbqmnurEO6aB+I2Pta6nuZKsGzdSJlyzSQdbGb3jx1 5zIrmYofRGqvrAgjVnRojXQGcvmkd6zJTWt0Pa3Bj+y25BAfCpnQ/QMIoMlrewryJK1t nO+sHW2H1wepT8mPpBy5O1Ihsfsix5rGGuxYWItOU0nPfKEipEFAnW6CowkbxQ40NyTz 4mVgv5hRF8Bm2jP4YCB9w4yt81BqWuu955olclKsdFfXUKSzgmBdwf6eEBEvstP22wQl YDSQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s22si10825816ejr.179.2020.09.15.22.42.02; Tue, 15 Sep 2020 22:42:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726180AbgIPFlg (ORCPT + 99 others); Wed, 16 Sep 2020 01:41:36 -0400 Received: from smtp23.cstnet.cn ([159.226.251.23]:38510 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726068AbgIPFlg (ORCPT ); Wed, 16 Sep 2020 01:41:36 -0400 Received: from localhost (unknown [159.226.5.99]) by APP-03 (Coremail) with SMTP id rQCowAAnnRUMpWFfe1tFAg--.2699S2; Wed, 16 Sep 2020 13:39:24 +0800 (CST) From: Xu Wang To: trond.myklebust@hammerspace.com, anna.schumaker@netapp.com, bfields@fieldses.org, chuck.lever@oracle.com, davem@davemloft.net, kuba@kernel.org, linux-nfs@vger.kernel.org, netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Xu Wang Subject: [PATCH] sunrpc: cache : Replace seq_printf with seq_puts Date: Wed, 16 Sep 2020 05:39:18 +0000 Message-Id: <20200916053918.25741-1-vulab@iscas.ac.cn> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: rQCowAAnnRUMpWFfe1tFAg--.2699S2 X-Coremail-Antispam: 1UD129KBjvdXoWrur4UGr48WFW7JFWrWryrCr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pyxotu46lvutnvoduhdfq/1tbiCwUBA1z4jcHRVQAAsg Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org seq_puts is a lot cheaper than seq_printf, so use that to print literal strings. Signed-off-by: Xu Wang --- net/sunrpc/cache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/sunrpc/cache.c b/net/sunrpc/cache.c index baef5ee43dbb..9e68e443f497 100644 --- a/net/sunrpc/cache.c +++ b/net/sunrpc/cache.c @@ -1436,10 +1436,10 @@ static int c_show(struct seq_file *m, void *p) cache_get(cp); if (cache_check(cd, cp, NULL)) /* cache_check does a cache_put on failure */ - seq_printf(m, "# "); + seq_puts(m, "# "); else { if (cache_is_expired(cd, cp)) - seq_printf(m, "# "); + seq_puts(m, "# "); cache_put(cp, cd); } -- 2.17.1