Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp443236pxb; Tue, 14 Sep 2021 00:40:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwGGMXn6Glmde/31OerhWw0Eumi5nIjsrngI622pdO5RHaJEmOlREnII/5hVCne6a7Cc5u X-Received: by 2002:a05:6e02:e53:: with SMTP id l19mr4439572ilk.217.1631605237187; Tue, 14 Sep 2021 00:40:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631605237; cv=none; d=google.com; s=arc-20160816; b=iHnvNZ9Jz6Oo6SX20tIKPijp+FjUrM+2orVr9qTTFs9XPuWZF01CHLi+Wd7vxl1lKW YhGu42cBMVWhxLy+pq+h7sBr1jumx5fUtRoElC9C5BBtjkCqQx0Z6M759mf/LJ+Ogbm8 HIf5mFWHbvJZkEgTdxXo8mgquf2+G/McJsDh502Dx2rEt9CRHWctK9lHrN/ZPAsYQt4Q 1p7t53erjvcedN/uYHSodR/0YSqTFvu8LxqKgGP2mXvW6oYsfnQ7lJWwsv8p3bbbmel1 5U84A7gDXd6C6a9GNgEXFdcqcO2TJxf3Qs/ovlSsWEKRynnpiKq1RSewhEXmrg/CLTJY 2GJw== 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=5iPQxmNGx8c9eY92mOopijUPDhnAgGjqRDHLpg8cWBc=; b=nrvPHn67Q+obC6u6faweuVwL1hBmsVr+2l1PezyYul+1Fk0lmB4ST69B0+mh6UFeYV eDs43VVGP8Fh1MF6zzoZANckCi86WnqMnby/FPT4Lk9fqr8SrpLOPYycwgqPljTbJRmY 3fypZzTqU6Uky7JRWalh9rXnXz3Pr9rDU9+FFkc7eigOZ4j6qxQoefPESNp0UI9r/R0o uHI+DQtZCfUutcTbaU8CeJDiFdQZVtHC5WXom8IF0kwzrqauCoOkh2cg4PEj5Gez16mB Yl3kZVz1HAZy8fjDGYhVP90tIZKLaeeJB6CFejSijvMokXMF/jrQp5eaRwnd+yPHoMqF KVOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=KnZSj8Il; 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 o20si11025476iov.71.2021.09.14.00.40.24; Tue, 14 Sep 2021 00:40:37 -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=KnZSj8Il; 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 S241695AbhINHkk (ORCPT + 99 others); Tue, 14 Sep 2021 03:40:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241624AbhINHkX (ORCPT ); Tue, 14 Sep 2021 03:40:23 -0400 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76B37C0613B1 for ; Tue, 14 Sep 2021 00:37:11 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id f11-20020a17090aa78b00b0018e98a7cddaso2057934pjq.4 for ; Tue, 14 Sep 2021 00:37:11 -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=5iPQxmNGx8c9eY92mOopijUPDhnAgGjqRDHLpg8cWBc=; b=KnZSj8IleHoM8Qx7qtmx3jQgoCMLpLoyaVdHTTemIHbLy0HrzLLLGL2+x8Wvaaut2w GfGAmMnE/WY1PQtlqD4lXmGKfLluDTSogGWQ5fTa2VSkpA2bbn+SHjpxleHUPRe2fXOA VuZgEkG6inLqa8VANrweOCbrTdb0r5FWN5luXOcT4540XcPRSjY6SYPCfHYDggNXT9di lS0LbesxwPuQlNRDJfWT6a1UIBefry9JgwLo4oLwVtYP/U8c8QUPcgBj4tqShi7FJDd9 nyEh0jfTQFRcSbHb86SJ9ndHBs7qHNa9KKuGp3NcGROL/MUGCqcfvr1I+hyyoV/G/mUu NqNg== 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=5iPQxmNGx8c9eY92mOopijUPDhnAgGjqRDHLpg8cWBc=; b=0iJ2gnnxeQJAW2WlWxlgNh0EnxZBW5Iet9MNlWqjt1qy61sLfbGUNG0s/xJLofvo9e zQPbzA9ViLjZwISdQHV3Om+DCzhwjheY4jT2z9dNseLzLSPN0VKYgmP8SG2GAdMmGN2s 8xJTdxsfy1Uu+C7TS4ljosWYV1TZGfFjJp/ZpfTxdco3JUVTRVkj0WKaOL1ky9lBRgXi eA5cwhMuXmsynCHVUsrRLm+rpxJAAkEOeIhF8XJi36cRK6/budn5SDrLp6C9k0edNlfL kaCVw93WtrNUtXfpJ6Ut8yacMx0+Sx1f4gkk5lnTn5uhVn5n3RBJ7KOkU3Dc9eFIlyMj pkgw== X-Gm-Message-State: AOAM5305Zlh24sMxPBj879lBadMDAko6fE9V0lKF1vtDZI7M5nFUPtJk yI9aRYAlb5zIldwayN6BtmzEng== X-Received: by 2002:a17:90a:d516:: with SMTP id t22mr558209pju.208.1631605031038; Tue, 14 Sep 2021 00:37:11 -0700 (PDT) Received: from localhost.localdomain ([139.177.225.244]) by smtp.gmail.com with ESMTPSA id s3sm9377839pfd.188.2021.09.14.00.37.04 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Sep 2021 00:37: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 35/76] hpfs: allocate inode by using alloc_inode_sb() Date: Tue, 14 Sep 2021 15:28:57 +0800 Message-Id: <20210914072938.6440-36-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/hpfs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/hpfs/super.c b/fs/hpfs/super.c index a7dbfc892022..1cb89595b875 100644 --- a/fs/hpfs/super.c +++ b/fs/hpfs/super.c @@ -232,7 +232,7 @@ static struct kmem_cache * hpfs_inode_cachep; static struct inode *hpfs_alloc_inode(struct super_block *sb) { struct hpfs_inode_info *ei; - ei = kmem_cache_alloc(hpfs_inode_cachep, GFP_NOFS); + ei = alloc_inode_sb(sb, hpfs_inode_cachep, GFP_NOFS); if (!ei) return NULL; return &ei->vfs_inode; -- 2.11.0