Message ID | 20240224134822.829456-1-chengming.zhou@linux.dev |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-79659-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp1154367dyb; Sat, 24 Feb 2024 05:49:58 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVEYCuL1MrMDuoDxYGa2ODlngL1VfsulweUVenBkVeRzzxgjOFSEiT+iWH4HsDOE9y+Hy86Pqr47Gx6w6HJcr6f8H0kxQ== X-Google-Smtp-Source: AGHT+IGt5gnccbUVpEblF23TGoskw0PEUTS7eZ1LMVNEVD0QJTYjCRxxV9GLSchWavgPfahqo+8R X-Received: by 2002:a05:6a00:4fd1:b0:6e4:c12b:bc8d with SMTP id le17-20020a056a004fd100b006e4c12bbc8dmr4239091pfb.30.1708782598646; Sat, 24 Feb 2024 05:49:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708782598; cv=pass; d=google.com; s=arc-20160816; b=ncqn9uCN7yLXA9zQO/VYotrFb3LOplDiA61iQyXQsAj3O2Yzdg9uMEiSaJDLJzY1/V s4ia8odLJGrMplKH9MeSOIaK51xKS/HyG9lxsNDo6od/r/hy2kCxiJ11c6eX+8VQsfed 1BFL5K+/XdqHUQg9PcmpCe8ATPuPDkAUzi4+UDCNczirctuvW11hQHLwrar6rXF+hjJc qDKyYu+H0Cp+JIts1vhvGURVqpOOJ0LRfL2UlQB/fixjm4J8mBu3S1p8UthPftdSOCct x6nFcg2lEY0xiVPYCgEpJr16UEZEVg6822XKD+yON75I9S75B3jNQDlOwME6N21WkLDf soNg== 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=7sBe7F6MZ5jdMe38w+z3gikhfjHHuKvxVMduY0ftaNg=; fh=yJjQXyds3WMR4+b2pqnncha0Pvzuh1kPmhWVrLgyXCQ=; b=O0t7Rb+PdmKsOYJqrygqYnoHccaEt5ngF6bP42Zyb5VqKKq89mR9vhthGY/AFYA+Hm atXkddVZNKgA5eSKTxyCzXfjqunQeQJYX6hyr2cAoHEdTVny+ZSPrKKr6zu7/ouGwnx8 x2sPM5SMz5ZmBARpgd+VjQxCaQalBq77yYOa+YED8+svUIJSMvn5xSaORBM0BAL6l5pK qt0L2cT9uMLDLYaixvOIYk9vtTgz3pvKP4wgMjpvp0Xdef0Y1VIiB4FzzCZEMk35l5HZ Cz1dIaTzS4l67viYUd9Ka79f4hsYE3dsnXgZuZVFmgnIdZVHHiDdK00pM/1RlLBEDrBy PX0g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=rnZTlDbB; 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-79659-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79659-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id t190-20020a625fc7000000b006e13d669353si899650pfb.194.2024.02.24.05.49.58 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 05:49:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79659-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=rnZTlDbB; 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-79659-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79659-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 771802827D7 for <ouuuleilei@gmail.com>; Sat, 24 Feb 2024 13:49:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 95DCC4CB4B; Sat, 24 Feb 2024 13:48:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="rnZTlDbB" Received: from out-185.mta1.migadu.com (out-185.mta1.migadu.com [95.215.58.185]) (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 D142142066 for <linux-kernel@vger.kernel.org>; Sat, 24 Feb 2024 13:48:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.185 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708782511; cv=none; b=mGpOiaRl6HkmI8X7QC2qUNFtTvkoZL4CGiNkbjRscvHe7JVwF1H32JCIhwPrPWIhTdlc01VZ5v4HinqA77vJ5rtaNnAEo24HZQAsXLmPBLs4I3/IOHV3Xz29zQLupO4qmgYV3bSXciFKec6a96+vqZQqBXKSgPnGHwrYeCVOiPw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708782511; c=relaxed/simple; bh=gjpQvFIgjZlHKyIkt0qRYUk2GAyjE8Smgcka3Izj1fo=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=b6EG5u0Szfucj1dQ59x8j8JIKsb+bLKPhR4m4hnlTaYyxAuuYSJNnNlhgm4Rr6STgxHM51EiCv1lFegvde3kTAl7m+FoHTB35yZ+ErPV18OVEKD/79vW7S9+FD4oXpW9DBeWdW4AZe0qZd/12BmxWi76wyair2/JfAe0ldObWNQ= 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=rnZTlDbB; arc=none smtp.client-ip=95.215.58.185 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=1708782508; 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=7sBe7F6MZ5jdMe38w+z3gikhfjHHuKvxVMduY0ftaNg=; b=rnZTlDbB/wrrkLhpxFO4v/fyeWsmlhxAiCusqEiK3t4C4N9rYG00iBqZx2tCcFnV19t7hR 1AH18VAfTs+tZJdQkr21gJBN5HcXTymc7wY6alOiD78WI8ShcMKPqoLuOGARF6bB7LIXo9 fw7YKoS2dDb/PD00bbOQiwwcSVIRRM0= From: chengming.zhou@linux.dev To: tytso@mit.edu, adilger.kernel@dilger.ca Cc: linux-ext4@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] ext4: remove SLAB_MEM_SPREAD flag usage Date: Sat, 24 Feb 2024 13:48:22 +0000 Message-Id: <20240224134822.829456-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: 1791788422004243461 X-GMAIL-MSGID: 1791788422004243461 |
Series |
ext4: remove SLAB_MEM_SPREAD flag usage
|
|
Commit Message
Chengming Zhou
Feb. 24, 2024, 1:48 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/ext4/super.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
Comments
On 2024/2/24 21:48, 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/ext4/super.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/fs/ext4/super.c b/fs/ext4/super.c > index eb689fb85ce9..9a744f22aa24 100644 > --- a/fs/ext4/super.c > +++ b/fs/ext4/super.c > @@ -1500,8 +1500,7 @@ static int __init init_inodecache(void) > { > ext4_inode_cachep = kmem_cache_create_usercopy("ext4_inode_cache", > sizeof(struct ext4_inode_info), 0, > - (SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD| > - SLAB_ACCOUNT), > + SLAB_RECLAIM_ACCOUNT|SLAB_ACCOUNT, > offsetof(struct ext4_inode_info, i_data), > sizeof_field(struct ext4_inode_info, i_data), > init_once);
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index eb689fb85ce9..9a744f22aa24 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -1500,8 +1500,7 @@ static int __init init_inodecache(void) { ext4_inode_cachep = kmem_cache_create_usercopy("ext4_inode_cache", sizeof(struct ext4_inode_info), 0, - (SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD| - SLAB_ACCOUNT), + SLAB_RECLAIM_ACCOUNT|SLAB_ACCOUNT, offsetof(struct ext4_inode_info, i_data), sizeof_field(struct ext4_inode_info, i_data), init_once);