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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Mar 2021 08:04:06 +0000 (09:04 +0100)
commit2c8d6a9474f07375c87c4dc6f008610b3ce755a7
tree4c1b40c0654505d79f85bc1247de2ddb9fe8a21d
parent38ffe9eaeb7cce383525439f0948f9eb74632e1d
btrfs: fix slab cache flags for free space tree bitmap

commit 34e49994d0dcdb2d31d4d2908d04f4e9ce57e4d7 upstream.

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: 3acd48507dc4 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/btrfs/inode.c