Message ID | 20240224135323.830509-1-chengming.zhou@linux.dev |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-79690-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp1156743dyb; Sat, 24 Feb 2024 05:56:39 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVu6TApEr5bnitVuB07lJZPez4IKzRqfEbi4vj/QtT3UOYvlMOmsIGJ8BBk/LdgBu7kqxkE+VdQi7LhxYkXBNQzN3v/dg== X-Google-Smtp-Source: AGHT+IFRiWVJreq0txS3Z1ynpMDeF03fhVBxWAnHsVPwBaqVnGPtq613FfVtE3An91NPXb23Xwbd X-Received: by 2002:a05:6512:3290:b0:512:dc3d:6bf8 with SMTP id p16-20020a056512329000b00512dc3d6bf8mr1269783lfe.56.1708782999357; Sat, 24 Feb 2024 05:56:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708782999; cv=pass; d=google.com; s=arc-20160816; b=f3Bmn5c3q3AuDOAGWrJKpSkXU46Xc8aAU87FAwkKCzU886h3H9lgmXMgbl1qeWUJ3z hNZwkyBJbYP4yYryvNsc5J8Bw8wB4cMzvmzM76v3aUT71TS6gI5b4dmIld52hLrh4r7Y DKs6olGc0qUKbVAWRCleD30mCDkmtM0+S4oFmwGuxyMQMVJrWdT3JrTjvmiCCLad7S0L wYXLZhQHB4vBcEDRLX7P5VYAISk/sjqKgTuLauSOXg+zuQGhGYnF13pCnZce4ro2eFBJ 6FGZt8c5+LeJvizXH2Z2PY8JKRcQVgU1B+yvqJyeyuHyHAFNRS1QcOcgOMlBmN+LNbn2 xKqg== 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=LxCxkx8l5yBZAVu2gvV0cjhc3YekJfohK1yANvznAjs=; fh=zx3a2Z6dnV2TTQO/XYpxAMq8vFb3J5wTF02YCaCC0kQ=; b=yrlvUTBzfvQC93fA3tOqEDBWiX6VBSzXgOJO+QiKvr3haobBqW5qsuCFoG0s45MvlA SEt1SI2IMmtB6ZMFegfohyunrjpJ8oB+ohRRZqtPmvl24RiqeyS8PAaFaPVEFKWeu3NO Hr9cxQ3YrMwdd2MS6TCAAI1oQjAwky7fci1FLAg/apDTwhwtSbo4OU2Y1a8yWPpdEeMc D3q00oqU2EDhUPO0wYqM/66LUD156UCoOubOMg7X/ul+cAS2LVA8a4PODBezd1cPaOX8 sLFDzgFzsgdt0pT+9OWK4Sk238ZdUXxUDO82e1wchwZ6ylZAQ+2PJy7WTLrXpGWMR85f hzJQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=QRESwJby; 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-79690-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79690-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 p20-20020a170906141400b00a3ec891fe7esi512751ejc.262.2024.02.24.05.56.39 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 05:56:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79690-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=QRESwJby; 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-79690-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79690-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 EFF931F2150A for <ouuuleilei@gmail.com>; Sat, 24 Feb 2024 13:56:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DC80552F91; Sat, 24 Feb 2024 13:53:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="QRESwJby" Received: from out-170.mta0.migadu.com (out-170.mta0.migadu.com [91.218.175.170]) (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 F302F52F6D for <linux-kernel@vger.kernel.org>; Sat, 24 Feb 2024 13:53:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708782811; cv=none; b=T2n1V1mrOoG95O9QTVL/aRNudaTzZqeQi2vIMTiytPm37jAltpwFZUrDOxicrk7ooXw3L/IX1T0ateuQLvwMSFozaq4n84sEhcuaCPKjqLkNQ/0wPrdifzhpbieGpplq2oZh+EXMS8t7gZeTCit3OHW/ZBi0vvRinsRf+RxlX+o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708782811; c=relaxed/simple; bh=+C2QW/f0RI+8Ygnvj/1ns6kexgt5mz3fEZ9jYLuct24=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=JZ+WPYC0nu4k3WfwdhP0VAuiZlIVup/au+dGy63T2sfxZ2HuSKUTGKtNgR44ujRH5mXc8NCc6uA+1FBDvM1j+qSP7F24GkPJ6ZBGhW8N0Zu4mcKh8ctkwhVNxEfPjfPweDWNRz3gEDBG4LD4dHmadYfJG0C6jgg78TIWifZTxHs= 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=QRESwJby; arc=none smtp.client-ip=91.218.175.170 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=1708782808; 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=LxCxkx8l5yBZAVu2gvV0cjhc3YekJfohK1yANvznAjs=; b=QRESwJbyP+miss2loec0KjAl5QsJNBFdOpteW4uXGVzcdIm12aY/XS66CQQ/zNLLZIOy/I aOlHjd+4h7t1XlrKB2jUtZhg6fwi+B77O/XIE5baysYaGb1DM5CPtsY2A2SPEp8tJpBcep uDKxFEm/ZrJURewL2JVNVNexGYzscmo= From: chengming.zhou@linux.dev To: chandan.babu@oracle.com, djwong@kernel.org Cc: linux-xfs@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] xfs: remove SLAB_MEM_SPREAD flag usage Date: Sat, 24 Feb 2024 13:53:23 +0000 Message-Id: <20240224135323.830509-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: 1791788842249672083 X-GMAIL-MSGID: 1791788842249672083 |
Series |
xfs: 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/xfs/xfs_super.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
Comments
On Sat, Feb 24, 2024 at 01:53:23PM +0000, 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> Acked-by: Darrick J. Wong <djwong@kernel.org> (acked, as in "this looks right, i don't know why it wasn't removed when slab went away, and from the -mm list traffic this seems to be in line with [1] but i still had to dig for details) [1] https://lore.kernel.org/linux-mm/20240131172027.10f64405@gandalf.local.home/T/#u --D > --- > fs/xfs/xfs_super.c | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) > > diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c > index 56006b877a5d..171a1287b296 100644 > --- a/fs/xfs/xfs_super.c > +++ b/fs/xfs/xfs_super.c > @@ -2042,8 +2042,7 @@ xfs_init_caches(void) > > xfs_buf_cache = kmem_cache_create("xfs_buf", sizeof(struct xfs_buf), 0, > SLAB_HWCACHE_ALIGN | > - SLAB_RECLAIM_ACCOUNT | > - SLAB_MEM_SPREAD, > + SLAB_RECLAIM_ACCOUNT, > NULL); > if (!xfs_buf_cache) > goto out; > @@ -2108,14 +2107,14 @@ xfs_init_caches(void) > sizeof(struct xfs_inode), 0, > (SLAB_HWCACHE_ALIGN | > SLAB_RECLAIM_ACCOUNT | > - SLAB_MEM_SPREAD | SLAB_ACCOUNT), > + SLAB_ACCOUNT), > xfs_fs_inode_init_once); > if (!xfs_inode_cache) > goto out_destroy_efi_cache; > > xfs_ili_cache = kmem_cache_create("xfs_ili", > sizeof(struct xfs_inode_log_item), 0, > - SLAB_RECLAIM_ACCOUNT | SLAB_MEM_SPREAD, > + SLAB_RECLAIM_ACCOUNT, > NULL); > if (!xfs_ili_cache) > goto out_destroy_inode_cache; > -- > 2.40.1 > >
On 2024/2/25 01:03, Darrick J. Wong wrote: > On Sat, Feb 24, 2024 at 01:53:23PM +0000, 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> > > Acked-by: Darrick J. Wong <djwong@kernel.org> > > (acked, as in "this looks right, i don't know why it wasn't removed when > slab went away, and from the -mm list traffic this seems to be in line > with [1] but i still had to dig for details) Right, I think it was just forgotten when slab went away. Then Steven reported this when he found it obsolete. As discussed in [1], we submit these patches independently to remove its usages. [1] https://lore.kernel.org/all/20240220-slab-cleanup-flags-v1-0-e657e373944a@suse.cz/ Thanks! > > [1] https://lore.kernel.org/linux-mm/20240131172027.10f64405@gandalf.local.home/T/#u > > --D > >> --- >> fs/xfs/xfs_super.c | 7 +++---- >> 1 file changed, 3 insertions(+), 4 deletions(-) >> >> diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c >> index 56006b877a5d..171a1287b296 100644 >> --- a/fs/xfs/xfs_super.c >> +++ b/fs/xfs/xfs_super.c >> @@ -2042,8 +2042,7 @@ xfs_init_caches(void) >> >> xfs_buf_cache = kmem_cache_create("xfs_buf", sizeof(struct xfs_buf), 0, >> SLAB_HWCACHE_ALIGN | >> - SLAB_RECLAIM_ACCOUNT | >> - SLAB_MEM_SPREAD, >> + SLAB_RECLAIM_ACCOUNT, >> NULL); >> if (!xfs_buf_cache) >> goto out; >> @@ -2108,14 +2107,14 @@ xfs_init_caches(void) >> sizeof(struct xfs_inode), 0, >> (SLAB_HWCACHE_ALIGN | >> SLAB_RECLAIM_ACCOUNT | >> - SLAB_MEM_SPREAD | SLAB_ACCOUNT), >> + SLAB_ACCOUNT), >> xfs_fs_inode_init_once); >> if (!xfs_inode_cache) >> goto out_destroy_efi_cache; >> >> xfs_ili_cache = kmem_cache_create("xfs_ili", >> sizeof(struct xfs_inode_log_item), 0, >> - SLAB_RECLAIM_ACCOUNT | SLAB_MEM_SPREAD, >> + SLAB_RECLAIM_ACCOUNT, >> NULL); >> if (!xfs_ili_cache) >> goto out_destroy_inode_cache; >> -- >> 2.40.1 >> >>
diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c index 56006b877a5d..171a1287b296 100644 --- a/fs/xfs/xfs_super.c +++ b/fs/xfs/xfs_super.c @@ -2042,8 +2042,7 @@ xfs_init_caches(void) xfs_buf_cache = kmem_cache_create("xfs_buf", sizeof(struct xfs_buf), 0, SLAB_HWCACHE_ALIGN | - SLAB_RECLAIM_ACCOUNT | - SLAB_MEM_SPREAD, + SLAB_RECLAIM_ACCOUNT, NULL); if (!xfs_buf_cache) goto out; @@ -2108,14 +2107,14 @@ xfs_init_caches(void) sizeof(struct xfs_inode), 0, (SLAB_HWCACHE_ALIGN | SLAB_RECLAIM_ACCOUNT | - SLAB_MEM_SPREAD | SLAB_ACCOUNT), + SLAB_ACCOUNT), xfs_fs_inode_init_once); if (!xfs_inode_cache) goto out_destroy_efi_cache; xfs_ili_cache = kmem_cache_create("xfs_ili", sizeof(struct xfs_inode_log_item), 0, - SLAB_RECLAIM_ACCOUNT | SLAB_MEM_SPREAD, + SLAB_RECLAIM_ACCOUNT, NULL); if (!xfs_ili_cache) goto out_destroy_inode_cache;