Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp440706pxb; Tue, 14 Sep 2021 00:35:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9r2EZOevzxcewSNPrOytSvsh7aPqQSqm7KwB27NWWHMz1ud6liC+OXLl5Q5F9py88WIVc X-Received: by 2002:a6b:7106:: with SMTP id q6mr12921730iog.174.1631604929507; Tue, 14 Sep 2021 00:35:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631604929; cv=none; d=google.com; s=arc-20160816; b=WzpALnMMXxcaxhH1X2HKeWVK6geiKdP8Vx47II0JAQm8m0oH/RQPar3+bUpWN33nct uTxlwqXwYH7toHD1knffrezoF2OBQgK46+51ejQSWV4/BuGPCpEPr0rJNYlBbbh+JxrA Zy8I67LOVt+qGYp0zY3OpF/d9IfK0YJqRXWfxo57bT9JazcmZ3OaufyCp9j7VBodunWg Iv2tbVnwwaeDTAwMwU5ilDn/Se5kc99+pgsq0MoBol+NGLhYP8ybkV0f1X81x4Wp8cpn 8yttQGx+9uXUO2jQVyZY3+O7Ts/ajOm1B/TwMWTuWZ+0nvZ4IL/oeX5XwX6t+t0gelIR FyMg== 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=CDLcpu946MbvuRuUN1EHiKI2jWbJ59wOnelshGEwx5o=; b=0o1UYi8UtNn8901yAlyfRETdBZxoq4BZip3Zw0FVUr5tAggSxJBhJP+LBGmJNHgr9g 6eJ8E2k7OSunEzXQca5jBQEOVbFqSdf3QCRT+9wCsKkf35h2k2Z3gZZbJu4GqAKAPa7j DkFGfju3qcCE6QsoX7SXYNlj/oQTOyLn3AsQUBM7OLTprDfhcYbzz7Uu55dNBZi85YTW nl/sZbMajo3FqnrgsvSudcX0a/m3rBQNUCf4q+4NrJ1gGiIGXlpShsnIhsGOezcrmdH2 mYJuNrRGR9uo6i+wDo7ouJaHSd5AVKE82G0m7EiimoUOdd+1niY/zoKd+fzwTPOjepLA VeAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=EGcTSzQ7; 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 a10si10921937iow.65.2021.09.14.00.35.17; Tue, 14 Sep 2021 00:35:29 -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=EGcTSzQ7; 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 S241228AbhINHga (ORCPT + 99 others); Tue, 14 Sep 2021 03:36:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240768AbhINHfp (ORCPT ); Tue, 14 Sep 2021 03:35:45 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3FF7C06178C for ; Tue, 14 Sep 2021 00:34:10 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id nn5-20020a17090b38c500b0019af1c4b31fso1270838pjb.3 for ; Tue, 14 Sep 2021 00:34:10 -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=CDLcpu946MbvuRuUN1EHiKI2jWbJ59wOnelshGEwx5o=; b=EGcTSzQ7LymxzMTmcq+dY1RH9ZVtzdq+L+Vjkit29Ww41oJngNrtZ5zm4052jkZaiC 7p5aUcuMt6czSQXWt/P7YkfR8Ulh2OdcakbGakJT015ZoKEn38W1rljR2BFsXSDp9ka+ F9mDBF9RU/Hw9axHyaHS2b3yPsMb9t+e3Od/Xku/gOZTsipnJAFz4qYQsqFnqWf5LS0w qPaRpBgAq+f5zw1gxYt1jFvBh+OBB5rYVBWGCM9yx5HNHrx9ytpfVq9LNIiEm1vzlJBO 7pO4zaMTd9lpyex/J8rVnUKWsUjiTHpJuVl++l1wgTf5D24yJI58JBZI0UiXD+wis+Lh ke1w== 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=CDLcpu946MbvuRuUN1EHiKI2jWbJ59wOnelshGEwx5o=; b=xOwOHCDGOxZ3+h7yXD4/oJPRYWak6zwm7xJazmuD2B9tha5CMBmtScMvyFKe9ajGfy yrDMVDYE4twvEzBIeUOv7mZXvMN0ecZRCk8BkLbift9tT/SeJP2cBwj6et9WnfWTtcX8 xKlgXh8hV3oaEO+5YaC2egZTNOTFh10nuxa+tAVYvuiawxziCUHDIE89VnOE1DAqSciC d77xVO0FFFfNzA7eaCXBzXxqwI6dxX2UKfbHmKe5yZALYZBzMWJ+bSgPhaIxGrjQjueM APFq5nlViWIpdgAouZZXLDDaqXNd7/gmZffcvODcVT8RMd2JiPMZbxL597Szntc5ON2i ZkJA== X-Gm-Message-State: AOAM531H/2rofAmRlHHt8f1cqL31oaoUJe0aIaUCbUpHlPAFiPwqDr17 MJ6ebZ0gF/YWTKq22in0/FSS8Q== X-Received: by 2002:a17:902:c40e:b0:138:e2f9:6c97 with SMTP id k14-20020a170902c40e00b00138e2f96c97mr13773344plk.26.1631604850440; Tue, 14 Sep 2021 00:34:10 -0700 (PDT) Received: from localhost.localdomain ([139.177.225.244]) by smtp.gmail.com with ESMTPSA id s3sm9377839pfd.188.2021.09.14.00.34.04 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Sep 2021 00:34:10 -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 11/76] 9p: allocate inode by using alloc_inode_sb() Date: Tue, 14 Sep 2021 15:28:33 +0800 Message-Id: <20210914072938.6440-12-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/9p/vfs_inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c index 795706520b5e..5311f35accf5 100644 --- a/fs/9p/vfs_inode.c +++ b/fs/9p/vfs_inode.c @@ -223,7 +223,7 @@ v9fs_blank_wstat(struct p9_wstat *wstat) struct inode *v9fs_alloc_inode(struct super_block *sb) { struct v9fs_inode *v9inode; - v9inode = kmem_cache_alloc(v9fs_inode_cache, GFP_KERNEL); + v9inode = alloc_inode_sb(sb, v9fs_inode_cache, GFP_KERNEL); if (!v9inode) return NULL; #ifdef CONFIG_9P_FSCACHE -- 2.11.0