Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp445598pxb; Tue, 14 Sep 2021 00:45:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXJMFZHQaNNb3inDU5/JQIGYiDCSMNGLWeeTthTQn8U7QION6p7Wc5u8OLRysrgNzTt5RF X-Received: by 2002:a17:906:1d41:: with SMTP id o1mr17632755ejh.232.1631605538286; Tue, 14 Sep 2021 00:45:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631605538; cv=none; d=google.com; s=arc-20160816; b=EHRYeDt/F3PKvJOZ+iamHQKe6zgoxB5OWbiDm5Wu9Z6DcukhMZA6Z+YvIi1FxnSHT4 SHK8/h5h4JZ8XSJEm4pgWOoGGsunaIHgeekecFC6vehE0UHCQ7Pq0ojS9IAoHDOSn98V Kw/WO+GPdulb9mVFHnMbeFD1dE98k+mrJi0v0vpq3J/MUYcH4+F11oBWNsgJqtV1N0bt fuxqO/7s2TQNn81g4/lqnjxde7Zo8FOLY8wLsywCzADUHBPrDKQpuXmR/4xd2sWp/ooX oQpa8hZ5kxyR102wR5xj3Mw3ciRjqBQ+2XDB7hnXczFo4JT9eKdRLQA4EM6pevD3tQWj IzHw== 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=Jq1ii8A4uQXumPf/NnNFLaE389Tt0HeSx3fXMRSpHEY=; b=bR6uPgT28dZ/jnW58/Lnxj//UFFuN1Ni0uCb9ko9/uyXoLAkrGvS8Vj+ryT6O0ZpY9 DPF3MtFGREr6mN8G4b197Xy70HUcHfHCMbYqASXZNFm9o51aOsUbIZLzKEEgOd2bZTKc hC8nk47SOc/zTkvYsXesbabYxMh+/4RORwvPkJ1hlABNrBdRAt4xrdO6CaFmrliW0ilj Ci7WsIf5S5tWHa0+4wIKL0iywukPPYecKWwALzF6rxl81x8cjQ8ZdFQ17qBeuruIUmc/ Qq2VQTwtpkMgzaOl9IOPg6pVmWWnbc2UTILzmrxexwRD+41G73EEsLOn80btemTqQFyq c0FA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=mT4FkMAo; 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 jx15si5872824ejc.161.2021.09.14.00.45.15; Tue, 14 Sep 2021 00:45:38 -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=mT4FkMAo; 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 S233258AbhINHoK (ORCPT + 99 others); Tue, 14 Sep 2021 03:44:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231407AbhINHng (ORCPT ); Tue, 14 Sep 2021 03:43:36 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB1E5C0613B4 for ; Tue, 14 Sep 2021 00:39:32 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id w19-20020a17090aaf9300b00191e6d10a19so2070348pjq.1 for ; Tue, 14 Sep 2021 00:39:32 -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=Jq1ii8A4uQXumPf/NnNFLaE389Tt0HeSx3fXMRSpHEY=; b=mT4FkMAo0C9XvgGm7TTt1y2GGwp6xYsyTEyh37SSuVDZxf4eK7SKxsMqb30qkdoseX oKPLNqiO0xX7L7dj4fzYOpaFYrK0ux6Mob00Kaxx5nssQqOLDQQU9kq10h2rvO44/dKw dnxMA8j8877MzbRnf4MOF+sisgWX3j1StFcKANodUOY0BjcjxomePimI9sO0INBeGoja ysUOwHxnZdDmtmca/YNTEJ+JdJ9nCvxRBjng1nmfsvYJoGFqaFuV0RHWnnB5VC7PdV4c RXzO38ez4IIZvh0e72G8X4hH+GQMUD5mZ7lAB4rJNlofF+KHbzqmGHMljrx0pV0QbwYe jIfA== 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=Jq1ii8A4uQXumPf/NnNFLaE389Tt0HeSx3fXMRSpHEY=; b=lZLbJxTH0Wskp4uhwL16PboaIjam5zx8+kgVG6hqMH/QhDO4BRm8kstMDBmy2A80Oh IVYZrINlNWQQrNVNkSdYlQACw/XLxxOO6kAizHIE4aqopUZpGZvH6mfV+ZqjiseJOoMj wZ3cp+YAE4FdAE+asTSTVE6XXXSUeVISQ1J9PvKrt2O/oC+rjEpQlm+K5Z8RPG2tT+pG Pu6rAF1zcdHYJH+txYedV9n5nIdSDfo68CoiTGpYaOYtv/sKqyRiA7t3agDQ/w1G0JZZ z9fNIxn/SuFRMwtu6Q8yiFfETS8s13ZbGIu8g+pOfLEC8IENIuhSSoe2nhqI1TCk5onW mw2Q== X-Gm-Message-State: AOAM531G/GVx2+NKvq4JOu2VYTwThXwGezOGzVazz3qhQ4pF8KOeJFNX IJ9t5vxKuSQW1FEu2Ujr3OL5aA== X-Received: by 2002:a17:902:c40e:b0:138:e2f9:6c97 with SMTP id k14-20020a170902c40e00b00138e2f96c97mr13786006plk.26.1631605172395; Tue, 14 Sep 2021 00:39:32 -0700 (PDT) Received: from localhost.localdomain ([139.177.225.244]) by smtp.gmail.com with ESMTPSA id s3sm9377839pfd.188.2021.09.14.00.39.26 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Sep 2021 00:39:32 -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 55/76] ubifs: allocate inode by using alloc_inode_sb() Date: Tue, 14 Sep 2021 15:29:17 +0800 Message-Id: <20210914072938.6440-56-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/ubifs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c index f0fb25727d96..73b51f8e6817 100644 --- a/fs/ubifs/super.c +++ b/fs/ubifs/super.c @@ -268,7 +268,7 @@ static struct inode *ubifs_alloc_inode(struct super_block *sb) { struct ubifs_inode *ui; - ui = kmem_cache_alloc(ubifs_inode_slab, GFP_NOFS); + ui = alloc_inode_sb(sb, ubifs_inode_slab, GFP_NOFS); if (!ui) return NULL; -- 2.11.0