Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp444370pxb; Tue, 14 Sep 2021 00:42:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsXbvIEffqyz9TZdoUU6pmJur6q6kagzd2qKuhn4oPS5Gsbd6kjwMNseoZkiIu079AgjXu X-Received: by 2002:a92:4a10:: with SMTP id m16mr11601332ilf.91.1631605375848; Tue, 14 Sep 2021 00:42:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631605375; cv=none; d=google.com; s=arc-20160816; b=Q21o01/alo5iUVVeUnk7XYIOOS82MkSD66c6jUqRBznXHOFG+v+aFUZUydeExnu0nr PaVMIXWZtME4tt3sAjwchgOb2Yp5rDWH3tABx5FXBDciCY5MWZ53ePF6teNxp1p+LWxq SeisGTD7f7d0oT5L2tmKS3/RVlTqpWnUudYOcRL7MAm2kPF45AKcFRQn7RycPqhG/FbY J0l72VXFbIjDHm6cKSFeb55qziDLv5flWXxXaj3ak7gh2YHNhZewk1HFVQhK+epSfNsQ nK6D6NeZ2Il3w/OIAdvTcJgj11evE57H1XK6znAKeik1Kx7Y7PRYH0osgwgf2xvEZ6Yl VmSg== 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=mHRI7i94nkkwALVkJUru65wTIGyTMAu5yxZLJ0urhMs=; b=oVUmkKdWhFz5uTO3TGVE7zkfefeIUBGSwnMt6A1l9YDH4Ef87/yHiu7rfma6gvok52 OimYr0uV9Z0+9AooDwCSxCiwK5dyzxGy0aoTXF+Uu2soChcw8PlTZQ62BElk028J0DFV 1KLemu19L1DC1P/lzojpWFqhHJaF3m5yKLMFAilClpH0fBKINTdnpS9mGBBFkBFUlbZk yY8S9lZN8T16cHlGASulGwaRjt2n49EszWndbJztLVkM5rCGnsN3z+PYm5M1UJUMC2bg poHa8F2YUiz3ONLCSOeAx6gvlWlv4/2ih2hBsA2BZVUHalMU99RC5W9m6QGvk4IY+7ea S3+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=WLFvf0yP; 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 o20si11025476iov.71.2021.09.14.00.42.44; Tue, 14 Sep 2021 00:42: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=WLFvf0yP; 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 S233526AbhINHno (ORCPT + 99 others); Tue, 14 Sep 2021 03:43:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233618AbhINHnI (ORCPT ); Tue, 14 Sep 2021 03:43:08 -0400 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2EDCC06179A for ; Tue, 14 Sep 2021 00:39:19 -0700 (PDT) Received: by mail-pj1-x102a.google.com with SMTP id m21-20020a17090a859500b00197688449c4so2104092pjn.0 for ; Tue, 14 Sep 2021 00:39:19 -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=mHRI7i94nkkwALVkJUru65wTIGyTMAu5yxZLJ0urhMs=; b=WLFvf0yPGpxYDITgQsoRZISgK1oizMjzYNnbCPzbiVPdq7IswUpVIxTsw4DygWSs9y uw8VmNGrWvIgI1Z7O3sQslX3re3c0eiPxnRwtt+F2g3PKev2n5MSnVJTBE6y6AVbRPhv HzPzwHvAFcd4LTE2VwMAwljMc6uRFXkEiPsKrbPs3qly5ey42l/L1BPTOMSoA9ZEM91E MNCZL1crssjdApZjU/gh2xl53+6G92GXfk9+7Hs7m2k2minNnGwgqa2qNEYOjSirX6c+ csOZuB+w+r8rsjzG9WceNzCiTuYhYzZNTfrqjf5pdPzN4S39bm8v8pt5NGC+UsJ407lT qmPg== 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=mHRI7i94nkkwALVkJUru65wTIGyTMAu5yxZLJ0urhMs=; b=29OtquX8ZmeAw7fgVu1OeLg0rH4MNRJjRVcWsFixPI4BDpaNWctckn3CxZgkU77wzp FBOrhmtAx9JraWKZdMkOwR2U+X/AqKmcfiETs4cKJvovxYAIyirvbf/HG5gzcRChFLJr pqgDJs6P0ZpB0tmGYKUZp0f9TS7aPEcy1FS3R9bnl7ymvCFPoI8HnyTZXOL+345G0biU hEaBRc6m/MGgwiA9mNgNRwYv0g+ildyyaMDnOolpJu3/ava3lylrLTBq/JoFeWLQjFeL 6B90FQdnqy19FFuCR2m6BNt0Wr/fahg0wd2LskOzi/NvrAz4hn03AaEPaQixkHsWaJQU d5vA== X-Gm-Message-State: AOAM530eaBM+WVL/r+78kdnIjCQd/OyCH60N9EZW4B163f9toW8lMDLA mK4j9x9iXZ2tUo5odce0GMHyMg== X-Received: by 2002:a17:90a:d516:: with SMTP id t22mr566682pju.208.1631605159109; Tue, 14 Sep 2021 00:39:19 -0700 (PDT) Received: from localhost.localdomain ([139.177.225.244]) by smtp.gmail.com with ESMTPSA id s3sm9377839pfd.188.2021.09.14.00.39.12 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Sep 2021 00:39:18 -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 53/76] squashfs: allocate inode by using alloc_inode_sb() Date: Tue, 14 Sep 2021 15:29:15 +0800 Message-Id: <20210914072938.6440-54-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/squashfs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/squashfs/super.c b/fs/squashfs/super.c index 60d6951915f4..e51625e93b00 100644 --- a/fs/squashfs/super.c +++ b/fs/squashfs/super.c @@ -550,7 +550,7 @@ static void __exit exit_squashfs_fs(void) static struct inode *squashfs_alloc_inode(struct super_block *sb) { struct squashfs_inode_info *ei = - kmem_cache_alloc(squashfs_inode_cachep, GFP_KERNEL); + alloc_inode_sb(sb, squashfs_inode_cachep, GFP_KERNEL); return ei ? &ei->vfs_inode : NULL; } -- 2.11.0