Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1321775rbb; Mon, 26 Feb 2024 06:02:25 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVjjRmZysRh4EDCvoTWWvX9PH77oX65Ob3OzlT16cPR3sYyPZO1K8zyG0xFGKKml0wCbzTr2kwNEcA7BzXWgHAGQKbQxxeC42BH/g0OXA== X-Google-Smtp-Source: AGHT+IGeQfuhaJZJ9eRxiYcqhMmL0g0gJb7kNewMzh7HqvEfUQRNzXvQc+J5Ua6+rt5gqJPHH+0d X-Received: by 2002:a17:903:26c9:b0:1db:55cc:d226 with SMTP id jg9-20020a17090326c900b001db55ccd226mr5506508plb.66.1708956145543; Mon, 26 Feb 2024 06:02:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708956145; cv=pass; d=google.com; s=arc-20160816; b=0i1DFVxEiyhThTqsYc0lXlIe1ZZ6iwwBBfT2j1g7UESVzZhBV7A0mrA1yrXwoBJTT4 an9h6AurdrNNqPUbPRrUoUINgV8t+Y/aeJq1+VdmUgwY6f6baFCurPkg2lZAoeWobdUl zmP6/AO1FSx95wyZtCUbhOTfUErKjYfr7YudHvGae4cy67yU+Ndwfa5qwXmb8oA7lmum EX2PjIWOUmr702ezAo9bWct7gC4v3m1pjotDo4nj5tgcN/mwUX+vq/YA0J0dUUMiUo40 2cj/0XzYcAPSsFxaa7h5D3wjGW66AokaVRHWJoUN+dPwX3LDjezRcmt23kcA3NMWG/eM wbaQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:dkim-signature:message-id; bh=5JRZHibxSDt1ouB+hnkMrR1x0/Y+/HJ8lBiREAu9qpg=; fh=8dz+oej4S37e37jblGStJDQM/aKmjUM/ZehJlRN7Ymg=; b=dYiIUPMCi5CD8pEH0SNnMGVMPaWpzSz9dI6FEqjBxo5x9OtuvxkX0UTbL0dyee0UHc Hx7BXmf101oqoV7UYD7J7lf5hypIBXkfKlaUr3fqWe84TOtVH21Q0BU6WqoMXILrj7/7 326saYjhwTWbrAQhQDy4DVDGtF+jtHsV2a8IGMfjMgmZ7EUJdFBPXtTHZtzwzEpQGApS lDJ6IRwtPdEXLeGUVQD2eQmspNNWk80eLGxnWqHWxvZQ1cKNdhGxFAW51PuCAAMuKSG5 TBp0cVlkPk8KZ4qK7g7Mie4OWAJSZ6WPKjXoWmYNhfKKmO3DjHrqqXiRVwm3O6wug7pc cstA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=bhzFUB1N; 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-81523-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81523-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id mc16-20020a1709032b1000b001dbc4b86950si3726139plb.391.2024.02.26.06.02.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 06:02:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81523-linux.lists.archive=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=bhzFUB1N; 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-81523-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81523-linux.lists.archive=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 2B7E3B23A4F for ; Mon, 26 Feb 2024 13:46:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 31613129A96; Mon, 26 Feb 2024 13:45:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="bhzFUB1N" Received: from out-177.mta0.migadu.com (out-177.mta0.migadu.com [91.218.175.177]) (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 780C31292C4 for ; Mon, 26 Feb 2024 13:45:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708955124; cv=none; b=LrHKuo2GDdiFmeEd/CRaGaud8rUbUgqK6E/O08K7REeJGLSyFUxGW4ZhFaHdSL1hUdzEfQNIkHJR5NEQjLL0Jc5Pl7kGN21PCMo4tD4L8rBx6//gw9+OiHoNAPti/kYeJbdn4eiRlLSB65wDw5X7u3OYrh6kITBeR1bzLapjBhU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708955124; c=relaxed/simple; bh=0q7cOXbmk/c9kVV6YXyYpfa2nWdbjm93exJsOTH2iPY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=gt6eNXbOMZ1Hua4nzWMEAW1kYL+ON+PRrnAfAqtlFICcpoDdr1D+sMKJ51dhnR9gJdudSrNVUXIrhAqXth6abxTsfAPJa/CqG9JSOMfGgfPntCkdwPS8SFTfM6fzmUH4zXseufGyeq/LsqFrqLS4Q3foUFkaNvQj5Po7XyIKgV4= 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=bhzFUB1N; arc=none smtp.client-ip=91.218.175.177 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 Message-ID: <955791a3-5fa2-4473-b69d-a9a56ee6f98d@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1708955120; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5JRZHibxSDt1ouB+hnkMrR1x0/Y+/HJ8lBiREAu9qpg=; b=bhzFUB1N7OB0LR+pt65bzTbUYIDJd/n/2qnAT4GJ548qfpeWyNojUW+ccX3jyGK9tFgMpy sWsQ2PAQVNbF5ec3XYYAHI4OeAjZYZ18x31sfrX4rwPUOqicJ4YINSLgbLHKVP88MG3l30 ukaKusi5Cd9CWBeBjyFM5LBTMlcPVzQ= Date: Mon, 26 Feb 2024 21:44:47 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH] zonefs: remove SLAB_MEM_SPREAD flag usage Content-Language: en-US To: Damien Le Moal , 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 References: <20240224135329.830543-1-chengming.zhou@linux.dev> <5cdbfed3-62cd-41fd-b71a-5c6b1940ceb6@kernel.org> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Chengming Zhou In-Reply-To: <5cdbfed3-62cd-41fd-b71a-5c6b1940ceb6@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 2024/2/26 21:33, Damien Le Moal wrote: > On 2024/02/24 5:53, 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 >> --- >> 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!