Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp490033rbb; Sat, 24 Feb 2024 09:03:15 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUIPhAPXAbvYEKoukH7X0G+YxJgPYzEmfl+a28fwXcwLMpf06E72kWZzqf8OTt02EJX62xdezORREpa/a9I2bmyvMAb8pYr9rq/uW+M5w== X-Google-Smtp-Source: AGHT+IHwL539+CEn95xMcBMhdZsJf3X606m2LCxmQXQT5irTAuWdFwQ7ec3h+9IRiAxcUcUaDdzo X-Received: by 2002:a05:6402:b14:b0:565:2b6:6a7 with SMTP id bm20-20020a0564020b1400b0056502b606a7mr2093587edb.34.1708794195283; Sat, 24 Feb 2024 09:03:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708794195; cv=pass; d=google.com; s=arc-20160816; b=I9zzXOMY0oCJawYSP98LxGGZqLUIHQS9XPSIbVbQsmFMf+h1rp6n3j6bcaX9EdCR4t vqZb0lTDe//VHTzYfC/aj8luO7aWphxp4STII6oI0cRqdIUZYuboDDgScTtgADUwF6st s44Xodz+Iim/qV9J6rIlltLyW0YFlTfkzeakGScNFYDKB+li6ByehHBZniJm0x85jKzj 0t+qMS4yjmnCM8jUD9BLL7A1SHOylurHzCZ7vpfgsaBH77ju2SRW+BQ8gtAFJAWM5yxx Hc4CzpoOI0aGesh1xiPq771kzPSzUCFXO0OJwN7uGdERaj5RhkeELalysnNsBrvP9psI Z7FQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=9AsaGt7+M/pMSQy5yJHqAwXDbzVVCcgiNDWJO5G7qjE=; fh=OismGSmq1UKz6bb57z1zULqXCfc62X0DV5Y0hw89MHg=; b=AXQys0WF+6LRVOXMhrZgDIKOlBbs9EqWhJPzATQtVuEy16yjdOsgY/rLsJ1wPm4i3a qqf895vSCeg9JMwQXynPlN/VJ6wytxFnukE3HNZfdRMqKgMdQhnaumPIgFjr34oIa7W8 69eIBWAbC68RqOXc2Tyb3Z/Rci66DE03HrHusISihzT29D8ht7Chi6tylf/wKyVe7OUD DvTMIsiQz0N49Q0GFDcipjfTQ/TV+gbFdH/7fo2/jUbSthSJxvoogczDgsR6jfd+uQtr JQAFq96TH7j7S9GnktvdinT1Vxb0Vl/CO7RfFugfZqI/y8r/34ikn0eJwjAB7SBIsI9A BZfg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=chNLt8QL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-79752-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79752-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id k15-20020a508acf000000b00561d43bb5f2si573548edk.387.2024.02.24.09.03.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 09:03:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79752-linux.lists.archive=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=@kernel.org header.s=k20201202 header.b=chNLt8QL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-79752-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79752-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 EDD061F21EA6 for ; Sat, 24 Feb 2024 17:03:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6C21046544; Sat, 24 Feb 2024 17:03:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="chNLt8QL" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 90E7A3E493; Sat, 24 Feb 2024 17:03:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708794187; cv=none; b=dncamBlwmJlIQQF6CBp57NYAPHDG6HTRbhuB82ztbmw+3X3oAROCebCkzM/Z0Jz5rcOaQRdHTkv6IJ0gOZ71/4rG4wmyzurYxlJ2Y/vUnzVe8ZmETdzlWBkgnGUzR4BiJ5SRVBm0kZbn3rvPwLGCRZShW2PZVimdmX+T/mTqgCo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708794187; c=relaxed/simple; bh=vf1J4XGP8ttoc+eTT7vjZBCjuz6YX6OyBN3XBleaBGk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rKws58EBxJVfwBgCTo4DSJ7HMyk3R9VmNx34TOW4pltle7D3sKfwovE9KWz1ZanaZ72r6a1NX0+Y6tJt/cbnFew1AQ77Bi2c4WtdiMVxTp8/IysAb1p1mxQPaom4H/K+whJ2iJCV773P2dO9gRm3HNZ61L2SsBbkN569eUuKKQo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=chNLt8QL; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1019BC433C7; Sat, 24 Feb 2024 17:03:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708794187; bh=vf1J4XGP8ttoc+eTT7vjZBCjuz6YX6OyBN3XBleaBGk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=chNLt8QLPVfpWlo9KfuJvke+7y62wQSPfLUQTSAFpFedmSkflFSilLKG9Vb/ZFbh0 GMlZk80dHYTufgqTvTsM50eu6l5705EAqeD9nlMjM4guqzQ4LpjSkbXyKlHYeV+9Ll GC7EtpmZtLu63pBmnCG2XUoubZdchLQ7cMw3x7iQ++mM9xGT3gdS8n2I03VVlvWXQI 5nf8zCgaetW5Tu2GhIET8lK9Ge+C6MAHVQ0jYMHtkRwqSzAQBQNQW17WlYb9/Y5h5d wsCG96Z7FPjHQSfQmW2KmnfcAgKSVZxzGVo06B4FJQtJmjiK7j6yE2MAuT55OsZyaK hJk/ivBH7BN5g== Date: Sat, 24 Feb 2024 09:03:06 -0800 From: "Darrick J. Wong" To: chengming.zhou@linux.dev Cc: chandan.babu@oracle.com, 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 Subject: Re: [PATCH] xfs: remove SLAB_MEM_SPREAD flag usage Message-ID: <20240224170306.GI616564@frogsfrogsfrogs> References: <20240224135323.830509-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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240224135323.830509-1-chengming.zhou@linux.dev> On Sat, Feb 24, 2024 at 01:53:23PM +0000, chengming.zhou@linux.dev wrote: > 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 Acked-by: Darrick J. Wong (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 > >