Skip to content

Commit 34e4999

Browse files
committed
btrfs: fix slab cache flags for free space tree bitmap
The free space tree bitmap slab cache is created with SLAB_RED_ZONE but that's a debugging flag and not always enabled. Also the other slabs are created with at least SLAB_MEM_SPREAD that we want as well to average the memory placement cost. Reported-by: Vlastimil Babka <[email protected]> Fixes: 3acd485 ("btrfs: fix allocation of free space cache v1 bitmap pages") CC: [email protected] # 5.4+ Signed-off-by: David Sterba <[email protected]>
1 parent 60484cd commit 34e4999

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/btrfs/inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9005,7 +9005,7 @@ int __init btrfs_init_cachep(void)
90059005

90069006
btrfs_free_space_bitmap_cachep = kmem_cache_create("btrfs_free_space_bitmap",
90079007
PAGE_SIZE, PAGE_SIZE,
9008-
SLAB_RED_ZONE, NULL);
9008+
SLAB_MEM_SPREAD, NULL);
90099009
if (!btrfs_free_space_bitmap_cachep)
90109010
goto fail;
90119011

0 commit comments

Comments
 (0)