Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp443745pxb; Tue, 14 Sep 2021 00:41:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZz27finWsi84F24dlaQ9IMwEGetDF9JFSJhrRdjH7pJr6CRULrtZI6jydmk+GAJwsWztg X-Received: by 2002:a17:906:184e:: with SMTP id w14mr17548385eje.526.1631605294038; Tue, 14 Sep 2021 00:41:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631605294; cv=none; d=google.com; s=arc-20160816; b=QwRFwYKnsWI2NasgHUAcBgIvFtS0UZfT2lbmjinfXGDcvhP2v/m7AUqMBekI4N3kb/ GiwluIZlxNIRuhZICDWlApFsAszJU0G1YrwHOZ6Ea3h24zBzCQE7JIN2OC6NmLK0UJea Uv3f2BOtWp/yUKRLvtTUL4zVPN3DBFmkocOo/JzzgnBx4o/Z6mXCwLgL91lq0zZzfdHh AwfLRnNc19JEkFqojFzWU5EBvfGlknsctPgsAXe8kBTdL5SWwXLYHuJkpHCQ3Y3Q47/w qIV2XNbssokiCa9a+YtARDFlcQT57LjmB9ka9koumiPbxZx6gHZyRGlMleDwvBdf7KsV PlZg== 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=Ve9NmyEqViIV//dT1LdQKGfIMDinAsMmZ30wI0oWs1c=; b=Nrb7jD5ierXISDVJqVfOu0l5TzvW7PWK/2LMeUNTyeESgjBma6YEyUjRAvjdiXwmO2 h6UZ6MfgbU0BOhcmN78z7AiDxhaDg+/AOtp5D7Q1YIIoeN88Zdtuamy59/lfNzkepe44 B7LgXpQsf5S/G6b5VFOcdLuxmFXJ69/LdGQ+AUYjJspoYcHvKuXcHdkn1VR/7ixOZ/33 SHisvIEbSQ3t5pv++d1oMWokwLTOcn7JLQ5vHB8Tn3TphtAKjI2/rhZXE4ZnofgAk0Xx 0Q7XybgB6jIRQDodMtKp2rBepukzDbrZ80JUoaaeYULYQC1MvdbZP/kBFsO4OtIMYUFk 9niA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b="EK1/Er6h"; 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 l15si9686677eje.462.2021.09.14.00.41.05; Tue, 14 Sep 2021 00:41:34 -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="EK1/Er6h"; 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 S241770AbhINHmF (ORCPT + 99 others); Tue, 14 Sep 2021 03:42:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241507AbhINHla (ORCPT ); Tue, 14 Sep 2021 03:41:30 -0400 Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D189C0617AF for ; Tue, 14 Sep 2021 00:38:00 -0700 (PDT) Received: by mail-pg1-x532.google.com with SMTP id s11so11924439pgr.11 for ; Tue, 14 Sep 2021 00:38:00 -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=Ve9NmyEqViIV//dT1LdQKGfIMDinAsMmZ30wI0oWs1c=; b=EK1/Er6hRnVX2fZvCHsw8jkFa2Ov0/UEkz1sfPKz4MtyYRIdqAmwWsSyxtzaII34Nz 9e83C/WbK0FuFRdNf91dfjq7dgGwtSNhk8uyhUMCzUu80LykfTTolGOAZVBRRERE/kYI 3rYNpkJXSsaVMbdOfjreRbbNjkfn+/koajYsJ9jNXdQZ4O33b/pzTWEC3+bG+sjaJ7SX VWDLjdaBoB9i2RiWWJdxJdwSucyjxxkAx2LLpJhF7/Zq9fyIE2WQI5evsxwxJfVZegsK 89iWFS2Mf9N0+v5ulDPu020wnvrnVNS5QcIsoELSBgldNohXdvu4JkCxEdF+FV7U8lTF Q5Cw== 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=Ve9NmyEqViIV//dT1LdQKGfIMDinAsMmZ30wI0oWs1c=; b=l3GE5vkTLe8yCoHo760S1ynTw8aCycp6IsrBwUICSKYYo4sy05BQ2so2zLpRl55Tev zPQ8TXuhkeoui+EECITKR+EvjUvFt/NQ/89n1JO9bSXpsNXgeJrkLFcNXxWXlxXNKRbP 6PCI/jP6ePn+YzQM9QUYsariNQ1wTGppSPVWvAVnaQ/O7qQUrMmhDfiOv9zjjuMEaI7r 9Z/lESE0JDqaSC2L2MVZYC359OjXy/S/qpunSj4IaFp1kmOywvstXmUZbvutVnYFbm2H euTrDZ3JEh5BJl40zuLAW0uy4auc0qkC7ahAAYPgRr5HQwxzvxW2hwaf/iUR4jYrP61u p3wg== X-Gm-Message-State: AOAM5332+VDCe5vEpSUtDaNKZlh32ezXLIOfZi0ZAWoizXYb9TSqU0xx JqlgtzN0qu2b4GEDXmgjEg8VLw== X-Received: by 2002:a63:da49:: with SMTP id l9mr14258029pgj.277.1631605080003; Tue, 14 Sep 2021 00:38:00 -0700 (PDT) Received: from localhost.localdomain ([139.177.225.244]) by smtp.gmail.com with ESMTPSA id s3sm9377839pfd.188.2021.09.14.00.37.53 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Sep 2021 00:37:59 -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 42/76] nilfs2: allocate inode by using alloc_inode_sb() Date: Tue, 14 Sep 2021 15:29:04 +0800 Message-Id: <20210914072938.6440-43-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/nilfs2/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nilfs2/super.c b/fs/nilfs2/super.c index f6b2d280aab5..cf1de3ed9f8b 100644 --- a/fs/nilfs2/super.c +++ b/fs/nilfs2/super.c @@ -151,7 +151,7 @@ struct inode *nilfs_alloc_inode(struct super_block *sb) { struct nilfs_inode_info *ii; - ii = kmem_cache_alloc(nilfs_inode_cachep, GFP_NOFS); + ii = alloc_inode_sb(sb, nilfs_inode_cachep, GFP_NOFS); if (!ii) return NULL; ii->i_bh = NULL; -- 2.11.0