Message ID | 20240224135329.830543-1-chengming.zhou@linux.dev |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-79691-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp1156859dyb; Sat, 24 Feb 2024 05:56:56 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWEGtzyQVIkeq2S/zG9KsJPbRcFClZoAEqgl3jJUos0s1SGbfT7QRsHWPt4BR5T5qOPJ8P/qooOoDmfnGrGF3CIZYHE6A== X-Google-Smtp-Source: AGHT+IGOx4deKfUH89EfEVBcl4fnxgJg7S+kmgdjP554ehWsvsfScskVrDS9kI7q2nANsYDV1FKG X-Received: by 2002:a19:f710:0:b0:512:bd51:a0ea with SMTP id z16-20020a19f710000000b00512bd51a0eamr1436401lfe.9.1708783016032; Sat, 24 Feb 2024 05:56:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708783016; cv=pass; d=google.com; s=arc-20160816; b=TrCP3hBCIklbBxIynAu01dobmmhEPCYA2H9EJs9ACIvtZBk9FWESmyWBVdLv2l3Ndv Fp+9EJpHbsHBbH0HmxRl/DpFHRAew4g3yomYVF+oJQynsC7SdBSJja2YpCQhCGptHhwW UPxweakz3YpGF+W5N4WP3qsWPwCb+81nVark5VJ6zL+zmA8yKrubx7osgBUTBYjvrEPN KFxJyq9wQ9wFifak0AOoro+I7zJLOkfQnhrmNsq77pVFXSrRK5N/qc6ExxRs4J/gOFcM zRoBeOQ4J0mjtsGcQ2JPMKdN6kh4EwHm4CzLlwlSD57J7eMsCVlVOfnuUqg2DnmUddTy tCyQ== 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=JPQpelQkRwVwQd7AppThQpLrhs0U/sTtYtQXs0u9nsM=; fh=S/azk+WqZd6m5yPcYs6apCoFV40/AKdR7aJIAi2+9h4=; b=lbqaW7tcO0FJnGxjysNJBjUliQPeEcq+J0uDQXDgJ453JVolwNLZ0uBWxZ50wfNwf2 x1Xo72pms+ce7mEUoYmyxsn22LZvZIxoqhuGDM877m+dXC5ql/igRyv9k0kbbZxgXaOf rESB3v92QyvkzMtBbZ4vtqkPylJkaGaiqFF5I+zePG8MQMB+8KmscrloFX18OseGa/dt HqyzrIQDXAGImrzN4NCnvoUWGOYHobsfqb+5GbMbmCaPs84ep28U60mg5xHXgz+XzzxN 9keoTtLmdWiZ3HOOfUjgluaYWww9eD4owj1Mdr5X0CEPGZwFVPyuO90kZ/XpCEhR6Vgy R6jA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=PzBVaEnI; 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-79691-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79691-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 qw2-20020a1709066a0200b00a3eca8162casi510770ejc.547.2024.02.24.05.56.55 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 05:56:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79691-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=PzBVaEnI; 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-79691-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79691-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 9F6C81F22192 for <ouuuleilei@gmail.com>; Sat, 24 Feb 2024 13:56:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ED2964F5F8; Sat, 24 Feb 2024 13:53:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="PzBVaEnI" Received: from out-173.mta1.migadu.com (out-173.mta1.migadu.com [95.215.58.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 E44CC482DD for <linux-kernel@vger.kernel.org>; Sat, 24 Feb 2024 13:53:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.173 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708782818; cv=none; b=dLY6Z7KpganYl9zrs1dFCZu8uh/hRSbe3384Zq8oAnum23jGwjUp6OuJFUxq9Q1XVmVBVMgF/55R+pwitQ3H5D4K+v6xCWdMsvbIIRIzqM8Bd88jwaliYz5utDVgLVruvJ3l+UvL4N068bUUqo69rtWcuB+o7R3yGkCHot61RUM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708782818; c=relaxed/simple; bh=U66kr6J4Xq7Aw3fsGVEcaok7KkVh3ioU+5ONvHiibDI=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=Qp+IYfydEaGhnQ+stl0Zai7EV0Ch0l7E14XkLLbL4RrV1QRItee4FelFBzmi4QStuT5gqOnyIe0CGLG4Y9LKtAoO11TjtD2PW5qk7RcaEYFEsSa9MKD107M1yEXZrP7caRZ8AmjU+xaEq3dcL/KFahl0g65oAw1QbciODB73bdw= 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=PzBVaEnI; arc=none smtp.client-ip=95.215.58.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=1708782815; 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=JPQpelQkRwVwQd7AppThQpLrhs0U/sTtYtQXs0u9nsM=; b=PzBVaEnI9n6QdqNHZMs6nFD9E4j+sDjXp0ZDKGxn8rCv5UMzNExSQNkoD6PmiTUpfkx1O5 Zk3Gw+dYaKx0fk6ljZpRznDYsVrvdByGWazuytqBnjahpgNTmc3R9BxL247tZeH1IpuIJp mpTENvMCPAQWqNHPP5gqGNWuYO/Y4Zk= From: chengming.zhou@linux.dev To: dlemoal@kernel.org, naohiro.aota@wdc.com, jth@kernel.org 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 <zhouchengming@bytedance.com> Subject: [PATCH] zonefs: remove SLAB_MEM_SPREAD flag usage Date: Sat, 24 Feb 2024 13:53:29 +0000 Message-Id: <20240224135329.830543-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: 1791788859859933943 X-GMAIL-MSGID: 1791788859859933943 |
Series |
zonefs: remove SLAB_MEM_SPREAD flag usage
|
|
Commit Message
Chengming Zhou
Feb. 24, 2024, 1:53 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/zonefs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 2024/02/24 5:53, 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. > > Signed-off-by: Chengming Zhou <zhouchengming@bytedance.com> > --- > fs/zonefs/super.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/zonefs/super.c b/fs/zonefs/super.c > index 236a6d88306f..c6a124e8d565 100644 > --- a/fs/zonefs/super.c > +++ b/fs/zonefs/super.c > @@ -1422,7 +1422,7 @@ static int __init zonefs_init_inodecache(void) > { > zonefs_inode_cachep = kmem_cache_create("zonefs_inode_cache", > sizeof(struct zonefs_inode_info), 0, > - (SLAB_RECLAIM_ACCOUNT | SLAB_MEM_SPREAD | SLAB_ACCOUNT), > + SLAB_RECLAIM_ACCOUNT | SLAB_ACCOUNT, > NULL); > if (zonefs_inode_cachep == NULL) > return -ENOMEM; Looks good, but please rework the commit message as you suggested on the btrfs list to have more details about this change. Thanks.
On 2024/2/26 21:33, Damien Le Moal wrote: > On 2024/02/24 5:53, 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. >> >> Signed-off-by: Chengming Zhou <zhouchengming@bytedance.com> >> --- >> fs/zonefs/super.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/fs/zonefs/super.c b/fs/zonefs/super.c >> index 236a6d88306f..c6a124e8d565 100644 >> --- a/fs/zonefs/super.c >> +++ b/fs/zonefs/super.c >> @@ -1422,7 +1422,7 @@ static int __init zonefs_init_inodecache(void) >> { >> zonefs_inode_cachep = kmem_cache_create("zonefs_inode_cache", >> sizeof(struct zonefs_inode_info), 0, >> - (SLAB_RECLAIM_ACCOUNT | SLAB_MEM_SPREAD | SLAB_ACCOUNT), >> + SLAB_RECLAIM_ACCOUNT | SLAB_ACCOUNT, >> NULL); >> if (zonefs_inode_cachep == NULL) >> return -ENOMEM; > > Looks good, but please rework the commit message as you suggested on the btrfs > list to have more details about this change. Thanks. > Ok, Christoph Hellwig suggested me to send these patches as a single patch after 6.9-rc1 release, only need slab maintainers ACK. So I stopped bothering you. :) 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!
diff --git a/fs/zonefs/super.c b/fs/zonefs/super.c index 236a6d88306f..c6a124e8d565 100644 --- a/fs/zonefs/super.c +++ b/fs/zonefs/super.c @@ -1422,7 +1422,7 @@ static int __init zonefs_init_inodecache(void) { zonefs_inode_cachep = kmem_cache_create("zonefs_inode_cache", sizeof(struct zonefs_inode_info), 0, - (SLAB_RECLAIM_ACCOUNT | SLAB_MEM_SPREAD | SLAB_ACCOUNT), + SLAB_RECLAIM_ACCOUNT | SLAB_ACCOUNT, NULL); if (zonefs_inode_cachep == NULL) return -ENOMEM;