Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp444958pxb; Tue, 14 Sep 2021 00:44:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgVwSqRMvkfy1wwN0GspMiqDyxjsio8PohqTfaa7v7N9JxHIBhSLzX7yWYBaZVNUk+LUFA X-Received: by 2002:a05:6e02:1212:: with SMTP id a18mr11253131ilq.68.1631605452531; Tue, 14 Sep 2021 00:44:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631605452; cv=none; d=google.com; s=arc-20160816; b=ymNFq7g6fHmZF+bVaPGSQ2dEEL2GS1rGNNyqGCLAF2yuLzNKgGnSenjJOM6glqVg9n 6fLLumKVRLcKznA21lKViUhJlLv/f/KnPxKrwB+lvpXXo8q6bnjGB59B9os3yzrFTZUr bV6EUQ+Lr9JFxLI4hvu1f9CkMra0FHX7Ja9xtygfZ5Q6XtAPUQNciBnHsTUzvdNggX43 r7Cctsyy05MB5H356PvpV0Zj7PuJu7SVOW+luzUxEviqbXVByhUwi3Dx5EsX+7mLsgbm luxI0QOHVQEtxE49Nua76cb55PWYGIQLZV+OBWTmKVrm2FHSUuPN8Md5xC5k11b4AFOB rFtg== 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=kDI0Aoe7eT1WdPk/YAFlqrx6K3CnKuQcRsWNZhlvGYc=; b=giBtv/zrflpYCWLOiXXlSL3mCSBkiG+7LaeHVC+zNOoE9hS+Q7ngPh5cwFFE16Nqu/ v/Mwba0lEL0DyPLKoSdYB4f5b9RHX+SNjL9aFl6gNSGzwdpsM3jzkVw+uZsAaV7kpNJ2 cPCrY6BIfZy/DXtErAt0+wxqxO6X6QmevcSVFTMi6D7m9w526t3jLHXTJBo3h4mAmclA 5oJSdaU54pejSE9eDfnpLj1O5MS4Z+btug4h/D0t2uZUmtQpyL1KNXGXWqe4msvP/y8i VQ1B4nXplP3smYEHH5flEDlrdt/LeF3XvxnUqBdimkD0Xpf2A1ZyAun4mnm84oAj70Dy QtSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=xmAVwDPG; 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 v12si2903884ilh.31.2021.09.14.00.44.00; Tue, 14 Sep 2021 00:44:12 -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=xmAVwDPG; 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 S237431AbhINHow (ORCPT + 99 others); Tue, 14 Sep 2021 03:44:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240656AbhINHln (ORCPT ); Tue, 14 Sep 2021 03:41:43 -0400 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F259C06119D for ; Tue, 14 Sep 2021 00:38:14 -0700 (PDT) Received: by mail-pl1-x632.google.com with SMTP id d17so7589563plr.12 for ; Tue, 14 Sep 2021 00:38:14 -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=kDI0Aoe7eT1WdPk/YAFlqrx6K3CnKuQcRsWNZhlvGYc=; b=xmAVwDPGqQgJ4ViOkNcgEdLsmrxLdgD4nzwJ67CzaKU4Gh5OML8j/82b/juelP9nDl dS02vJ+dVl8pzb/vku+BjPvvG9g9JYAl6me/jLf71Rea0xorlDpTO+z/wqztU5LcMFjA haYHB/sXqNfZU/nvJrwiOk3BiTzncYQb/wwxHn39vbv9kIRt6QG0O/faUEgjPtPyLVTG 5uEw3UynCL3jRk3K5yYBwxCToAxr+Av0xazp8WItfLAxdFWuFsd9TBb77caoXY1gTlfz r3J2wzT60oicpMvNiJyR01mTe8DFp/1DX3WKELu7cwnteoHIjIgHzBlgj8PoPSNmVSFX QPMw== 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=kDI0Aoe7eT1WdPk/YAFlqrx6K3CnKuQcRsWNZhlvGYc=; b=XNIvS2+++KfLUP9QJvxcakthWNWZ1FueDFzjPZPb8zoxtcpQwX2Bl5AmDocnEXaSQ4 6qKpP46YpPL3T4ZusnTCgU1Og68AzvhRD+lnD7BEMWFjvUmUSntFPivIrJ+lHhTrmuxg QIqxSTxTB/S8cGyyKgsMu8wii0iVIde41WKkEhViUkphNrPbnugRhejnW1dkO+GCc2Nm 47BnQy5wWPDheXjc2jql5bhPph8yTnxu8yhGQh9CdGW/3Xs9njO1cmYMxe65FGsR01PZ nVCLRYuk5uoLE8UoMi3NKMEx5NmMvh3CXh0bdDmuzymqfvGVSn4wHBpPpAoZLfdQM/ld Ybkw== X-Gm-Message-State: AOAM532OBABGV1gN8Dqe6ypJMSEiBGpUq0voUraDd/FL0Qp5wHPGYhrF mzxT68W/GoIrtXGBZrxHBVveIQ== X-Received: by 2002:a17:90a:12:: with SMTP id 18mr576576pja.104.1631605093651; Tue, 14 Sep 2021 00:38:13 -0700 (PDT) Received: from localhost.localdomain ([139.177.225.244]) by smtp.gmail.com with ESMTPSA id s3sm9377839pfd.188.2021.09.14.00.38.07 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Sep 2021 00:38:13 -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 44/76] ocfs2: allocate inode by using alloc_inode_sb() Date: Tue, 14 Sep 2021 15:29:06 +0800 Message-Id: <20210914072938.6440-45-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/ocfs2/dlmfs/dlmfs.c | 2 +- fs/ocfs2/super.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/ocfs2/dlmfs/dlmfs.c b/fs/ocfs2/dlmfs/dlmfs.c index fa0a14f199eb..e360543ad7e7 100644 --- a/fs/ocfs2/dlmfs/dlmfs.c +++ b/fs/ocfs2/dlmfs/dlmfs.c @@ -280,7 +280,7 @@ static struct inode *dlmfs_alloc_inode(struct super_block *sb) { struct dlmfs_inode_private *ip; - ip = kmem_cache_alloc(dlmfs_inode_cache, GFP_NOFS); + ip = alloc_inode_sb(sb, dlmfs_inode_cache, GFP_NOFS); if (!ip) return NULL; diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c index c86bd4e60e20..cf044448130f 100644 --- a/fs/ocfs2/super.c +++ b/fs/ocfs2/super.c @@ -549,7 +549,7 @@ static struct inode *ocfs2_alloc_inode(struct super_block *sb) { struct ocfs2_inode_info *oi; - oi = kmem_cache_alloc(ocfs2_inode_cachep, GFP_NOFS); + oi = alloc_inode_sb(sb, ocfs2_inode_cachep, GFP_NOFS); if (!oi) return NULL; -- 2.11.0