Message ID | 20240224134617.829016-1-chengming.zhou@linux.dev |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-79645-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp1153220dyb; Sat, 24 Feb 2024 05:46:46 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV+Z1u5LSPebS8/K/Xunny6E3xg04cf+HhNvvzukbGicold3pHWRTwwoQWERA6p8UYkfFXk4hcrdOQI20zmiOKJWle+yQ== X-Google-Smtp-Source: AGHT+IHA5Wv1AUQLt0nWtDYiaRiyR6KwZaV2kHkB3Or+rN8mwGL5eA/iM3oQTEjxIX+KU8EaktE1 X-Received: by 2002:a05:620a:4012:b0:787:c697:7d81 with SMTP id h18-20020a05620a401200b00787c6977d81mr957775qko.11.1708782406554; Sat, 24 Feb 2024 05:46:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708782406; cv=pass; d=google.com; s=arc-20160816; b=fwNyveG70ggiF0tisr4qE2rIZi441AKQPWWpj8vZ7SjXnISPqH9vXdB+cwcYi9Mj1Z oxzoOuanw41cIvnBrmr9RdALXhMUyPJmdeEolfjnhCCQdpejS/2oZt3ERpK1frSz39R5 DWrPd99Y37uNqhPlKK3/gWP5jRYhDbi9+XE+s04rhjTqvkQYlkDEUr5iJjqMD+0xOE12 4lA4KPOuLHSs/gc3qFTgxCV+empCFqXXLR7n3ZGBU8MrnUWE5XoH2znyhdnuoJfs9HBH +0Bz1i1xD9t/lpqRh52wZgi0KLHC25KPuvoW9pvNBp6QE1PE5R/HVxTRzyCm7Jh8oe/5 SQ9g== 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=xPD7kQrj4QVbyIPYEPjgeoIpw5sjNPJYGKf/24Kh9AY=; fh=2e/pKxaRwH2axr6fYw/MH8BKdrsuiXUVosIyKF1tNNo=; b=0x+aYjD4IF5bHBoXKWMMHJ3ogBM7rtW5OmpBP12HPPgm7josDa7jZ+QQEMEysB3Ggy L2y7SaSw8zXNFJGq9mxayt0FHtKCNliUfeDNiw/wQ7h9qiNtKmV1Mo9EyPNb9tuUlBTB pQNp5v5qRRoCswZrzVruOoLHj9eMVxo4tnMBFieJ4vhehVEx3ikaVswldxlrNKLWR9r7 3S8mF9wAAELqmAINv6qJM4cNrWJAnHyot/ZhCMOLQQ8MznDOAKXTJQvGiGrnWYtAiGFa LUQ/q7eK+UaDn/d7keVQEy/M6Lxp7pJKtPSIFer5qkUkObB3CD1bYbbJuKEsczKDxEwr X/SQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=M3xfCMXr; 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-79645-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79645-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id s4-20020a05622a1a8400b0042c4aa5b02esi1161277qtc.610.2024.02.24.05.46.46 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 05:46:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79645-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=M3xfCMXr; 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-79645-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79645-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5296D1C20E40 for <ouuuleilei@gmail.com>; Sat, 24 Feb 2024 13:46:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AACFF42066; Sat, 24 Feb 2024 13:46:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="M3xfCMXr" Received: from out-173.mta0.migadu.com (out-173.mta0.migadu.com [91.218.175.173]) (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 70419E559 for <linux-kernel@vger.kernel.org>; Sat, 24 Feb 2024 13:46:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.173 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708782393; cv=none; b=niyFAZTFVNMcBam/CtuwE8vtOwbnwsvE4w17XxPxRrvA2kIstyJCAuKsGn7m/2PZM2cvHiLQoO9gqoKpDLF5M+i8A7SJ0rQd/4Yy9QwPXZ9aNdSRPWgmHItNtrL42pZcqkDji19Wd470tv068Rm+QQJ8M76jNbOn6bvlKFHryCg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708782393; c=relaxed/simple; bh=znUWX/WHxO8E1DbbTZpiulV0UzSDhdKmfWMj15MOtIM=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=jsdXtSVM4XsBOGGYkUjxxbGZF2U++w5VWgybwlePNTGBU/RY/09Vk31gUBgw5MHYcltDA0qYSru18MgIsCKXlEB/AocrfQdi/3GYEAKAfToPdHGVS0FdWumNm5gHkJXxVQYveJowshsOwaL1BplnouPS7x7jvYTH3/+9HLYTnhM= 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=M3xfCMXr; arc=none smtp.client-ip=91.218.175.173 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=1708782388; 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=xPD7kQrj4QVbyIPYEPjgeoIpw5sjNPJYGKf/24Kh9AY=; b=M3xfCMXr476j/PJU5PkafSSrNC1/XpanlWyf+pMtahIvilWPTFF6BiCr0lbtfrBJrgEj1f m2e+Mq6e8ebaxVQVXha97vHCKqAXNy4vFT4RpdpjckByIjdfzAOTOwvF6J1R97+Wt9sxOk aeqiuWKo8wFd/C3/a3AbjwY5hzlHKPk= From: chengming.zhou@linux.dev To: ericvh@kernel.org, lucho@ionkov.net, asmadeus@codewreck.org, linux_oss@crudebyte.com Cc: v9fs@lists.linux.dev, 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] 9p: remove SLAB_MEM_SPREAD flag usage Date: Sat, 24 Feb 2024 13:46:17 +0000 Message-Id: <20240224134617.829016-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: 1791788220712219155 X-GMAIL-MSGID: 1791788220712219155 |
Series |
9p: remove SLAB_MEM_SPREAD flag usage
|
|
Commit Message
Chengming Zhou
Feb. 24, 2024, 1:46 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/9p/v9fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 2024/2/24 21:46, 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 to avoid confusion for users. Here we can just remove all its users, which has no 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/9p/v9fs.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/9p/v9fs.c b/fs/9p/v9fs.c > index 61dbe52bb3a3..281a1ed03a04 100644 > --- a/fs/9p/v9fs.c > +++ b/fs/9p/v9fs.c > @@ -637,7 +637,7 @@ static int v9fs_init_inode_cache(void) > v9fs_inode_cache = kmem_cache_create("v9fs_inode_cache", > sizeof(struct v9fs_inode), > 0, (SLAB_RECLAIM_ACCOUNT| > - SLAB_MEM_SPREAD|SLAB_ACCOUNT), > + SLAB_ACCOUNT), > v9fs_inode_init_once); > if (!v9fs_inode_cache) > return -ENOMEM;
Chengming Zhou wrote on Mon, Feb 26, 2024 at 10:51:00AM +0800: > On 2024/2/24 21:46, 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 to avoid confusion for users. > Here we can just remove all its users, which has no functional change. > > [1] https://lore.kernel.org/all/20240223-slab-cleanup-flags-v2-1-02f1753e8303@suse.cz/ Thanks for the updated text, this is a bit better. I've updated your commit message with this and will push to Linus next merge window in a couple of weeks, as you said there's no change so no reason to submit a patch this late in the cycle.
diff --git a/fs/9p/v9fs.c b/fs/9p/v9fs.c index 61dbe52bb3a3..281a1ed03a04 100644 --- a/fs/9p/v9fs.c +++ b/fs/9p/v9fs.c @@ -637,7 +637,7 @@ static int v9fs_init_inode_cache(void) v9fs_inode_cache = kmem_cache_create("v9fs_inode_cache", sizeof(struct v9fs_inode), 0, (SLAB_RECLAIM_ACCOUNT| - SLAB_MEM_SPREAD|SLAB_ACCOUNT), + SLAB_ACCOUNT), v9fs_inode_init_once); if (!v9fs_inode_cache) return -ENOMEM;