Message ID | 20210914072938.6440-54-songmuchun@bytedance.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <SRS0=Ci01=OE=kvack.org=owner-linux-mm@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 86FB7C433EF for <linux-mm@archiver.kernel.org>; Tue, 14 Sep 2021 07:39:21 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 35C1361056 for <linux-mm@archiver.kernel.org>; Tue, 14 Sep 2021 07:39:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 35C1361056 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=bytedance.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id C9F1E940017; Tue, 14 Sep 2021 03:39:20 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C4F93940007; Tue, 14 Sep 2021 03:39:20 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B16A4940017; Tue, 14 Sep 2021 03:39:20 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id A1D4B940007 for <linux-mm@kvack.org>; Tue, 14 Sep 2021 03:39:20 -0400 (EDT) Received: from smtpin37.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 6883F18081B02 for <linux-mm@kvack.org>; Tue, 14 Sep 2021 07:39:20 +0000 (UTC) X-FDA: 78585378480.37.8D6F13A Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) by imf02.hostedemail.com (Postfix) with ESMTP id 364CD7001A0A for <linux-mm@kvack.org>; Tue, 14 Sep 2021 07:39:20 +0000 (UTC) Received: by mail-pj1-f48.google.com with SMTP id u13-20020a17090abb0db0290177e1d9b3f7so1471820pjr.1 for <linux-mm@kvack.org>; Tue, 14 Sep 2021 00:39:20 -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=Cn7wEzKpVo2pEmgATOpaIs752ikYi/KDVv35sM2A6KcmFaiql2ua4hbgWwVuu/gXZ8 iTNVLuY0DeoDvSlERBZA0iKKw8qlCzbL153JazdznR2BePwvJRP9iUQyNt9f6inbtw3+ kND+YajszsYqf5wYN8wNYupLj0RXvkjnrCsWSxiocFFSXC0Rs6LZtP0ZPlNbGsfxIVAc WtmTmpfGoi9OfwvAANDeGhRvy2Y7co0yzAFl65pEQLbN2Cor+oAoHxHYZ6VX1ksd8d4O XARdUOz1uWJJnfeiSzeFQoXMDgHEkNLGx1jWL2cNRqPjTIu9PkZ9cG4BX1VFDtA/6eoz TJFA== X-Gm-Message-State: AOAM5317GLj7XZU/98rjokLgwA5bKZUghgkr8LiA6Z/vcN30qXZ6424o pTNXFb3msZY+lekVsg8L/rVgAg== X-Google-Smtp-Source: ABdhPJy/HLUtiT+SQqdbf+XTfxJE1/QsuKyIRhd9fdS50+avblVckJ4d5s8cFJbFgkEZEIkF661tLw== 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 <songmuchun@bytedance.com> 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 <songmuchun@bytedance.com> 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 X-Stat-Signature: deo61gyy7yrob9acm37qsmzi89774inf Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=WLFvf0yP; dmarc=pass (policy=none) header.from=bytedance.com; spf=pass (imf02.hostedemail.com: domain of songmuchun@bytedance.com designates 209.85.216.48 as permitted sender) smtp.mailfrom=songmuchun@bytedance.com X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: 364CD7001A0A X-HE-Tag: 1631605160-813116 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
Optimize list lru memory consumption
|
expand
|
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; }
The inode allocation is supposed to use alloc_inode_sb(), so convert kmem_cache_alloc() to alloc_inode_sb(). Signed-off-by: Muchun Song <songmuchun@bytedance.com> --- fs/squashfs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)