Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp444917pxb; Tue, 14 Sep 2021 00:44:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkqTP6PiVwTbhCGqux3Z4yjsSmGTjzwqsnn0hR4/LfsllmBzS6CWoYeplNhNAj7R9j0SQd X-Received: by 2002:a17:906:314e:: with SMTP id e14mr17344817eje.165.1631605448272; Tue, 14 Sep 2021 00:44:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631605448; cv=none; d=google.com; s=arc-20160816; b=rfufiUEEob26vXNIHLW7LjNbIh4VP/0tIXpsv2dJ82kOsxzcpqZ79m2ur68Ze+xOmc DGAsnZqQYdOpl7Unv7E9mAXeDzK0Li4IgdNKL8aZjEbTz05qaPKDo6uK/FSmTpixjxeQ TYSvdWkYtojg6uDn2YlzNfk7MIIsK3QmLonC1MKE/uidCA4n44ImpzV+o2tLjc/ysRmr KJrR522goz/D20C9UCMqGEUUJDsO6eHHtLdkECeyrB7TgqzyyYPIGWKqcbVQfZTTdBx7 9IpjdoFQtX/Rakb4Da9r+j5mt7pgCxzrEvTg6zo7lkc6iGj/V3zFRPvV8A8tDojFQITl NCPw== 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=CfoG77+GHMGoWvpmb0Om6WO4EZF5vVDZrlNrzkyEw1M=; b=paH88nvJydPKPOXauOgTjTRC8CXGMZrER98ghOpFYapRMJUtLjFSmcVXwCgfoKJWx4 /rzvz2PNr2X+J6MUH1GNhCa00iL9CchDa03ftC1PtG4d4MChC7eGYbIci/16KuH1N8LE x1rJFTO4paQtR/EexkX7kxfotv7h+fH03JsWUT3DDUXDX0rxs4aj/OUoCPqTY0/H/BZ4 biV5zBI49IWDkL12LWfxjbiDgXrrzL0YOWvCjyN7kzTIn0wDzU6/B5fTcIDWxkz4aaMG KpH1zzg3687pRsChA9+TNJmtiJ24yfx4OkbMadT8tabxPz0FIqvyChAh9y8ToQ5gJbXy RNoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b="nsB15Zu/"; 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 l15si9686677eje.462.2021.09.14.00.43.45; Tue, 14 Sep 2021 00:44:08 -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="nsB15Zu/"; 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 S231956AbhINHox (ORCPT + 99 others); Tue, 14 Sep 2021 03:44:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233024AbhINHn7 (ORCPT ); Tue, 14 Sep 2021 03:43:59 -0400 Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4512CC0613BB for ; Tue, 14 Sep 2021 00:39:46 -0700 (PDT) Received: by mail-pg1-x534.google.com with SMTP id h3so11945741pgb.7 for ; Tue, 14 Sep 2021 00:39:46 -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=CfoG77+GHMGoWvpmb0Om6WO4EZF5vVDZrlNrzkyEw1M=; b=nsB15Zu/N08EYQS1fOMnKPBfgz9FbWFrKXx6IeT8c4Kk0PQOORzcgc7XdjTxreVgo3 vmvz1l+DBYMg94UlWVlOeqmzWXeyiyUXGJhKWElU9MkoRZIc1/+PdeY6I9GMnfsLTtgX iMVBI/jt3sEDRoHh5p4jaIl3hJBN6bMf9f5e1poH1KTAUK3roZBzlCHz1DEDsUrSTPpD V8CE5z9qjc9r45z+HrhMR4C4Wtx0UTGpNBinF9hIE5jJ1Ef8H4MJWJWgE5tibySqyy6D QVQefExtDsPELFRRftpZg/DrsiGoAe5lPHXNuc8Bw4onTWpnBfdDJZnvJDTJ1HmBE7RE ABjw== 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=CfoG77+GHMGoWvpmb0Om6WO4EZF5vVDZrlNrzkyEw1M=; b=CmZYssP1TmVJyAYU27whTOakfT7NxIdFBD1qJFh344EnPonMRc2TQKkmln+eKKgjPz Vprz3uw906q0H/iwsW6WUtTtrZjWHSWL8zBhey5K8qVc+aUbOPmnYCWV18LAv8varxxp aFPcJjJ9DamDiqwiogR/d20/0yJICubsEda+LuGxYPq1VH/VVsHBEcxIm9hzOHAlm8sj /fjx1NxhjimvA12yr1ZS23MZNz8pyXIj5ehkrZrAvbQlMpe7HMq3Y62kLGFiJmzjqRfj JWiHy0dmzEG+T7V8ZBXoC91z69T5t9AuerbNppjr9EhWaA5Yju3/0tcDQtznpTadjADo wX4w== X-Gm-Message-State: AOAM533YkddyLwykzjhEwQZ5fbmfKwxLbXyF3V7Sq7FtBEZGnH13Q5X+ Winn7T6N32+1S/lu8cGsHSMsbw== X-Received: by 2002:a63:150e:: with SMTP id v14mr14436018pgl.126.1631605185861; Tue, 14 Sep 2021 00:39:45 -0700 (PDT) Received: from localhost.localdomain ([139.177.225.244]) by smtp.gmail.com with ESMTPSA id s3sm9377839pfd.188.2021.09.14.00.39.39 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Sep 2021 00:39:45 -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 57/76] ufs: allocate inode by using alloc_inode_sb() Date: Tue, 14 Sep 2021 15:29:19 +0800 Message-Id: <20210914072938.6440-58-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/ufs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ufs/super.c b/fs/ufs/super.c index 00a01471ea05..23377c1baed9 100644 --- a/fs/ufs/super.c +++ b/fs/ufs/super.c @@ -1443,7 +1443,7 @@ static struct inode *ufs_alloc_inode(struct super_block *sb) { struct ufs_inode_info *ei; - ei = kmem_cache_alloc(ufs_inode_cachep, GFP_NOFS); + ei = alloc_inode_sb(sb, ufs_inode_cachep, GFP_NOFS); if (!ei) return NULL; -- 2.11.0