Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp443740pxb; Tue, 14 Sep 2021 00:41:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlAPAfNhCK3aIaOxlmMIpCm+94iMLF4UlrihXy+XqwGkDhBShcRKZYmrBtnhXSCSN5ajEk X-Received: by 2002:a92:6907:: with SMTP id e7mr11244446ilc.301.1631605293911; Tue, 14 Sep 2021 00:41:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631605293; cv=none; d=google.com; s=arc-20160816; b=AiRFzFRkXn8y3d1h0640FFHqAF4pEMuqU7UxKu5TT3Ft1PusOnutqz29iuMfeEx1uc bhroPSI7olS12GbX+vWtn+NcrFrLZX3l+6nBY3emV1WPfS8imO9pPv7C1o1esFKUmuDt uD7iZH28//Z8y9zax3HOeP0bIfu/L6AdUzPqcrv9H/c3jkztHCGHnbRNI73FrYSkw9ll k4icCBTCY3h0wmfzWK7mRXGM8pROeSrp3sMO+FtDQJSmYnVjrhKUGodXz0BLu0ZxXwUc UheSzxe1QN4666komMCHTo5X8W/TYEbNTi1TWYORom31wHnxPL3isRrgv01rfmylXXRT jpdg== 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=5L3/NHaCGqFlXi1PgtyPXPldesWisd5M2MzkdPFswpU=; b=XoGk41meWsAn7c0sEvekeTWIXK6b1vnQphSFYCutWzE8eQQMIg2s0cqzDOfGrmAGrB DsI+K0H97rUN/VR4Rab8jkwRlBLzXv3AWA/Sv+AiRdgv4moASJtLMlBnLPYSzhtBDHJj 97m4X4VBNCqvj945DRg1aV1wonXtX2TUF3Sc6PVxGdMArjksksfV6hwl3PlUVub2XBSw wM2SS5/ccVupvrAPkzUL6CPTx28FUuC71vUmv2xPmQBjWw7UbHnD74CbtbdPF0xUa+Ap uSy/WZeKNOewRsGywTJhflKnUPpkNFTVKm8EWdOGHnHVtLzdU/2ZmtlmHFwkXk3kIsmI IpNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=aawds+Zd; 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 j14si8996338iok.53.2021.09.14.00.41.22; Tue, 14 Sep 2021 00:41:33 -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=aawds+Zd; 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 S231640AbhINHmg (ORCPT + 99 others); Tue, 14 Sep 2021 03:42:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241134AbhINHmA (ORCPT ); Tue, 14 Sep 2021 03:42:00 -0400 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 394DFC06129D for ; Tue, 14 Sep 2021 00:38:30 -0700 (PDT) Received: by mail-pg1-x52d.google.com with SMTP id g184so11930805pgc.6 for ; Tue, 14 Sep 2021 00:38:30 -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=5L3/NHaCGqFlXi1PgtyPXPldesWisd5M2MzkdPFswpU=; b=aawds+ZdgmQfgr4O19Bbjb1tnmHppDZeHQM28obpBAxc63f/d3ki+9vg8HMeNgCvZ9 l1fv4U38sV9NVGlyrHRR/L3biZ3qMuBgMcBJ9/4d/3OdwQf3VnFrxWRGbbepAVI7sArV AfkHKSDuNhvgEgZEYICVo1qqRY2XolcCiBTM1eqKKDTjabKr7vU/Ew7prI441h+yxe0U psjwfhIeEXa1UIUGkoULi4SOGfFHhOQyRxNyt5yf1UEVjJttnJu7DoFDtotNJ2hUvFWV UUH2szXMKPJVLVV9cXPKc0GnOYjr5NDBAiQOCIjsR5oBilqlzVRdV4l0VMHkUaTBja1J 3l4A== 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=5L3/NHaCGqFlXi1PgtyPXPldesWisd5M2MzkdPFswpU=; b=PsB3OD49Ig+r5EWWzJntftTbTkVfZUpVFIrgLba+2/4SnbUO9imxxpsaeXF8Degqft Qdz9g6F+VLQS4wbH1YgLvqaCwtNaIeGlxeskNGTUI1/OVDn4gMxEZLQZLjGxR3wC0pk9 ka+1IaSD5swWOye3ceTIG7Hpy9S2YODYbuss18eQeSHPBYLoHG92Dfm3rDvj/BtK5iBS HDgxRVp0ggi1uzvowR4hMstZ0hP3rHrZV1U7w0m0kGkPCBu8EHQPZbsJ7eP++ZXqqe7s N8Y+ptOqFOO/cFamy40APxaNu8GN9XK6waCBTaFnUz9em7C5s8YVhxa0+AhIp8Ttg8bS TrgA== X-Gm-Message-State: AOAM532sU7gWFYKSwsNKj3ykndRtHFHrNhQUaQfVFdIHaIsKzGkYFE+k nDPrLBL9YIZ8bBH87X7T/iT8ndqT30fvUQ== X-Received: by 2002:a63:7454:: with SMTP id e20mr14244578pgn.136.1631605109791; Tue, 14 Sep 2021 00:38:29 -0700 (PDT) Received: from localhost.localdomain ([139.177.225.244]) by smtp.gmail.com with ESMTPSA id s3sm9377839pfd.188.2021.09.14.00.38.21 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Sep 2021 00:38:29 -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 46/76] orangefs: allocate inode by using alloc_inode_sb() Date: Tue, 14 Sep 2021 15:29:08 +0800 Message-Id: <20210914072938.6440-47-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/orangefs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/orangefs/super.c b/fs/orangefs/super.c index 2f2e430461b2..1deb411ca5e8 100644 --- a/fs/orangefs/super.c +++ b/fs/orangefs/super.c @@ -106,7 +106,7 @@ static struct inode *orangefs_alloc_inode(struct super_block *sb) { struct orangefs_inode_s *orangefs_inode; - orangefs_inode = kmem_cache_alloc(orangefs_inode_cache, GFP_KERNEL); + orangefs_inode = alloc_inode_sb(sb, orangefs_inode_cache, GFP_KERNEL); if (!orangefs_inode) return NULL; -- 2.11.0