Skip to content

Commit a8922f7

Browse files
Chengming Zhouidryomov
authored andcommitted
ceph: remove SLAB_MEM_SPREAD flag usage
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 16a1d96 ("mm/slab: remove mm/slab.c and slab_def.h"). And the series [1] went on to mark it obsolete to avoid confusion for users. Here we can just remove all its users, which has no functional change. [1] https://lore.kernel.org/all/20240223-slab-cleanup-flags-v2-1-02f1753e8303@suse.cz/ Signed-off-by: Chengming Zhou <zhouchengming@bytedance.com> Reviewed-by: Xiubo Li <xiubli@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
1 parent 09927e7 commit a8922f7

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

fs/ceph/super.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -928,36 +928,36 @@ static int __init init_caches(void)
928928
ceph_inode_cachep = kmem_cache_create("ceph_inode_info",
929929
sizeof(struct ceph_inode_info),
930930
__alignof__(struct ceph_inode_info),
931-
SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD|
932-
SLAB_ACCOUNT, ceph_inode_init_once);
931+
SLAB_RECLAIM_ACCOUNT|SLAB_ACCOUNT,
932+
ceph_inode_init_once);
933933
if (!ceph_inode_cachep)
934934
return -ENOMEM;
935935

936-
ceph_cap_cachep = KMEM_CACHE(ceph_cap, SLAB_MEM_SPREAD);
936+
ceph_cap_cachep = KMEM_CACHE(ceph_cap, 0);
937937
if (!ceph_cap_cachep)
938938
goto bad_cap;
939-
ceph_cap_snap_cachep = KMEM_CACHE(ceph_cap_snap, SLAB_MEM_SPREAD);
939+
ceph_cap_snap_cachep = KMEM_CACHE(ceph_cap_snap, 0);
940940
if (!ceph_cap_snap_cachep)
941941
goto bad_cap_snap;
942942
ceph_cap_flush_cachep = KMEM_CACHE(ceph_cap_flush,
943-
SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD);
943+
SLAB_RECLAIM_ACCOUNT);
944944
if (!ceph_cap_flush_cachep)
945945
goto bad_cap_flush;
946946

947947
ceph_dentry_cachep = KMEM_CACHE(ceph_dentry_info,
948-
SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD);
948+
SLAB_RECLAIM_ACCOUNT);
949949
if (!ceph_dentry_cachep)
950950
goto bad_dentry;
951951

952-
ceph_file_cachep = KMEM_CACHE(ceph_file_info, SLAB_MEM_SPREAD);
952+
ceph_file_cachep = KMEM_CACHE(ceph_file_info, 0);
953953
if (!ceph_file_cachep)
954954
goto bad_file;
955955

956-
ceph_dir_file_cachep = KMEM_CACHE(ceph_dir_file_info, SLAB_MEM_SPREAD);
956+
ceph_dir_file_cachep = KMEM_CACHE(ceph_dir_file_info, 0);
957957
if (!ceph_dir_file_cachep)
958958
goto bad_dir_file;
959959

960-
ceph_mds_request_cachep = KMEM_CACHE(ceph_mds_request, SLAB_MEM_SPREAD);
960+
ceph_mds_request_cachep = KMEM_CACHE(ceph_mds_request, 0);
961961
if (!ceph_mds_request_cachep)
962962
goto bad_mds_req;
963963

0 commit comments

Comments
 (0)