Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp406951rbb; Sat, 24 Feb 2024 05:51:57 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWTHob0eipgpYmzxX/2aSkupE7ONy/rXOHdGK+DK0NNZIIlwIjJA4ldKFt0sNB1fOimnqt1brx0cjGGSxXAOSoQAoP5MSKFNV4cgvWrPw== X-Google-Smtp-Source: AGHT+IG5L+RKaDAQmaPzn43wq8tYtX8lFd7l5A8Yw6h4feSmvUb5b9aKsgjsA64Dc/AIyYHUjU2r X-Received: by 2002:a92:c9cf:0:b0:364:ff70:ecb3 with SMTP id k15-20020a92c9cf000000b00364ff70ecb3mr2785735ilq.29.1708782717596; Sat, 24 Feb 2024 05:51:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708782717; cv=pass; d=google.com; s=arc-20160816; b=DHRqjx1Gz3KYpA3PtCsr2X+WD+lMAN01zxU53jbq77SqJGrZANCc9vAGw2gE/m1Z5t hhQPTW+r1LiCtsrlDKmM8Jf76+RDbUSZm8hnvxffyhgpBVN8klxK46f2HpyZAhoi48kA iCAQL4Q8xn4vaulKpgK3Vp++xT88t3lBCrlBSo86esuGtuPzpv2A77rgBKeKx1ijdwuf wXT+y3uZwxSo38QO7MMoHHrml5OK44gBBxKF5DZ4KHuZ5oJysvRckg3aegpK3cKZP1Eu dYHlNLsGGY0nR+iEbEDOB3Sp/opRlMloQ4Tmc0dhwCwGYqPapscOGaoUlA1D3wX6PU2O MziQ== 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=GUyUqzRMnURN7Khnamqhah7Msw/7yZ/KZXr2uJQ4jrgS4Z8sVROSN4sL2BkkhHgP17 9kdJTWE74cvUYWAYBGqe3cWgpK8I2NPvwRULJ+6Tx/XN6ErlR8Q4gQOjmio3YAnLA1qb tv9Wa+7vBqhNXXxG67j4P+VvxDWaGv000yRFE7gUZ//4glCN8tgjTbpMbVXTPNwEXKYD VeqvoWjwJsSmIuilPd+hfsedaQxVzvqVoJ5ssA94h9L5OXAODWm1tMJBIMp/gpVMIfhh a9J/x36/aO4abaZEJN9rLB8q48zFyiJHt9CdB0Q0pCUpKZho8sWkt748txGO83OlO5GN M/qw==; 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-nfs+bounces-2070-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2070-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 q9-20020a63e949000000b005d8bed5ec84si938675pgj.258.2024.02.24.05.51.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 05:51:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-2070-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=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-nfs+bounces-2070-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2070-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 14B0AB21924 for ; Sat, 24 Feb 2024 13:51:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 30EF33F9D8; Sat, 24 Feb 2024 13:50:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="TK1450Yc" X-Original-To: linux-nfs@vger.kernel.org Received: from out-180.mta1.migadu.com (out-180.mta1.migadu.com [95.215.58.180]) (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 5CEE34502A for ; Sat, 24 Feb 2024 13:50:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708782604; cv=none; b=B3vGIpIAan0BLP4gRF7NWFfzZFyAlG5odMntTuqS1Ea2EpcfiHtqLRpeh5KcHxNnNi98tiJV2q+PqJ1Hb6nq/BdnnjvLue809f2hHTsmDuBfqxxYtGY/t8xWjbbIrmfBo66pcXUHNVclAp02RCXDgtwOADRou62d3R6HqSee21k= 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.180 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-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT 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; -- 2.40.1