From patchwork Sat Feb 24 13:53:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chengming Zhou X-Patchwork-Id: 205886 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp1156668dyb; Sat, 24 Feb 2024 05:56:26 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVwiTFfcYLG7KitizoOxJv2R1QZxwUg3wp6D/LFwMEF/blcqbhOAFg4cIP4mYYz76GYMqCqlHDrPtiUeTeomyT1v6pB0A== X-Google-Smtp-Source: AGHT+IGr2PqhTns0pLjSUFuzepqSKWsanSW2pvR05bwXxkiqkVmesZK3IPytxAVaMRhXwC34voZE X-Received: by 2002:a17:906:1b51:b0:a3c:ae0d:793c with SMTP id p17-20020a1709061b5100b00a3cae0d793cmr1540574ejg.20.1708782985948; Sat, 24 Feb 2024 05:56:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708782985; cv=pass; d=google.com; s=arc-20160816; b=ex3WEUuoCEzaCr1/G7Zb1Pt6wVaSOTFQSuPk733UKvrZx0QZ24yYoraz7OwPQzpq8I +fg3Edea0o9Tm0p7drU7XRFZzEdAAGvEXjT7QXeKdQBLggScqfsv8VRw/Vsu9xsAnFaz SBBvhegiklIlUl4odeLGn5olfynoaPdM5JGIm6D9KfgMXISfDbO1grWkJJd9hczFRw4V +fprl8bfFXe+aBe+78W57FsQZ30h1wTysHU8GBJXph+XQyGHjnXZRBPwYwLTrSOcD6mw Unrtw7tlj8nVrh96LVIwpEB+LWKQ4sWKlQQEeu6vU43UI+l47Ry2tX+HOe734jSC8FRC QDmw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=SZzDSQYEVw7qQaWV6Jin3tdxUrvj5JLzXNMOrmaw1cs=; fh=bjtXpNqJp7c3DJaPiZFQ3OPkWWxHZLyQbH4JW/KQkiI=; b=Ynbts7h1/9CPwJ2mmOKHTkkRWfVQiatFMIB8wac8b7HXNoMBDCAIHUtUlHDhwxOtgI 9fFdAntQ6VzbxkSta/2IIMMScK3DIjl09+36uYVOWDWKo68IkaUD/RRR+0FSCurS6AKg 1KHpJQKn5RwHwsGxqv0uI2UE7rJHsnzv06QuiV3qi4k5hA24bqmt5glpr62VS1Nnompe we67U1GSQos6VP4MvIM05LrN3E+aH3jZHet8OE7ZSFUh09wCCwRUx68WLhQAR8X0WyQS YMOkkDNrkQJGZesrcrXkBgRrVLUJS0g1Pv4gxa4q7cQbgnXMvllQuyW9yYCKacSy+Bby AEPA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=Nxghxwh8; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-79689-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79689-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id q7-20020a170906388700b00a3e7cd846bbsi515012ejd.339.2024.02.24.05.56.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 05:56:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79689-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=Nxghxwh8; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-79689-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79689-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 9060C1F230DB for ; Sat, 24 Feb 2024 13:56:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 35196524DB; Sat, 24 Feb 2024 13:53:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="Nxghxwh8" Received: from out-175.mta1.migadu.com (out-175.mta1.migadu.com [95.215.58.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3294D4EB44 for ; Sat, 24 Feb 2024 13:53:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708782806; cv=none; b=uPoqc9UspTPomvcvHFoQBg2s1C0J79Mi72OZCD5AQOdkGwE0I8p0JjZMw4ttp1nOSVYoNOzeeZLSH+vsdg8d7sv8uUfiukhDHp/kJ9wClfZIBqi+f3XAJmcunUGFLk9oDMd/s7D7fhq5mxFhHnZXFspRs5jDtBYGVxeEde15P2A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708782806; c=relaxed/simple; bh=bEGn2J5/QbumsNiNGa6Dgx6ckOXPMfjFRZxIVpHJI3U=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=N86j07EB0JvN/OmiMHWkn9jSE5rVILx0wJWYrRXc/NZwwZ8AxcH57HI4D7fopoVvP+dVoZpR6ajjhXPtubndEy2AP6JhGMnTEnousPOJZJS4uXck+B9NsDxnuyF7sFokvlSnxrJEAGyDwDuNS+CCMQNnASe6Ws4CKdXMGFCFmmA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=Nxghxwh8; arc=none smtp.client-ip=95.215.58.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1708782802; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=SZzDSQYEVw7qQaWV6Jin3tdxUrvj5JLzXNMOrmaw1cs=; b=Nxghxwh8BomOvEVqvRFU9rM5RXLd1spVtFnx2sixHfrlTcIZ8C2XRf99P74E1E4ZY2SnIz nOj06ILSxCkSY7DTW78ShdLsBClP3ZaNCYNJYhROOEjYdXxSS66SrPFean4T3Fq7tEKlwV J71bXYgC6Uvhd09IVpVLlMaHAmWxRRM= From: chengming.zhou@linux.dev To: viro@zeniv.linux.org.uk, brauner@kernel.org, jack@suse.cz Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, vbabka@suse.cz, roman.gushchin@linux.dev, Xiongwei.Song@windriver.com, chengming.zhou@linux.dev, Chengming Zhou Subject: [PATCH] vfs: remove SLAB_MEM_SPREAD flag usage Date: Sat, 24 Feb 2024 13:53:15 +0000 Message-Id: <20240224135315.830477-1-chengming.zhou@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791788828066393052 X-GMAIL-MSGID: 1791788828066393052 From: Chengming Zhou The SLAB_MEM_SPREAD flag is already a no-op as of 6.8-rc1, remove its usage so we can delete it from slab. No functional change. Signed-off-by: Chengming Zhou --- fs/buffer.c | 2 +- fs/dcache.c | 2 +- fs/inode.c | 2 +- fs/mbcache.c | 3 +-- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/fs/buffer.c b/fs/buffer.c index b55dea034a5d..9a54077de87d 100644 --- a/fs/buffer.c +++ b/fs/buffer.c @@ -3122,7 +3122,7 @@ void __init buffer_init(void) int ret; bh_cachep = KMEM_CACHE(buffer_head, - SLAB_RECLAIM_ACCOUNT|SLAB_PANIC|SLAB_MEM_SPREAD); + SLAB_RECLAIM_ACCOUNT|SLAB_PANIC); /* * Limit the bh occupancy to 10% of ZONE_NORMAL */ diff --git a/fs/dcache.c b/fs/dcache.c index 6ebccba33336..71a8e943a0fa 100644 --- a/fs/dcache.c +++ b/fs/dcache.c @@ -3139,7 +3139,7 @@ static void __init dcache_init(void) * of the dcache. */ dentry_cache = KMEM_CACHE_USERCOPY(dentry, - SLAB_RECLAIM_ACCOUNT|SLAB_PANIC|SLAB_MEM_SPREAD|SLAB_ACCOUNT, + SLAB_RECLAIM_ACCOUNT|SLAB_PANIC|SLAB_ACCOUNT, d_iname); /* Hash may have been set up in dcache_init_early */ diff --git a/fs/inode.c b/fs/inode.c index 6d0d54230363..d2e8e3884b36 100644 --- a/fs/inode.c +++ b/fs/inode.c @@ -2286,7 +2286,7 @@ void __init inode_init(void) sizeof(struct inode), 0, (SLAB_RECLAIM_ACCOUNT|SLAB_PANIC| - SLAB_MEM_SPREAD|SLAB_ACCOUNT), + SLAB_ACCOUNT), init_once); /* Hash may have been set up in inode_init_early */ diff --git a/fs/mbcache.c b/fs/mbcache.c index fe2624e17253..e60a840999aa 100644 --- a/fs/mbcache.c +++ b/fs/mbcache.c @@ -426,8 +426,7 @@ EXPORT_SYMBOL(mb_cache_destroy); static int __init mbcache_init(void) { - mb_entry_cache = KMEM_CACHE(mb_cache_entry, - SLAB_RECLAIM_ACCOUNT | SLAB_MEM_SPREAD); + mb_entry_cache = KMEM_CACHE(mb_cache_entry, SLAB_RECLAIM_ACCOUNT); if (!mb_entry_cache) return -ENOMEM; return 0;