Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp444949pxb; Tue, 14 Sep 2021 00:44:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyo6nIJEvDkjTeyHbO+9AjwRrhD+65JwiSKE2qOmINYVXYo0BfwwWF+11W0mCWbr2W9/lAA X-Received: by 2002:a17:906:27c9:: with SMTP id k9mr12356916ejc.124.1631605451394; Tue, 14 Sep 2021 00:44:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631605451; cv=none; d=google.com; s=arc-20160816; b=iKKx1Z+sql0QL9GZmxp9Mq73oeMBJ2bO8cfKH+Mw3h1hCz2Ca3Em4Ks7WueFyPdyC6 i5b/kauxBEDeh0gjrRv9kDmcm+Xr5RkWCedn4iCJZCZU4hE4aI9K/tH+z/97VFRU/sxu ymTLaroO3tEFtwbCOezW2/EKUgstgqeBXGhTu7UbxLirSWAJgVlwtGegzRmG4MNA4zbI KVlnu5l6Ear9zr8Z4BJKRl5/lNG1AvSexUkkrz3SnWnk6l2dpm1k6rS5fsdZlRvSYIja VoNkJqE/HET/cCrMsebbmA/pap/j5mr6ChjjTNtJUbjfU2aiCqfxKOHJJwFe9eqel9aZ rBRw== 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=NFK8477UAn3zAKQ0vXm0lu+fwWsZH+uussXoYW7LsE4=; b=eJ/P9frI7OnA9L2KIcvlOLbnlsw98cZdAJ5fcm5iGmS777gcC1VCtdjCRW7SPsgC9Z 8nklBp1otKJEecWgPhT/NjFHgldPDPXCmD+94wvjM2iQi8AsXoJq44jX+rFyQ2IvTL3V gT41uSQ2rNt63XcVTzpjNouxucrKPLOuKDxrasi5hwP6A4yNaY+iX6bYcONwciFCu9c4 KSOpIg/xNKtFHQur2yHW0cTj3EgrpDhtgoE6psn3BTnMTXZPzIMqHGonCBflMnBL/3TH swNQAA0gMkg1SXi/JhenUUlYOH0XculJe6W/0jdUbxXUDuEr4+Rvm652f51cZFSauCE3 h9Iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=L2tXQ4ab; 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 b7si10382170edk.458.2021.09.14.00.43.48; Tue, 14 Sep 2021 00:44:11 -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=L2tXQ4ab; 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 S234425AbhINHoy (ORCPT + 99 others); Tue, 14 Sep 2021 03:44:54 -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 S234958AbhINHoM (ORCPT ); Tue, 14 Sep 2021 03:44:12 -0400 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A0A4C0613E5 for ; Tue, 14 Sep 2021 00:40:00 -0700 (PDT) Received: by mail-pf1-x42f.google.com with SMTP id f65so11340870pfb.10 for ; Tue, 14 Sep 2021 00:40: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=NFK8477UAn3zAKQ0vXm0lu+fwWsZH+uussXoYW7LsE4=; b=L2tXQ4abitca4ZpsuUEhDYaxwHxkohsNX4r8JUZZQMfvw7KBpwdpYy3hMa2VxOYtOY /tWe2XlXOVIPpAcphXR1WZg5UOXFqg3UHPRDwQcVJsodv5NthoXtQCHLnfzhBXgKMa2m QVEG+UgL5UHafDNVUK1v/2X5mkcpp/1us69k8wopwcZAfPE2E8CMtnfTuwa4uHps3Dfl F7l09aI91gOWOCcE1+tkPcfFpVoS+eH+k8cbXfk+zb0kBUhch6ofDcvZMyfDpmnoEH2b tx+8zfpUEScvl/2qvwweom0hZMUnnM8273fTlolF41JYbgc5UtvHFm6Qxxl4EC13OCig 2bSA== 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=NFK8477UAn3zAKQ0vXm0lu+fwWsZH+uussXoYW7LsE4=; b=dVhaDkdTS8DAavgd0nNFnAEE+A6UGauXdXGPMlXwCjRem19sJcd3uzJmxCepOsufEF BVSZIZnVKcnxa9BYgHC73A9xa8SPj8SfcX50HH4gd0W1pVfGImBTTmNl+4HW0mfFYH9k KtNlkk7j9ZFzf+AI28lnmAXzdjJkU0ljtQLcKMJSZPiXqhkvqCGwJLFAuj+IDy+y0RoR b7v3+ugCZTs1FQbtz2EYlhpWwYTeP3Tqw9vGdrLqA/PhAfutGrcIPgR2JxQtXvdsvgdX Cd0ctpyA2W+xji7tVwga3rs/gpVA/qooa4X8zeuH1N3QOmpV7HYg/nafovraYCe4QhXn xtRg== X-Gm-Message-State: AOAM530WlcCVsg92pLO7iynoT+yRSlToTpP0g/ll4EsEe32Q+fVIbBpw k3y3dfp/tH4FnRFQr5pGKPtbdQ== X-Received: by 2002:a62:b515:0:b0:438:42ab:2742 with SMTP id y21-20020a62b515000000b0043842ab2742mr3383918pfe.77.1631605199954; Tue, 14 Sep 2021 00:39:59 -0700 (PDT) Received: from localhost.localdomain ([139.177.225.244]) by smtp.gmail.com with ESMTPSA id s3sm9377839pfd.188.2021.09.14.00.39.53 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Sep 2021 00:39: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 59/76] xfs: allocate inode by using alloc_inode_sb() Date: Tue, 14 Sep 2021 15:29:21 +0800 Message-Id: <20210914072938.6440-60-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/xfs/xfs_icache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/xfs/xfs_icache.c b/fs/xfs/xfs_icache.c index f2210d927481..0a4f32c0044c 100644 --- a/fs/xfs/xfs_icache.c +++ b/fs/xfs/xfs_icache.c @@ -77,7 +77,7 @@ xfs_inode_alloc( * XXX: If this didn't occur in transactions, we could drop GFP_NOFAIL * and return NULL here on ENOMEM. */ - ip = kmem_cache_alloc(xfs_inode_zone, GFP_KERNEL | __GFP_NOFAIL); + ip = alloc_inode_sb(mp->m_super, xfs_inode_zone, GFP_KERNEL | __GFP_NOFAIL); if (inode_init_always(mp->m_super, VFS_I(ip))) { kmem_cache_free(xfs_inode_zone, ip); -- 2.11.0