Message ID | 20240224135036.829942-1-chengming.zhou@linux.dev |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-79674-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp1155463dyb; Sat, 24 Feb 2024 05:53:05 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVOTReX/ob3FJef1Z85Lg29D0K5obg6hrElF3RwvNh3zDl/ZtCa2vVsTHuUZHfSLbhCKT6QIUD9qRoCH2ersywKSNbqqA== X-Google-Smtp-Source: AGHT+IHK5q7tyvcKLU6eIxddwweoNKc+DFhIFgeEn4TeGGUjV+/82vOlWQLXXDPgvEO3HBknP7ev X-Received: by 2002:a05:622a:1115:b0:42e:7811:b43e with SMTP id e21-20020a05622a111500b0042e7811b43emr797979qty.67.1708782785620; Sat, 24 Feb 2024 05:53:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708782785; cv=pass; d=google.com; s=arc-20160816; b=orn8rwVEcRogXtRT6zzB1bGTzPirbM7RC3BwnzHA2Hi7YG9AuOmpLyiZGMlT6T6j5b m+k/KacI7BO5zr/vuduSTBFGYbhviJDJ6wp46eCNs5KWApMoV/CnRpzRzlML5SxQa5hD Mw4TUiokQJhDWq5b7uPpGYEgaQHhXZpWowoXf58dwklifD8xthLDnZo3aGkuVkO+KXm+ SxKOeXaH4IOIujhA95YwLpeenAG6CiyQxlPi3n1AiLGRgj6tetsQpq8jU2odjRKFcl4N 8PaQneP9IvAuYiGxHsq0lcsedTsW92kw9/YMQhIM9eWZxFsTc4LgIP3GASXm+R4xEg23 cbXw== 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=Ibi+RfJ5mT99XLSFTys/B4elpEMlKczBAC3WL/MY6eM=; fh=ZjZXdUZHHc7vibJhm3WJYQ2gJn0ULjUMBnEmGs81LpI=; b=DaKWXzeD3SrgrbaVd2ZbCltv5iN6ZiYa9om+Zgxl5VX7QFctnm7AiMh2aElCzHSCpU oaM2VU2NMKJt+Wyg6dvSxbpV/7M6sB1cYSiEFT3boCc8eQeRtlBrwlNOFuFkJ6JcODEl qEEo+EGP0ioxcrwKF9uMNwuyKYtIl9yVMv00fgITYXlWuHZRe3sxiYx8zw562X3fAKeB StyHglSOKhWZXpbrabMhZhw/nn7JFE4HqUainBih9PAzDs7B5jrbwYNNLZBgO1ikQQu/ 0Dc0yErL+Qpd1H6Q4yw9NFh0mb6sHobG6sTq/xPd0maypuwQiB2v0O3fkl/5rnrnaK27 SKnQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=ixX5h0Gt; 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-79674-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79674-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id m6-20020ac84446000000b0042e6e0f6624si1091119qtn.673.2024.02.24.05.53.05 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 05:53:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79674-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=ixX5h0Gt; 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-79674-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79674-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 68F481C2126F for <ouuuleilei@gmail.com>; Sat, 24 Feb 2024 13:53:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AA8FA4EB20; Sat, 24 Feb 2024 13:50:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="ixX5h0Gt" Received: from out-187.mta1.migadu.com (out-187.mta1.migadu.com [95.215.58.187]) (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 B2F7146448 for <linux-kernel@vger.kernel.org>; Sat, 24 Feb 2024 13:50:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.187 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708782650; cv=none; b=EHNkxMz0fmj9xSd9CKI3S8UfmH9KtAt2ZBTkmEFP3qAofpz52rOOu35GdvoYPbQL0Oek50T5GHhl9T1z7zTdc/Tsh/ZZvvvQUllRnDXKp5OpJGD9B6oCSxECoU+Qhll/TShzNeaZPdb70RaYr+VjRsWrkm2dWcu3gU+tYXBvzkY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708782650; c=relaxed/simple; bh=hqPlMODDNVj/DdRhw0M9bZ7QxJPapegOj39rz9GYHvE=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=uEoM6SymoGk2wn03Gj78nsUlFNu00CCC9d+xtvaL3vtorY2AEg3hYUfawihw5ny7xZ7vJoth5FF91wLuJpesjVQhO+dJF4JcCCEryMqlaCyTPYayNyQe++sK9hRDeitN7J90DXm2yFXeKyd6B7f+REZ2Vdut6DIt5QgWA7CL/oU= 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=ixX5h0Gt; arc=none smtp.client-ip=95.215.58.187 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=1708782647; 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=Ibi+RfJ5mT99XLSFTys/B4elpEMlKczBAC3WL/MY6eM=; b=ixX5h0Gtd4jKYQnE25b2A9iGb5a8Z5bfMv8Na2cntWCPp3YEYABAOrT+P//lAYV8WpKqrm 8fDxB6ayvTwqUv+LYGkFEBk7YlcRhiBeWq1qhj0/f+Ljz2h+kx93Z7jnfOfdwhOKBGvJil Bhk0VqHORLC/8A1y56RPcCzBQs2shVM= From: chengming.zhou@linux.dev To: miklos@szeredi.hu, amir73il@gmail.com Cc: linux-unionfs@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] overlayfs: remove SLAB_MEM_SPREAD flag usage Date: Sat, 24 Feb 2024 13:50:36 +0000 Message-Id: <20240224135036.829942-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: 1791788618559332411 X-GMAIL-MSGID: 1791788618559332411 |
Series |
overlayfs: remove SLAB_MEM_SPREAD flag usage
|
|
Commit Message
Chengming Zhou
Feb. 24, 2024, 1:50 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/overlayfs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 2024/2/24 21:50, 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 explicitly to avoid confusion for users. Here we can just remove all its users, which has no any 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/overlayfs/super.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c > index 36d4b8b1f784..a40fc7e05525 100644 > --- a/fs/overlayfs/super.c > +++ b/fs/overlayfs/super.c > @@ -1503,7 +1503,7 @@ static int __init ovl_init(void) > ovl_inode_cachep = kmem_cache_create("ovl_inode", > sizeof(struct ovl_inode), 0, > (SLAB_RECLAIM_ACCOUNT| > - SLAB_MEM_SPREAD|SLAB_ACCOUNT), > + SLAB_ACCOUNT), > ovl_inode_init_once); > if (ovl_inode_cachep == NULL) > return -ENOMEM;
diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c index 36d4b8b1f784..a40fc7e05525 100644 --- a/fs/overlayfs/super.c +++ b/fs/overlayfs/super.c @@ -1503,7 +1503,7 @@ static int __init ovl_init(void) ovl_inode_cachep = kmem_cache_create("ovl_inode", sizeof(struct ovl_inode), 0, (SLAB_RECLAIM_ACCOUNT| - SLAB_MEM_SPREAD|SLAB_ACCOUNT), + SLAB_ACCOUNT), ovl_inode_init_once); if (ovl_inode_cachep == NULL) return -ENOMEM;