]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: disable bs > ps support if no transparent hugepage support
authorQu Wenruo <wqu@suse.com>
Thu, 30 Jul 2026 07:07:39 +0000 (16:37 +0930)
committerDavid Sterba <dsterba@suse.com>
Fri, 31 Jul 2026 14:55:50 +0000 (16:55 +0200)
commit4c375ac546ea667e619ab77d34cca6edcab7c448
treeff660bc4c28edbf73aee4a3af773b542028539f6
parentd2a4e4e626b2f4670b69b430c357f03f53eb6632
btrfs: disable bs > ps support if no transparent hugepage support

Btrfs relies on mapping_set_folio_order_range() to set the minimal
folio order for all its data inodes, but that function will be no-op if
transparent hugepage is not enabled.

Guard the bs > ps support behind CONFIG_TRANSPARENT_HUGEPAGE, just like
all other filesystems.

Fixes: 98077f7f2180 ("btrfs: enable experimental bs > ps support")
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/Kconfig
fs/btrfs/fs.c