Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp441911pxb; Tue, 14 Sep 2021 00:37:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtHFdzglty16GScfApV8E/uF0onpaCa6VDrG4rpVIZzbKHhIf3f3/39QdfnkJCtioFrryj X-Received: by 2002:a05:6e02:168d:: with SMTP id f13mr10956536ila.12.1631605072912; Tue, 14 Sep 2021 00:37:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631605072; cv=none; d=google.com; s=arc-20160816; b=OeEG44cq/X7hTseQdFVNzZCksKN85zHD0DU2ltoSsQ/k+xXlGjv6rraej3mLPbTiya 2kilWIY6Zo7wX8XKXxxvKKURbjdzXFM8oukz4GsE60JmecIIIG7Tjqeh7MBO2DCqRlB1 hOjHzX/urlSiDgnj2DzB6NdI5MqdgVNPA+vUbMEv25CMkDVDZAyzsgzhyR2m4psVJ1Js GVuAl9n/glIK10ys1j3CvXMHb3lAalsFCjHUdZzqiSXSx7pW/ksbGvLScaLXaR2RQU3z tbw02RlmWOAMJA7vIQuIpW2ky0hOXqCGJFW+MxmhPkXioTMF5+XixoRdH4wop2ml5XQN 1CzA== 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=MveWRP8aGyEbJw0ZERHfw7irE+XE52etLPWDr/jyMk8=; b=YfalnZJev/N6wuU3v4nTHex1zbyM1sdmAKGw2BudN7azuf8q2v8uqhaLMVrboSdRJx a5EHoQ0fRC0KRzPz9ITXzmCpNN82SfC6yex7DVQf7Tf1xSAQFLDrewPmu2IRwhTtmnGA woUU52yX106KmKqc6hsyLsRD+ao8+WUAgkWa+GBMuhQrMw38SCiLQv4q1p0aPuJtp+MH dgxyZ0tyOIWc6sW6wq8jI2mUHeUDbFr3HUAg46pQizgD1h/BejWvJOFPUh5lFxHofeXQ DK4D+cJO798Uxd7NN8IzMZB6aYGbnfWIII9/1h8kgPlODl8EQYhlMwv15Xrl2qq4r03W LJZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=1QCNrsd3; 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 m10si11239057ilu.53.2021.09.14.00.37.41; Tue, 14 Sep 2021 00:37:52 -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=1QCNrsd3; 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 S241413AbhINHi4 (ORCPT + 99 others); Tue, 14 Sep 2021 03:38:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241346AbhINHib (ORCPT ); Tue, 14 Sep 2021 03:38:31 -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 E7E7FC0613E5 for ; Tue, 14 Sep 2021 00:36:03 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id k23-20020a17090a591700b001976d2db364so2062437pji.2 for ; Tue, 14 Sep 2021 00:36:03 -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=MveWRP8aGyEbJw0ZERHfw7irE+XE52etLPWDr/jyMk8=; b=1QCNrsd3fTrCJmYq7AjXylTezy2s+9nh0iSZRPvyjhcuVZGQZlQdPj3bGiN+SPoyMd 6r9cYRZSakLZWOVLj7JnMRmbn1rQDqY190OcP9qawDYIurm6vnC7/vAFkOF48797xJS+ 55PhOky3xA8w3egEogrUC17aerb3ceC7orkYOSuS9XkYZD+UJe4nNKbGfhA/rJ7X7Tcu Ov6YOSnJRvoMjFUexePo/N9MYfL8e3MH8JQg5+WVDMkPoUNTQt3mixMBZA5j/6+uI+7a r3juszHqxmUE8+iCub+REM1C9zplbGz8lQ6tSS2t/9QdcGks/Ru7ahJNWbFn60UL1XR1 yIZA== 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=MveWRP8aGyEbJw0ZERHfw7irE+XE52etLPWDr/jyMk8=; b=KNUQZ1CcmCk+4/8MLlI6NYuOtHLa5Gcj7LEL2LFlVKJjODul3o0hYprOcPWk4wTMqQ 2Mwo3S9DiNk/ery5QdZFZ0+SXtTCS6pwf8XbuIFqwzXXMwwWUoGImOAX0Ecu/2to/d53 UxpTgVpZWhMvnsf7JeIA4WH32gf5NTtTDK+R5qiytCVwKJ/CSG82Esof8klutUGLRmJl WOALQHz5c6Hn8A3tMM1mog29FwyM+vUzjxE11uncAJ5mKUjPuhl/u6m39lgWqpUIyGwG Sx1VIUXSO8PRprZHHQ35R5he8/8Z2UAw7ZJdiyEMcgry08daQ/vaYW1vmx4GZiOYFQqr BJDg== X-Gm-Message-State: AOAM530YHU2cHqlWoLYnrZnR/UCgrEPR38WrmeEGD3Auk8niUu2T6rOY Y1mDJ2Py+cSnxpDI2nrPztg+ww== X-Received: by 2002:a17:90b:46cd:: with SMTP id jx13mr554861pjb.122.1631604963433; Tue, 14 Sep 2021 00:36:03 -0700 (PDT) Received: from localhost.localdomain ([139.177.225.244]) by smtp.gmail.com with ESMTPSA id s3sm9377839pfd.188.2021.09.14.00.35.54 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Sep 2021 00:36:03 -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 26/76] ext2: allocate inode by using alloc_inode_sb() Date: Tue, 14 Sep 2021 15:28:48 +0800 Message-Id: <20210914072938.6440-27-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/ext2/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ext2/super.c b/fs/ext2/super.c index d8d580b609ba..8deb03ae4742 100644 --- a/fs/ext2/super.c +++ b/fs/ext2/super.c @@ -180,7 +180,7 @@ static struct kmem_cache * ext2_inode_cachep; static struct inode *ext2_alloc_inode(struct super_block *sb) { struct ext2_inode_info *ei; - ei = kmem_cache_alloc(ext2_inode_cachep, GFP_KERNEL); + ei = alloc_inode_sb(sb, ext2_inode_cachep, GFP_KERNEL); if (!ei) return NULL; ei->i_block_alloc_info = NULL; -- 2.11.0