Message ID | 20240224134749.829361-1-chengming.zhou@linux.dev |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-79655-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp1154077dyb; Sat, 24 Feb 2024 05:49:03 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXz9oI1F0CrwIv5H/RdKYjLFmiSPI9p2XuSXROADYXlgLF19UNtDbyUqht+XhKnJrvTzHn1yCY98aLkbgYRU1xkbEEdzw== X-Google-Smtp-Source: AGHT+IGCyGljen9X2nJmv034aeheHao22up42U6asoJw/JdK2Pdhi+wijqNNfdjtTcmj/7nw3R9V X-Received: by 2002:a17:90a:e60b:b0:299:7a52:8c1d with SMTP id j11-20020a17090ae60b00b002997a528c1dmr1550823pjy.30.1708782543740; Sat, 24 Feb 2024 05:49:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708782543; cv=pass; d=google.com; s=arc-20160816; b=l4MVyOHS8qT2f6MPymjR3zokYddIFT3xPW1ixoN4ady2TTG2dqr/JIPFOVsnqQJVUM 8SRwzUAc9pq0Prjs//1VTrzGN2bC8FB/zL9nOW2P9LhewGGSpQjMuscUK2VZCghpnCcA xWbuKDf6zO3o+GVbE0lJ+XeO64CrQrwTNU+W3VvHhK5h7qoaa0MFEva7gNHqLu2lWEIR G60ugAbJoedUJLp0qphOed9LViar0Dgy9bLlmzubvTajd6PPUV5L0EEjOleKs+7VruSS iWWbTOvLOfKhc5W9bTU0nNWpeBpzMa5POdUWiYQC+McvybXxXNPbvkp8N5meNy/K7Y9a BhYg== 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=nhgk1xLGq4KX/ZM1rwfa07VQXn0oX30NwYq/BvwDp04=; fh=zmRXohjj8QsQyMfV0AJzhQGI8IbJBxVNbtarOW9xlCQ=; b=WEoJLTialzp+aeFmFGVwX8/8o7hs00XYAIfkRIgi7rVbVJnEyKbZ3JkEHtPLG1eRIU 4BfCtTPuuOUaGIxUFMJ3P4YGTmIVyeTNV/VKK5ytKYntDG8v6fgJB/wNXvz398+JXJz5 3UPSP6zW18hdXUmcEvIu87+pfGImxlNItWjWuckp6C3xzgK4pDtMC3SX1uVxbh5eQOHp /LYKi8x1mNSoh9WruGGEE9AmKiLzxE1Py/TThJ9IZLmLQInDz01jo8Zofo/Ey006xWlt j7T/7HbriR9yXSGQh/9SCgg13Cp37XHgfiwyFevKja2SX6KVfTXn3ZZGc6gR5Ys1nXO2 laiQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="fl/RWrgg"; 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-79655-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79655-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id np15-20020a17090b4c4f00b00298b7aea622si2810619pjb.108.2024.02.24.05.49.03 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 05:49:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79655-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="fl/RWrgg"; 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-79655-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79655-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 24F47B218DC for <ouuuleilei@gmail.com>; Sat, 24 Feb 2024 13:49:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 82ACD4779D; Sat, 24 Feb 2024 13:48:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="fl/RWrgg" Received: from out-179.mta1.migadu.com (out-179.mta1.migadu.com [95.215.58.179]) (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 93CC329438 for <linux-kernel@vger.kernel.org>; Sat, 24 Feb 2024 13:48:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.179 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708782489; cv=none; b=FxIG074jyApOMjAf2YyMBY8pSkGbLipBSdq/fc7uO83A49kSVGhNQ59oFXVLcVGDGDpMJqgqcd8B+gG7M9rR8ZONye+q5yGu6il2mBe1bmzUa4z6R4kYOG6XiozkCKXGv8Hbfj5dFyWlouCKftVHPpaKEQtnSzI2YCHjS4vzIGc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708782489; c=relaxed/simple; bh=Hf1EvUqSPPrwju7FZe9QROGFi2kgS1A0PvtxOKouvmM=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=ZW7h0TT2Bq52gE9izhsekiCBvJtzO2JVohNbc495SNkcwdadPwYZwS8ItzudWzV2B/ghnzthrYxBVvPQFDATzR7k/JbR5cDMDpMFLAYGPxPSI2SrMFVO6835DzXRmZ4siHcW4ZO6UAez7f9TII85+Ex57nXtopRg4dbwX11ucCw= 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=fl/RWrgg; arc=none smtp.client-ip=95.215.58.179 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=1708782482; 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=nhgk1xLGq4KX/ZM1rwfa07VQXn0oX30NwYq/BvwDp04=; b=fl/RWrggsb1lT23NO1RkWdvVun6tHSIULezh29Wj5sdbZDIbimQXihiTJ/TYDYuVSpgTUf xNrVYfDyUsd7UO0ltzy9rp3FfJEsstIkLMGalkZrHm/2aDPm0ANm3586REIj+DtM2NC8vA uNi52abAQJbIiC4SFfiaP+oHFRKV8AA= From: chengming.zhou@linux.dev To: xiang@kernel.org, chao@kernel.org, huyue2@coolpad.com, jefflexu@linux.alibaba.com Cc: linux-erofs@lists.ozlabs.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 <zhouchengming@bytedance.com> Subject: [PATCH] erofs: remove SLAB_MEM_SPREAD flag usage Date: Sat, 24 Feb 2024 13:47:49 +0000 Message-Id: <20240224134749.829361-1-chengming.zhou@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791788364335367947 X-GMAIL-MSGID: 1791788364335367947 |
Series |
erofs: remove SLAB_MEM_SPREAD flag usage
|
|
Commit Message
Chengming Zhou
Feb. 24, 2024, 1:47 p.m. UTC
From: Chengming Zhou <zhouchengming@bytedance.com> 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 <zhouchengming@bytedance.com> --- fs/erofs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 2024/2/24 21:47, chengming.zhou@linux.dev wrote: > From: Chengming Zhou <zhouchengming@bytedance.com> > > 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. Update changelog to make it clearer: The SLAB_MEM_SPREAD flag used to be implemented in SLAB, which was removed as of v6.8-rc1, so it became a dead flag since the commit 16a1d968358a ("mm/slab: remove mm/slab.c and slab_def.h"). And the series[1] went on to mark it obsolete explicitly to avoid confusion for users. Here we can just remove all its users, which has no any functional change. [1] https://lore.kernel.org/all/20240223-slab-cleanup-flags-v2-1-02f1753e8303@suse.cz/ Thanks! > > Signed-off-by: Chengming Zhou <zhouchengming@bytedance.com> > --- > fs/erofs/super.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/erofs/super.c b/fs/erofs/super.c > index 9b4b66dcdd4f..8b6bf9ae1a59 100644 > --- a/fs/erofs/super.c > +++ b/fs/erofs/super.c > @@ -885,7 +885,7 @@ static int __init erofs_module_init(void) > > erofs_inode_cachep = kmem_cache_create("erofs_inode", > sizeof(struct erofs_inode), 0, > - SLAB_RECLAIM_ACCOUNT | SLAB_MEM_SPREAD | SLAB_ACCOUNT, > + SLAB_RECLAIM_ACCOUNT | SLAB_ACCOUNT, > erofs_inode_init_once); > if (!erofs_inode_cachep) > return -ENOMEM;
diff --git a/fs/erofs/super.c b/fs/erofs/super.c index 9b4b66dcdd4f..8b6bf9ae1a59 100644 --- a/fs/erofs/super.c +++ b/fs/erofs/super.c @@ -885,7 +885,7 @@ static int __init erofs_module_init(void) erofs_inode_cachep = kmem_cache_create("erofs_inode", sizeof(struct erofs_inode), 0, - SLAB_RECLAIM_ACCOUNT | SLAB_MEM_SPREAD | SLAB_ACCOUNT, + SLAB_RECLAIM_ACCOUNT | SLAB_ACCOUNT, erofs_inode_init_once); if (!erofs_inode_cachep) return -ENOMEM;