]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: make free space cache size consistent across different PAGE_SIZE
authorQu Wenruo <wqu@suse.com>
Tue, 13 Apr 2021 06:23:14 +0000 (14:23 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Jun 2021 13:19:08 +0000 (15:19 +0200)
commit6ae9cb9bafb253001d7225b1da3d540f1086ab2e
treeeb4be5717c971b107193db49867378a0343c8bbe
parentb9559ef53e5d3b47c863a0a923e5470d44a8c745
btrfs: make free space cache size consistent across different PAGE_SIZE

Currently free space cache inode size is determined by two factors:

- block group size
- PAGE_SIZE

This means, for the same sized block groups, with different PAGE_SIZE,
it will result in different inode sizes.

This will not be a good thing for subpage support, so change the
requirement for PAGE_SIZE to sectorsize.

Now for the same 4K sectorsize btrfs, it should result the same inode
size no matter what the PAGE_SIZE is.

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