Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp25132pxj; Wed, 23 Jun 2021 14:41:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJFkeGweGPvse/MANyShPH6wIBiDT+Gc4h1AvQrLnMFClEyWyzsODnD12/WC3njvDH5Uix X-Received: by 2002:a92:194b:: with SMTP id e11mr1056994ilm.38.1624484493258; Wed, 23 Jun 2021 14:41:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624484493; cv=none; d=google.com; s=arc-20160816; b=KEj7MjxakwJvnQFMmoDiixp0BL+atBYnXplaaNrW7fIKPhkjfjpMGGyFGLlHMgJ3ok uVXgB9FXPFzf6XswMyC+qxmxxuratshsZ0W0BplkUzCiu5j4vN/qJCTPwzHMdIuAE8wI JLq0y0yRxOFpsEbbR9Ti6MBfWNuPyQbWmWdQnDywkGL+/ieDBff7CzwCvcgHUzHpVF0h TTzuOZsLqNDVFkW5pERjHKOSWDbUO131wLF/NrexdwqfnPrJnyw19/FJgFuP2ruMlDeL j8uriT9P8ErzbY4XhL//GKPR3MpsiERgZzgZOequ2W0optrCuW4aszIkirC8ZdRCcAhp bF/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-filter; bh=9sNeFpKJd7lYHINt2UUVPhtvYks6akRRTWuCtfQ9E6k=; b=Ojz7Lsi5B2cFd7Zx9HS1VHSeRF4HaI/UYC6UQLBV5MIRHJ+eV4rDJJrc64rt41l3jA zab5TgKskRudNLkOnbAqPzzxGQFnJvLhtKBM4QaV7jrYy6MmqKNREa3GJMhx2rR1cR/v IwPKivC8leHVQctvpwIGnSMjhu9QV3DLCCUorurkVTMRdYeNOCm1Iqlga3dOrUVWBkgL o84rF/nlHsUF8Fib6hV8Yn7dWJZGqtME0qUTezVGlllrE+gcAecNSkqa2g3hun3CrPc9 ePz5SmZ8HqFcPcwgTxfor8q42se3mRmV6mphXv2YiFiHvxkAWTgZLDarPSa26F0Pn+4n 5kZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=Nl4cfpn7; 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 b1si1214342jar.75.2021.06.23.14.41.21; Wed, 23 Jun 2021 14:41:33 -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; dkim=pass header.i=@fieldses.org header.s=default header.b=Nl4cfpn7; 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 S229726AbhFWVnd (ORCPT + 99 others); Wed, 23 Jun 2021 17:43:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229688AbhFWVnd (ORCPT ); Wed, 23 Jun 2021 17:43:33 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA0FEC061574 for ; Wed, 23 Jun 2021 14:41:15 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id 48DB46208; Wed, 23 Jun 2021 17:41:15 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org 48DB46208 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1624484475; bh=9sNeFpKJd7lYHINt2UUVPhtvYks6akRRTWuCtfQ9E6k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Nl4cfpn7co0gTgLAmnu7ZPCGzfjQ14TtJPxcgxjIWHdMJQ3pfus69iy7dg4eGo6B3 Jv36/hh4PR4v51NYLlQhNxdRLhDPULGMOSnVMwBh4hRCuDh5hU5cwNnBfAafr6W2f4 5EhSRl/DzuU5wY35pRAHigD79VatwII1t0rdiZSM= Date: Wed, 23 Jun 2021 17:41:15 -0400 From: "J . Bruce Fields" To: Zhen Lei Cc: Chuck Lever , linux-nfs Subject: Re: [PATCH 1/1] nfsd: remove unnecessary oom message Message-ID: <20210623214115.GH20232@fieldses.org> References: <20210617090458.1491-1-thunder.leizhen@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210617090458.1491-1-thunder.leizhen@huawei.com> User-Agent: Mutt/1.5.21 (2010-09-15) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Thu, Jun 17, 2021 at 05:04:57PM +0800, Zhen Lei wrote: > Fixes scripts/checkpatch.pl warning: > WARNING: Possible unnecessary 'out of memory' message > > Remove it can help us save a bit of memory. On a quick check, I think the other 6 pr_err()s in here also (pretty unlikely) allocation failures, may as well remove those too? --b. > Signed-off-by: Zhen Lei > --- > fs/nfsd/filecache.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/fs/nfsd/filecache.c b/fs/nfsd/filecache.c > index 7629248fdd53..76d68b2b4ba2 100644 > --- a/fs/nfsd/filecache.c > +++ b/fs/nfsd/filecache.c > @@ -643,10 +643,8 @@ nfsd_file_cache_init(void) > > nfsd_file_hashtbl = kcalloc(NFSD_FILE_HASH_SIZE, > sizeof(*nfsd_file_hashtbl), GFP_KERNEL); > - if (!nfsd_file_hashtbl) { > - pr_err("nfsd: unable to allocate nfsd_file_hashtbl\n"); > + if (!nfsd_file_hashtbl) > goto out_err; > - } > > nfsd_file_slab = kmem_cache_create("nfsd_file", > sizeof(struct nfsd_file), 0, 0, NULL); > -- > 2.25.1 >