From patchwork Sat Feb 24 13:49:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chengming Zhou X-Patchwork-Id: 205867 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp1155167dyb; Sat, 24 Feb 2024 05:52:06 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWoOlOtnqASv8lra0Bj72keiUwCnutFdiw2KAqtaH3L6a3uvXqZadR34eyBiqdj4tBf5tfjymb2P/bmMOvXWoYfAt1smg== X-Google-Smtp-Source: AGHT+IFANsRZ4XSZLImuA4GWCevH6xXTZ3XKO/oNwbvlBaVwrLjh8eSRCd2P9DeN51VYbpPM/974 X-Received: by 2002:ac8:7f49:0:b0:42e:401d:2fa1 with SMTP id g9-20020ac87f49000000b0042e401d2fa1mr2386305qtk.2.1708782726259; Sat, 24 Feb 2024 05:52:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708782726; cv=pass; d=google.com; s=arc-20160816; b=W9f2oZkUaxT5uZrdOB85kS5nPb7BYXTMFkvTJRwQO7VrUfjEJqivfZPSJpQXqRo7kr SS97oGqw5cHuiz48D8EUIFxF2kqZzRP5kV5FKXr15z54D5+0wgAKQwdRtsD83QcXmBrb 30C7HxZj7y50acnNZPGHCPyweT42pmhQenmfsNX3Xojc1mGz7N0ck7/1w80CLwz/WF8e M6Y6P0UIwySVxIpAyIhh/HCBCbJHtsgsYcr8Wg2uiHrE8tvhZt32DL34bPr9M3CvHZP8 GmZifR/e/ptzpnZBirzWfWlhH0WzJhnD0rvL02qaMa0M/ZuB5ykwDXserrJF/8X6z9SA VFvA== 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=nP0aXPHN1//zeHwFg1qsEvtNSGNzpSy74r5uLpS77GY=; fh=pgil/WnxdnbweUQ5sHLxSnOr6SsPY1KZNIVOIdHUW6w=; b=lzd13FoheG4aRrPHx4kPCZUMGCWg+C4u87FHBdF5deC7TMAUVx/BnDEfa0QzUyxiSG mVzs09ULakghZBV49+pu+bsTmZouIziFIB06SpVdttuFRsOnTFwlU5X80R1ATuPD5MKC MP09s/LYBzS093N/uOKik7qpS2FDst/VJnDFja3GILPSE9KYR1VnPQiuOWB2VrB4REsw 8GKKa2xzCiUKoudDdP/OgKwypOjB3FdTa8q/FffdhjMkS01NvcVJelY/40fzYlKl8U0q kccv1jMBHdtHpuCuXJzNDtKrVRrsDy+TaIHHKWWzGl4Ta0sF1FZCmLH+6p+nWqfPhHv+ oD3w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=TK1450Yc; 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-79669-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79669-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 b4-20020ac85404000000b0042e626a8435si1060861qtq.743.2024.02.24.05.52.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 05:52:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79669-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=TK1450Yc; 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-79669-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79669-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 038A21C20D5A for ; Sat, 24 Feb 2024 13:52:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AA8BC4DA18; Sat, 24 Feb 2024 13:50:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="TK1450Yc" Received: from out-176.mta1.migadu.com (out-176.mta1.migadu.com [95.215.58.176]) (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 9535E41776 for ; Sat, 24 Feb 2024 13:50:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708782604; cv=none; b=QJLaR2d1o+fM+w37ESH2J5+PJWF4MiS/nxpsAhCEbU4FzIGdLhcQawSemkpb5rp6q/HB/5YBiDcL18jolaybqmDBQyvRlm5lsh++Rc03lLGuzyNIskbuavOp9jIV2T2fnxt5pSqWmRgZpPpljLicZB7rv8iG8Qrvig0bzfclKcA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708782604; c=relaxed/simple; bh=iVX51BWEAQ/tBRGRi7sXFK0Dh55yCzQr74w4x7cKqmU=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=ABI68q8OkePKspD8zc09Yd3/5z3qpeIwK+cyM8Kaxuc3HcpcFXWhXqRVyJHSwNB0kKTWWeZqZ7B4Fm7WDgVTxvbY+/yc7PSoEmbAb5lSTBK/CIUwxLKo8aUklI7RywsRaxMpOkfnicrJ0w8CfGHNGoTh+zgKzjB73/OLYnSbtv4= 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=TK1450Yc; arc=none smtp.client-ip=95.215.58.176 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=1708782600; 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=nP0aXPHN1//zeHwFg1qsEvtNSGNzpSy74r5uLpS77GY=; b=TK1450YccZNtor9uLGphP27kTLtLNc47Ao+HxJdGlJkE8LqQM5lUk2FDIYEG71k4wAGHyi KfMjkqKe2gkyCJa624rG9/msV8bMboG1JxVWYueCac5JCMIWC/ci+G23Af8DgfwoU3Fb/O SOL+ldIsGYhJpDZ2bZUXC2JyRyEG/Ao= From: chengming.zhou@linux.dev To: trond.myklebust@hammerspace.com, anna@kernel.org Cc: linux-nfs@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 Subject: [PATCH] nfs: remove SLAB_MEM_SPREAD flag usage Date: Sat, 24 Feb 2024 13:49:50 +0000 Message-Id: <20240224134950.829783-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 X-Migadu-Flow: FLOW_OUT X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791788556024462861 X-GMAIL-MSGID: 1791788556024462861 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/nfs/direct.c | 3 +-- fs/nfs/inode.c | 2 +- fs/nfs/nfs42xattr.c | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/fs/nfs/direct.c b/fs/nfs/direct.c index c03926a1cc73..7af5d270de28 100644 --- a/fs/nfs/direct.c +++ b/fs/nfs/direct.c @@ -1037,8 +1037,7 @@ int __init nfs_init_directcache(void) { nfs_direct_cachep = kmem_cache_create("nfs_direct_cache", sizeof(struct nfs_direct_req), - 0, (SLAB_RECLAIM_ACCOUNT| - SLAB_MEM_SPREAD), + 0, SLAB_RECLAIM_ACCOUNT, NULL); if (nfs_direct_cachep == NULL) return -ENOMEM; diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index ebb8d60e1152..93ea49a7eb61 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c @@ -2372,7 +2372,7 @@ static int __init nfs_init_inodecache(void) nfs_inode_cachep = kmem_cache_create("nfs_inode_cache", sizeof(struct nfs_inode), 0, (SLAB_RECLAIM_ACCOUNT| - SLAB_MEM_SPREAD|SLAB_ACCOUNT), + SLAB_ACCOUNT), init_once); if (nfs_inode_cachep == NULL) return -ENOMEM; diff --git a/fs/nfs/nfs42xattr.c b/fs/nfs/nfs42xattr.c index 49aaf28a6950..9535ec133e93 100644 --- a/fs/nfs/nfs42xattr.c +++ b/fs/nfs/nfs42xattr.c @@ -1017,7 +1017,7 @@ int __init nfs4_xattr_cache_init(void) nfs4_xattr_cache_cachep = kmem_cache_create("nfs4_xattr_cache_cache", sizeof(struct nfs4_xattr_cache), 0, - (SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD), + SLAB_RECLAIM_ACCOUNT, nfs4_xattr_cache_init_once); if (nfs4_xattr_cache_cachep == NULL) return -ENOMEM;