Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp442538pxb; Tue, 14 Sep 2021 00:39:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJye8wxm8jf6+eEsYRf5/kJqz3EtYjS6DDGS7tLks+fS4gMWjfRapw/Zayv8N91dThoDbsWg X-Received: by 2002:a02:7355:: with SMTP id a21mr13235193jae.53.1631605151137; Tue, 14 Sep 2021 00:39:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631605151; cv=none; d=google.com; s=arc-20160816; b=05idtRLoYmqTtcsYcjbZeXBXJfnq70DgyHlc5ryhoemwypF1+0ITS9kW8eGkVUpRDa /2eSGefafEqDrykRKweO+QXC4yejCDzoEgldk2Ej+jRSkLf/6Q79XHpizdUKEBXEfUOu Uj531T9ZbROgx5rMRJPuJq2eaL36LzXcZ8GjlMUf7tn2Exq9/x1G0sGdZzC+QwqbH0Td I6LxrsSFyKJ8FPxWfnKt+2/4DlTRNqru2BYwTqGs2zoXjKojU09kXopNZfQlzSQDUYRm TzYEmDmHyBCF2f4uE6mf4xIqOeyeqGPJ6vCHc6NFud52N1/UaxlmT2mEkTeCWYYRuQ7a +zeg== 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=85ranNZdyaGfIOzMylg5hKugOz3EzRoTjtK/I6Bf/uc=; b=fYAn0TrPbyOQsHV9A42ZOvPx0EjD3iDvFZjtjQ4gFhlaX/zVPMuQcLC2geHn6xuAOB YospxlTcoakMClrySDtNh+bysiUQFCbeONHLxuYY1FC7NHEYqML9+LHn9Ts5Xsdd7pMu FIdT593KXo7MNZfG5xZx7iriny3UcwK2h/HwcuhYLmNw3VnSaI7zKMTHdvDf8uGjOaIF YwgNHhKC/g81fs6PpG6ZG9YT0xiaaUf1afxYsBNEvASB/5InWyWbqO0B7NafuxvMyNsN 71fQ4dRymQOYf95URbQ3UfWzPXLkZr7p+zus/9k7cai8NJMwesHAVnIwcQFoPcQly99q 5R2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=scs+UQEp; 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 d16si10232743ile.11.2021.09.14.00.38.59; Tue, 14 Sep 2021 00:39: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=scs+UQEp; 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 S241589AbhINHkO (ORCPT + 99 others); Tue, 14 Sep 2021 03:40:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241906AbhINHjf (ORCPT ); Tue, 14 Sep 2021 03:39:35 -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 958F7C0612AB for ; Tue, 14 Sep 2021 00:36:49 -0700 (PDT) Received: by mail-pg1-x532.google.com with SMTP id k24so11923336pgh.8 for ; Tue, 14 Sep 2021 00:36:49 -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=85ranNZdyaGfIOzMylg5hKugOz3EzRoTjtK/I6Bf/uc=; b=scs+UQEpQpVrbhxG/18iJA5iDDX5adwTaPjyTj1/tlfT8b0WEFYeJxSeuk0hq9oFGf KiuHBuMXlggevT7VbeCvO0Nzj5flt40abbEYfZapdScLVNqAOrrd33blZSHe6m9GL1Nc nGmuczfYWt1v2BoGnc7kjCgklwI3rluKyQ4jw6Erv6RYmGtQi0JH0Pm+b0JN7tQqU6Wy 9Ik8pdsjFRHQN+PDPhkDjvqH0z9CuTyx9zk8yluDPCMeBnmd4pa9jfO/iBb8MORiUbnk ebvWdrJNF3aLWVgh3Xn2GT+GyvQbs5cktdqb35Jcauxi5iuXbEmUQspCHgqNhJGzGsda 6zPg== 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=85ranNZdyaGfIOzMylg5hKugOz3EzRoTjtK/I6Bf/uc=; b=IypnYiJtxt37FxaG5TiaHPxdaSgmo42D+kjt6/zoBymcKeTFZ28MmHV84uXQE7wwbV s6KNka7dzgjQIhdyQYTOCQZxRmyQ/zRcrJgMJNaGNb6TjmASNrozwN6U4M8uMxQXxofl 1oaw+BgRl+YBvbOCVMz1OW681/bKu7jl7h5iStrGa7rALgaE5A/QFnf8d29UEVQmKjs1 wT4CFeL5aoVrJrBWNrQTFW/dPYZMak6UoK7jZOUMS7eoiqJ7px4wZWSoyuncTdRyu77J u2gq3UBMn9gYrvMoSWPTb8KPVI+DGTi1nmWcvU3UrasE03/7wEn3u77KUfj6HWUhNnMq +wTw== X-Gm-Message-State: AOAM533pfd+lXqfiD4Sp6NasiEEiC2ovYZn/yE+21PhTm8hELUjsBs+c WTFMzG7cMtSK+JmvOaySIaCCDg== X-Received: by 2002:a63:4b5a:: with SMTP id k26mr14357882pgl.241.1631605009165; Tue, 14 Sep 2021 00:36:49 -0700 (PDT) Received: from localhost.localdomain ([139.177.225.244]) by smtp.gmail.com with ESMTPSA id s3sm9377839pfd.188.2021.09.14.00.36.41 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Sep 2021 00:36:48 -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 32/76] hfs: allocate inode by using alloc_inode_sb() Date: Tue, 14 Sep 2021 15:28:54 +0800 Message-Id: <20210914072938.6440-33-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/hfs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/hfs/super.c b/fs/hfs/super.c index 12d9bae39363..6764afa98a6f 100644 --- a/fs/hfs/super.c +++ b/fs/hfs/super.c @@ -162,7 +162,7 @@ static struct inode *hfs_alloc_inode(struct super_block *sb) { struct hfs_inode_info *i; - i = kmem_cache_alloc(hfs_inode_cachep, GFP_KERNEL); + i = alloc_inode_sb(sb, hfs_inode_cachep, GFP_KERNEL); return i ? &i->vfs_inode : NULL; } -- 2.11.0