Skip to content

Commit 46bd944

Browse files
Chengming Zhouakpm00
authored andcommitted
ocfs2: remove SLAB_MEM_SPREAD flag usage
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. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Chengming Zhou <[email protected]> Acked-by: Joseph Qi <[email protected]> Cc: Mark Fasheh <[email protected]> Cc: Joel Becker <[email protected]> Cc: Junxiao Bi <[email protected]> Cc: Changwei Ge <[email protected]> Cc: Gang He <[email protected]> Cc: Jun Piao <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent bea0a58 commit 46bd944

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

fs/ocfs2/dlmfs/dlmfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ static int __init init_dlmfs_fs(void)
578578
dlmfs_inode_cache = kmem_cache_create("dlmfs_inode_cache",
579579
sizeof(struct dlmfs_inode_private),
580580
0, (SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT|
581-
SLAB_MEM_SPREAD|SLAB_ACCOUNT),
581+
SLAB_ACCOUNT),
582582
dlmfs_init_once);
583583
if (!dlmfs_inode_cache) {
584584
status = -ENOMEM;

fs/ocfs2/super.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1706,18 +1706,17 @@ static int ocfs2_initialize_mem_caches(void)
17061706
sizeof(struct ocfs2_inode_info),
17071707
0,
17081708
(SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT|
1709-
SLAB_MEM_SPREAD|SLAB_ACCOUNT),
1709+
SLAB_ACCOUNT),
17101710
ocfs2_inode_init_once);
17111711
ocfs2_dquot_cachep = kmem_cache_create("ocfs2_dquot_cache",
17121712
sizeof(struct ocfs2_dquot),
17131713
0,
1714-
(SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT|
1715-
SLAB_MEM_SPREAD),
1714+
SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT,
17161715
NULL);
17171716
ocfs2_qf_chunk_cachep = kmem_cache_create("ocfs2_qf_chunk_cache",
17181717
sizeof(struct ocfs2_quota_chunk),
17191718
0,
1720-
(SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD),
1719+
SLAB_RECLAIM_ACCOUNT,
17211720
NULL);
17221721
if (!ocfs2_inode_cachep || !ocfs2_dquot_cachep ||
17231722
!ocfs2_qf_chunk_cachep) {

0 commit comments

Comments
 (0)