Message ID | 20240224134828.829481-1-chengming.zhou@linux.dev |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-79660-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp1154447dyb; Sat, 24 Feb 2024 05:50:10 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV/3NOtHw/3GXah5ubqPm9GNVDP9DE2yejbBgo54cWVvPVapbcc7CbPA0gk1ZvXmpA55BVtviUIqC7ec4KMgbwhOyrtKQ== X-Google-Smtp-Source: AGHT+IE5JDp8sEBavD7bSh7KQLEQvga/Zhfy/VdBlOoaOGmPVfRLLBivjwMOAORQTlVzXcd+Hqcw X-Received: by 2002:aa7:9edd:0:b0:6e4:e65f:b0cd with SMTP id r29-20020aa79edd000000b006e4e65fb0cdmr2688758pfq.10.1708782610678; Sat, 24 Feb 2024 05:50:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708782610; cv=pass; d=google.com; s=arc-20160816; b=mfi622V46RYPdqtS0LKMgJrLSdPA6LIrM6eIattswN5LAdofL4JI88rw+2DiFcr04l DnxZH60EcRD1C4Yowf6S9B4EORw3ulEEmfXwF0QZTgrLSVB0xiWaTRMxkG+6Md5wR+PQ dLwznrddpx8G9mv9aeLlj/1VwgkO6l4czKTaXYs1D34ar3bEcmngvJ3we+Bv2cAT0/qB cA5apqcK5mTdSx2lm62RqqUXdvL5oUZz0gxjsHtEjwJwhQWCNuCf/kVm9nu0BcmsWC8L x0r/2BNr4or4XmwtagVeTzQOX1V5swxH6VjCQ+w//W6Ro+i+LYJYSck7RU7DzSlsW3Wf 3KpA== 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=+Fo8sWlJ/uC7ypOrDPbM48EYETDoNPASkWu9rXz3QtU=; fh=FIT71Y/pRcnYGp+id7cC4z2RjTrtDP7vZ6c0t+7Q7pU=; b=zrGv+sTa0GzznVi4LRz1xIZiXGy2a420Y25f3ZENKnuTdlmvpa8guPsBUvlMNqqqJ2 fOR0vkf6csz8VkYgm5t39xtU31sqhXWwZGBumnlvxyq/W5BwTDR4g1ysJdRmV5R5EFuO 0dlnxp1pzEgnWI0d1yhHWwTldD+450GBjpGd0L46nVbabdFSk6s/z/4gZ/L5tZbQW9AW 2SQOqacpf84n5JaSMV26qSZv4q3Bow1PRRXbwWe9GdYS8QI9v8N6RzYNe41sXoTNMdxF GRVEBJD6aCIZiZnnZqPCc1D3V9bnig1ITpIxu15dFMX7fv58S3pZ5jR7S9Q7Lzmw8c+J Q45A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=qDQ23ZF6; 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-79660-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79660-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 br4-20020a056a00440400b006e4fe4da2e3si323380pfb.239.2024.02.24.05.50.10 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 05:50:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79660-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=qDQ23ZF6; 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-79660-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79660-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 4CB70282A5A for <ouuuleilei@gmail.com>; Sat, 24 Feb 2024 13:50:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5F0314CDEB; Sat, 24 Feb 2024 13:48:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="qDQ23ZF6" Received: from out-173.mta0.migadu.com (out-173.mta0.migadu.com [91.218.175.173]) (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 7324145033 for <linux-kernel@vger.kernel.org>; Sat, 24 Feb 2024 13:48:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.173 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708782517; cv=none; b=jGbnu3hE/QmO4RLm4qT+ddju6UBrHTdlR7GhlQQgJNZ4kzdDX6/CBRiPJRpmfKwj2310C7p3ilTPpa6a5zy833ZX4SzRmO09FmXoPrm8WuNsevaq+VsEJBPi6fFmSrjkw0JhyivfDR5sadYJFDhgJ2ZQym8AnFxFFPsIfyYS5xk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708782517; c=relaxed/simple; bh=ertTpHNzHgvw/tcu6bGp3eJUxO9Om1YFcu8QmASi9Cc=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=bDexPzMJwPuJjUwT2aPN5o4a0rexsPdS0LTNyjBaLuZDhGJ0juVtZqwAznOxq3HVT4s3vgpvtj8/oz04sTFKkXzR5ZZa2FIq5IJ08GuUGXa0zLwSLk5y3oNTlBn15GfsPfFVHp2htJE8sOYD0dE9H1drg1aYHkx8QMD73vxWiKc= 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=qDQ23ZF6; arc=none smtp.client-ip=91.218.175.173 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=1708782515; 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=+Fo8sWlJ/uC7ypOrDPbM48EYETDoNPASkWu9rXz3QtU=; b=qDQ23ZF6BmdATLWcSP9PPVNVJy3YvqNe1TwF09qvESimMzZVKjAhgMu6ogWFCmBB3LfzZP 3YgiKpWCWCyUHP1XhBX8Xt4jgewJnCisZrfsqxUM2qmHz4AQJTduZZFb/3wjYGN/5pZWGZ 1GuGD04CaJKvFw8HUl/O398U2l1fRww= From: chengming.zhou@linux.dev To: hirofumi@mail.parknet.co.jp Cc: 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] fat: remove SLAB_MEM_SPREAD flag usage Date: Sat, 24 Feb 2024 13:48:28 +0000 Message-Id: <20240224134828.829481-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: 1791788434811938295 X-GMAIL-MSGID: 1791788434811938295 |
Series |
fat: 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/fat/cache.c | 2 +- fs/fat/inode.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Comments
chengming.zhou@linux.dev writes: > 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> Looks good. Acked-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> Thanks. > --- > fs/fat/cache.c | 2 +- > fs/fat/inode.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/fs/fat/cache.c b/fs/fat/cache.c > index 738e427e2d21..2af424e200b3 100644 > --- a/fs/fat/cache.c > +++ b/fs/fat/cache.c > @@ -47,7 +47,7 @@ int __init fat_cache_init(void) > { > fat_cache_cachep = kmem_cache_create("fat_cache", > sizeof(struct fat_cache), > - 0, SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, > + 0, SLAB_RECLAIM_ACCOUNT, > init_once); > if (fat_cache_cachep == NULL) > return -ENOMEM; > diff --git a/fs/fat/inode.c b/fs/fat/inode.c > index 5c813696d1ff..d9e6fbb6f246 100644 > --- a/fs/fat/inode.c > +++ b/fs/fat/inode.c > @@ -787,7 +787,7 @@ static int __init fat_init_inodecache(void) > fat_inode_cachep = kmem_cache_create("fat_inode_cache", > sizeof(struct msdos_inode_info), > 0, (SLAB_RECLAIM_ACCOUNT| > - SLAB_MEM_SPREAD|SLAB_ACCOUNT), > + SLAB_ACCOUNT), > init_once); > if (fat_inode_cachep == NULL) > return -ENOMEM;
diff --git a/fs/fat/cache.c b/fs/fat/cache.c index 738e427e2d21..2af424e200b3 100644 --- a/fs/fat/cache.c +++ b/fs/fat/cache.c @@ -47,7 +47,7 @@ int __init fat_cache_init(void) { fat_cache_cachep = kmem_cache_create("fat_cache", sizeof(struct fat_cache), - 0, SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, + 0, SLAB_RECLAIM_ACCOUNT, init_once); if (fat_cache_cachep == NULL) return -ENOMEM; diff --git a/fs/fat/inode.c b/fs/fat/inode.c index 5c813696d1ff..d9e6fbb6f246 100644 --- a/fs/fat/inode.c +++ b/fs/fat/inode.c @@ -787,7 +787,7 @@ static int __init fat_init_inodecache(void) fat_inode_cachep = kmem_cache_create("fat_inode_cache", sizeof(struct msdos_inode_info), 0, (SLAB_RECLAIM_ACCOUNT| - SLAB_MEM_SPREAD|SLAB_ACCOUNT), + SLAB_ACCOUNT), init_once); if (fat_inode_cachep == NULL) return -ENOMEM;