Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp442706pxb; Tue, 14 Sep 2021 00:39:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHN/3pjogoc6Ub9coRmFR/xLwQ7sGeZPDtLIZFkGrgLpQlbDZdATqAKFPq1/A0wjfor94W X-Received: by 2002:a02:6d17:: with SMTP id m23mr13294567jac.63.1631605168368; Tue, 14 Sep 2021 00:39:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631605168; cv=none; d=google.com; s=arc-20160816; b=Vh74l2j3Bvm0aXByt+XyswBH9ViT1ls///OhT41IQsHnNo2dXrk5A6Y20m7WQ/IUcT 7xFdhBX/wV8r53SNg72yOnSkFjSpfQu65Y6isQJaIG0nuPKXVELMTRixWdRzR9OYjyre kHUSvVeFVFuIaWUbFYJge/iMYMQ/kaLe1gRL7ENQte2fxiCBLc/+1ZOSIstc7Mx4jUUD sj9klaqCxx1U5z0DdjaeGV1F1xHewmKze4XGG8lxTfNw0qO0YIGqTSbLyv+Uk2IfwvMU LRkqxMlYvQsWhx72y0ecKRHsRrWSRMoI5SdymBAeJ2S94+lDOVc0e/BV5omMrfncYyln foew== 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=AIgyRDPnSS/1J7ag3xqeLWjyouPh4gl6PlA+qRTekZA=; b=x7shwv8SI7WWcNI+zHCbYhtW0P5ehhDBSkc7x5Hl9jMyw/fyTQONmxvNCzIdVFuGzx qMr4G4KfU91igXYkAfJP9Ap9v12HzxQZQc6MronB/6M+zxz3Qj3Ej4lKCmbrYDmT1Dpz 3Iul8VSeFfzotDgcLvW22o0pu4XL4iW9IZ6AGwEmDA/JgXtodIONrUERRDNwVLBemmiq bFtelyW+ya+j+WTyNbNSQtOOWPM1l+pbSBQT4sfijqd/JIvMW7hrYxa6LB1J/m48BEyk OWwexFvbIKU84bsiW3i9poOULknnmO6mdfcceWuPxOSiEvU4rAlm+9RV2c1c14D6Ue5F enMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b="PyOW/6Go"; 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 x6si10115296ilv.93.2021.09.14.00.39.16; Tue, 14 Sep 2021 00:39:28 -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="PyOW/6Go"; 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 S241130AbhINHk1 (ORCPT + 99 others); Tue, 14 Sep 2021 03:40:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241517AbhINHkL (ORCPT ); Tue, 14 Sep 2021 03:40:11 -0400 Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAA12C06179A for ; Tue, 14 Sep 2021 00:36:56 -0700 (PDT) Received: by mail-pg1-x535.google.com with SMTP id n18so11906542pgm.12 for ; Tue, 14 Sep 2021 00:36:56 -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=AIgyRDPnSS/1J7ag3xqeLWjyouPh4gl6PlA+qRTekZA=; b=PyOW/6GoK2XsRe2NJ7cCpiZLTaeT6F6pQKixcs2KAyvR+5Z/mRQxtEi0pP+vOjwEPO PAncKSttmDhCH49J1Gr6mtp8yGewJZDUJBBcwfLuSQYbBNZ/TI1LD4s1CxA3lH6TGEpo pdEP6cmECZIzLXxI8HQNVd4iZ50JSx2LapChtha0k5RqUSw5X4zBGJpaCQoHKK8hzcTu /MmDJc+NdtSatcI7E33E3jT/Rl8ublvlEtJTCwdJchle8cnvY8065nce6hh4uTvCrnjL Rd2voYUwAWg7g4s7EtR87k+jnfmazVddeuWYTEAOr4ug//3HYNtFpgcdVGLcTwOMwpwg d6hA== 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=AIgyRDPnSS/1J7ag3xqeLWjyouPh4gl6PlA+qRTekZA=; b=nxtVbTGMWUeAL7vxBAliDO7vDf4T7IBCjf/xkGs4G+wVHcWE00bQTkPCK7ZbNV0SK8 wqoWxIrLI5AbdTlANsK0SyzUCb7/DRcG5STn081FFUFZ9BeR4Pm9pwM3dnfTNX07dRWV otOKQRiNZ9TQSNDkzXmzFAGpnuPg0CtxaktHBCa1vXkxdgJVJzIzJuZzZXmlrKAGxwe7 dtHy5hTCM+3irxOzEtCF5bJRI/feQm+NnVpZ63Lgz5oXqInZEB7Wc0aZntcvB/YyGHib oFfSVTFdKVyOvSjaZfalwntWSVDLbDfAh4zYWZdzng2RhAj1sEhX6JH8dO2VSzcPCfL3 j10w== X-Gm-Message-State: AOAM532Fghsda0fGwj1l93xloH0ZLLs7ehledaKe+tbc8XZqyK72IZFv fGfLBa3hAxhhayhi8UpBnA3adg== X-Received: by 2002:a63:3602:: with SMTP id d2mr14279308pga.390.1631605016459; Tue, 14 Sep 2021 00:36:56 -0700 (PDT) Received: from localhost.localdomain ([139.177.225.244]) by smtp.gmail.com with ESMTPSA id s3sm9377839pfd.188.2021.09.14.00.36.49 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Sep 2021 00:36:56 -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 33/76] hfsplus: allocate inode by using alloc_inode_sb() Date: Tue, 14 Sep 2021 15:28:55 +0800 Message-Id: <20210914072938.6440-34-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/hfsplus/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/hfsplus/super.c b/fs/hfsplus/super.c index b9e3db3f855f..8479add998b5 100644 --- a/fs/hfsplus/super.c +++ b/fs/hfsplus/super.c @@ -624,7 +624,7 @@ static struct inode *hfsplus_alloc_inode(struct super_block *sb) { struct hfsplus_inode_info *i; - i = kmem_cache_alloc(hfsplus_inode_cachep, GFP_KERNEL); + i = alloc_inode_sb(sb, hfsplus_inode_cachep, GFP_KERNEL); return i ? &i->vfs_inode : NULL; } -- 2.11.0