]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: fix slab cache flags for free space tree bitmap
authorDavid Sterba <dsterba@suse.com>
Mon, 15 Mar 2021 14:18:24 +0000 (15:18 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 16 Mar 2021 19:32:08 +0000 (20:32 +0100)
commite95d74ac410e531656f386bd4036a21eee960797
tree46aff46e89d887616649c51b59f1cad239e6d830
parentf242b17826d407be4f7a411a1b8adcf2334b3e6c
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 <vbabka@suse.cz>
Fixes: a6d1bd3b5cd2 ("btrfs: fix allocation of free space cache v1 bitmap pages")
CC: stable@vger.kernel.org # 5.4+
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c