diff mbox series

[2/3] btrfs: Use generic Kconfig option for 256kB page size limit

Message ID 20211129230141.228085-3-nathan@kernel.org (mailing list archive)
State New, archived
Headers show
Series Fix CONFIG_TEST_KMOD with 256kB page size | expand

Commit Message

Nathan Chancellor Nov. 29, 2021, 11:01 p.m. UTC
Use the newly introduced CONFIG_PAGE_SIZE_LESS_THAN_256KB to describe
the dependency introduced by commit b05fbcc36be1 ("btrfs: disable build
on platforms having page size 256K").

Signed-off-by: Nathan Chancellor <nathan@kernel.org>
---
 fs/btrfs/Kconfig | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

David Sterba Nov. 30, 2021, 2:34 p.m. UTC | #1
On Mon, Nov 29, 2021 at 04:01:40PM -0700, Nathan Chancellor wrote:
> Use the newly introduced CONFIG_PAGE_SIZE_LESS_THAN_256KB to describe
> the dependency introduced by commit b05fbcc36be1 ("btrfs: disable build
> on platforms having page size 256K").
> 
> Signed-off-by: Nathan Chancellor <nathan@kernel.org>

Acked-by: David Sterba <dsterba@suse.com>
diff mbox series

Patch

diff --git a/fs/btrfs/Kconfig b/fs/btrfs/Kconfig
index 520a0f6a7d9e..183e5c4aed34 100644
--- a/fs/btrfs/Kconfig
+++ b/fs/btrfs/Kconfig
@@ -18,8 +18,7 @@  config BTRFS_FS
 	select RAID6_PQ
 	select XOR_BLOCKS
 	select SRCU
-	depends on !PPC_256K_PAGES	# powerpc
-	depends on !PAGE_SIZE_256KB	# hexagon
+	depends on PAGE_SIZE_LESS_THAN_256KB
 
 	help
 	  Btrfs is a general purpose copy-on-write filesystem with extents,