]> Gentwo Git Trees - linux/.git/commit
btrfs: support all block sizes which is no larger than page size
authorQu Wenruo <wqu@suse.com>
Sat, 9 Aug 2025 04:49:16 +0000 (14:19 +0930)
committerDavid Sterba <dsterba@suse.com>
Tue, 23 Sep 2025 06:49:16 +0000 (08:49 +0200)
commit2ccfaf73690960e800c2dd7debea559de4b58010
tree39f0e103fd5d9e71f1923602da537ef2212f1d7e
parenta7f3dfb8293c4cee99743132d69863a92e8f4875
btrfs: support all block sizes which is no larger than page size

Currently if block size < page size, btrfs only supports one single
config, 4K.

This is mostly to reduce the test configurations, as 4K is going to be
the default block size for all architectures.

However all other major filesystems have no artificial limits on the
support block size, and some are already supporting block size > page
sizes.

Since the btrfs subpage block support has been there for a long time,
it's time for us to enable all block size <= page size support.

So here enable all block sizes support as long as it's no larger than
page size for experimental builds.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/fs.c