nfs: remove SLAB_MEM_SPREAD flag usage
Subsystems (3)
PATCH 1/1 nfs: remove SLAB_MEM_SPREAD flag usage
From: Chengming Zhou <[email protected]>
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 <[email protected]>
--- fs/nfs/direct.c | 3 +-- fs/nfs/inode.c | 2 +- fs/nfs/nfs42xattr.c | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-)
fs/nfs/direct.c +1 -2
@@ -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 ;
fs/nfs/inode.c +1 -1
@@ -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 ;
fs/nfs/nfs42xattr.c +1 -1
@@ -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 ;
Signature · 1 line
2.40.1