Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp445273pxb; Tue, 14 Sep 2021 00:44:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKdmG4W9JMLijz24hOVcOhY3f1cx4G08XSM0ybmmLlcUr7EHM2GMpmlOF8vGJpp9KLOWwx X-Received: by 2002:a92:d752:: with SMTP id e18mr11599909ilq.254.1631605495523; Tue, 14 Sep 2021 00:44:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631605495; cv=none; d=google.com; s=arc-20160816; b=JHsEoGXPRQDxgGHZCpspUJqv0B0vuIk9irInxV6McId+qG7xCVEHwj2K/5capiCz63 Q41bZcmEoRMY2WZpHvUE8j1N0Jk5H7nA97/8yeCSWj2cXbIhC+vh/ABBStkttc2bKHc5 3Mo0SWk+yzl/HWav1FoVHyPm43pwlqtJfqC16Chc4lZ60pHb1af2d1bihTd88wCOjkix ovJktq1Eo2egQy3Hm8EcOZaKMwUmdijaUWXBJeZq+FEmP5FrXs3jSXJbDjbh/886KlKX 4kWyMAVwvd/Qa9BlTRfRozXCLMnwFJCmjoWYNAYprZw1kqqE0agdUOR98Fi1La7dqxo/ Eanw== 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=3qZ3HM2fEOM8GlV59xjjOZKTYma6jyboi290AZRWTfs=; b=bXXd4Bt32xk2yYtCPnTBLR32k19hBX98HRdb6XVXoYaEZI4wKSKoCIS3nwf/G4mqUG YMQ8khHhJrwthzEh+ljd+KUA1Mj5/4V4pKn/KJQ1vKGAxhwNvCtdZmZ/Qt5oSWhUgjSq vs5Dml3bq++0BScZ92eWqk09K6xKllCxH6evKiYf3rpsRNHCsng2WPiXe4INGPg0mj6F fTBYWpT1LOLU7S0KsWRXFzI2Jv0wzWZ/8s2RU75541V9aZQN1lesSeB1hYa0HtRHntYr DvgRCJjWDTm/6/XHLn2q7xVAWSd3qEvKfXXFCNk/hawzstRD3artNjPX1NxF4tpF+PNE JEyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=swLJ8MDr; 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 l4si8729755jaf.96.2021.09.14.00.44.43; Tue, 14 Sep 2021 00:44:55 -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=swLJ8MDr; 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 S238128AbhINHow (ORCPT + 99 others); Tue, 14 Sep 2021 03:44:52 -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 S231956AbhINHnn (ORCPT ); Tue, 14 Sep 2021 03:43:43 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE216C06124C for ; Tue, 14 Sep 2021 00:39:39 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id dw14so7339714pjb.1 for ; Tue, 14 Sep 2021 00:39:39 -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=3qZ3HM2fEOM8GlV59xjjOZKTYma6jyboi290AZRWTfs=; b=swLJ8MDrNcfBrHijdBeesk26tLZ9evHXGmrABe6JiHEC2dMct3uDEfFsFS9KVcnBfn QfZXodJK0a5ZnQosZhJSuYIa3Lix2y4kJLdl7v/hSBX8B/rX1/SFC3xmojH6F862U65c c/fKb/ZpcKlQF45RcJE0hU5BkVN7y5JsmZWIPIASs8Gzs5vsNcXERPhQQF7jDqnbwmOK 9RjIsdvCbquMfvCvBbDuv5t+PsiqIk96BR55T0j9az5qtbRmIgHkImWRhZGNiGMb/7gf QMtsKp2pCZFNHPvohSX7niH6czQnhkjJgkH1/cGaJrNrfnpsiUBWm1BhFml/DIXEmWzy HV+A== 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=3qZ3HM2fEOM8GlV59xjjOZKTYma6jyboi290AZRWTfs=; b=N88mqmpbzsdy9S5WOIhWY7/4pO70yDdZet9i1arzJ1PdXEGQwWGqgjIJpiAgdaIZZR JB+8wvITLv06Q7Sn1SD5fx1pFCcsx6HIICjfgRL3jfxYNI73dKBYB0nv+lJ4NaHEx0BC FZLKlz8u0sOP4YYOVuzo7HTbZf0W1voEo3qWO3B4I7kuvIGMQWdB+XlCWveFkIIITyiF zozlComrTWdN+ncZ+osPT/Y02qKJ0bn1eqhRfaW1n3nluX/Dl2uTrh3dT27LANLjmgzn +H5Itn8veTlLXzdFmyQ8GtTDRhRbmGChiqIOOY8gwGK9VqDHMQ5isj542PYaQSjE9XyK C5Yg== X-Gm-Message-State: AOAM530l1jnujsF0TnsLGsVq2SEluFvqsVVn9D9HmNcOLWQMONzGuWXz +zacbiaeftuLcI3ILGzo6Kt7+Q== X-Received: by 2002:a17:90b:250e:: with SMTP id ns14mr586106pjb.84.1631605179398; Tue, 14 Sep 2021 00:39:39 -0700 (PDT) Received: from localhost.localdomain ([139.177.225.244]) by smtp.gmail.com with ESMTPSA id s3sm9377839pfd.188.2021.09.14.00.39.32 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Sep 2021 00:39:39 -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 56/76] udf: allocate inode by using alloc_inode_sb() Date: Tue, 14 Sep 2021 15:29:18 +0800 Message-Id: <20210914072938.6440-57-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/udf/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/udf/super.c b/fs/udf/super.c index b2d7c57d0688..76b706584632 100644 --- a/fs/udf/super.c +++ b/fs/udf/super.c @@ -135,7 +135,7 @@ static struct kmem_cache *udf_inode_cachep; static struct inode *udf_alloc_inode(struct super_block *sb) { struct udf_inode_info *ei; - ei = kmem_cache_alloc(udf_inode_cachep, GFP_KERNEL); + ei = alloc_inode_sb(sb, udf_inode_cachep, GFP_KERNEL); if (!ei) return NULL; -- 2.11.0