Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp443351pxb; Tue, 14 Sep 2021 00:40:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVIujujZKo8YAGQfSk2p+JoIczAFIuZQy7DDi+F2WeIe6lo+7m3Y0OTEc/RWJVHQ8RF1KA X-Received: by 2002:a92:dd88:: with SMTP id g8mr10839213iln.306.1631605249010; Tue, 14 Sep 2021 00:40:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631605248; cv=none; d=google.com; s=arc-20160816; b=dsq2XLFvg1E2kmMbBSDeF8CXmcXnJMMiV4LclGsBgaP8JrYq3YOW6aYKaogJPi76y8 XphBNe1gH+gMinZ9ZSmTgC74ImuJ6hAzCYEzSXOv9a5AkU2jLFl0/aXjPsI0ZZK+d02e IKLanwNdQsY3GdHWZqmcOdrVAVDKpYSHKTPgfaOBFbWbIb5uraaUAea/Sdk5rS3qKpia oAdc0cZFbiTn/PZh7XOY7INAg4t3b0tLWHpvjcDxV1virwzyiYbbs0ePJEL4mE+gvNTd 7Ral0z3CrZ/efxAzowTCrkntf/qrJeDFIiT3uDEI7hh5oGJ5KfzmwaBefAm9zjp8m7lc BbXA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=PmuZFesbpf8uQ/0U/I68C6j1VVIpTQ3yrDpf1uAvzL4=; b=nGs5CZaia6kgY0jxq1G3j6IqzjcNxR3Fvy6VHoyjhA/iblhc2rGgAUwkXPAw5aRhB4 lu/zbsnole6J4CclEoEsuuM5fxQRXLKjDBfPQ2VM9VoYxAMcp4uEzcBex8UHam/GU/w8 vA2+lpUKfH/6tu0AqaWu3tSMj6XK0tX278D2eOyyzfn6gPrWQ4T5odUFiFFk98MN0t31 rIhpxAw9DbPJlM3E+AZfFUyPTzulkRd/QgUe5jea8pbipTksnF7RS2Wl4oJ919plVaph oRUBLqpCmR9Lmm97GHPfQN6ynFEuhfHRa99/VwG8cjlIXrPQwRAwZZ62RoiUfMkuA03K 5VPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=bgSbC9nM; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s24si10294350jan.84.2021.09.14.00.40.36; Tue, 14 Sep 2021 00:40:48 -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=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=bgSbC9nM; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241064AbhINHlo (ORCPT + 99 others); Tue, 14 Sep 2021 03:41:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241034AbhINHlQ (ORCPT ); Tue, 14 Sep 2021 03:41:16 -0400 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6EC1C0611F8 for ; Tue, 14 Sep 2021 00:37:53 -0700 (PDT) Received: by mail-pj1-x1032.google.com with SMTP id w19-20020a17090aaf9300b00191e6d10a19so2067172pjq.1 for ; Tue, 14 Sep 2021 00:37:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PmuZFesbpf8uQ/0U/I68C6j1VVIpTQ3yrDpf1uAvzL4=; b=bgSbC9nMXbIXpDtFIbUvIIBISucVdUce6cYRarD5Z+zO9DijpzRA0GAKx4Qr7XknRb IAa6m+MXFI0tcemn4JjcyIkXKnkn9KfmBAp/hMCGMwHnkAXA1BP6ikF+03Bm5Ofbae8/ /nTLzMwKnBb/FfZARyMkXjPhVfl/+/uAtq93mA8m+ZMqy1vcfPbnhArVMb/QC4peXL87 iq1K2GDZJvUR7B6LHv6aaUmHEYlmqlaAtPeJ5LVM/yKgO3U4JSdOOVUNKlESs8GBZJrc NWa/Tas0VNSeOvqaLMV2UYYE9Hu/CfqNNYdxpTPdtOZRg0ubamiyDOeOuH1ZgMlBLEUw D9Fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=PmuZFesbpf8uQ/0U/I68C6j1VVIpTQ3yrDpf1uAvzL4=; b=mcLT4PbCWK4E+WthQQ0f1WwNKvLRHth119gWTx/uOG+EI+mFTz8XOUYXlcGsvPnCHd ez9xiNI8l9WTCmqhv7NSCis5xjEUBO4sVVRMpxjorz2brHrno2Vpb1F59d1uh5vcXGdy Zahb69TrOxJkpTiUMhoxdIFZOYrEFZVU1iC8K6o5F/+23MxRLuj3nz4GdQcXvktetHCP 7D1BSCcXkpRmTIXS6dm62VlRgz2UfZaYzqFe5Y6cHNFoGMbPmOCmCzx5nqUxOcK71Xvy NCD+i5CbuKA/shh61/XyWVnwM10LlQyQNargTrb2g5leOy4uSSXtGJkkJhWHVmj8s0xX k/vg== X-Gm-Message-State: AOAM532PrdMXREXluPyF1r+2rHvID9TBRYoI0L+WXs/1sBJwm+s5ToXG afhTUst6mMdmuJExADLDcUJ4aw== X-Received: by 2002:a17:90b:390c:: with SMTP id ob12mr567246pjb.196.1631605073432; Tue, 14 Sep 2021 00:37:53 -0700 (PDT) Received: from localhost.localdomain ([139.177.225.244]) by smtp.gmail.com with ESMTPSA id s3sm9377839pfd.188.2021.09.14.00.37.47 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Sep 2021 00:37:53 -0700 (PDT) From: Muchun Song To: willy@infradead.org, akpm@linux-foundation.org, hannes@cmpxchg.org, mhocko@kernel.org, vdavydov.dev@gmail.com, shakeelb@google.com, guro@fb.com, shy828301@gmail.com, alexs@kernel.org, richard.weiyang@gmail.com, david@fromorbit.com, trond.myklebust@hammerspace.com, anna.schumaker@netapp.com Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-nfs@vger.kernel.org, zhengqi.arch@bytedance.com, duanxiongchun@bytedance.com, fam.zheng@bytedance.com, smuchun@gmail.com, Muchun Song Subject: [PATCH v3 41/76] nfs: allocate inode by using alloc_inode_sb() Date: Tue, 14 Sep 2021 15:29:03 +0800 Message-Id: <20210914072938.6440-42-songmuchun@bytedance.com> X-Mailer: git-send-email 2.21.0 (Apple Git-122) In-Reply-To: <20210914072938.6440-1-songmuchun@bytedance.com> References: <20210914072938.6440-1-songmuchun@bytedance.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org The inode allocation is supposed to use alloc_inode_sb(), so convert kmem_cache_alloc() to alloc_inode_sb(). Signed-off-by: Muchun Song --- 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 853213b3a209..b759264885e9 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c @@ -2221,7 +2221,7 @@ static int nfs_update_inode(struct inode *inode, struct nfs_fattr *fattr) struct inode *nfs_alloc_inode(struct super_block *sb) { struct nfs_inode *nfsi; - nfsi = kmem_cache_alloc(nfs_inode_cachep, GFP_KERNEL); + nfsi = alloc_inode_sb(sb, nfs_inode_cachep, GFP_KERNEL); if (!nfsi) return NULL; nfsi->flags = 0UL; -- 2.11.0