btrfs: subpage: remove btrfs_fs_info::subpage_info member
authorQu Wenruo <wqu@suse.com>
Mon, 26 Aug 2024 06:14:50 +0000 (15:44 +0930)
committerDavid Sterba <dsterba@suse.com>
Tue, 10 Sep 2024 14:51:18 +0000 (16:51 +0200)
commitce4a71ee157e810ec28ad44e8148dfc55e77d4a0
treed277ec6ecdaf9081ae2626d2d9f868213d12067c
parent2c70fe16ea0c0d3f08659fc9d75b4840711fee05
btrfs: subpage: remove btrfs_fs_info::subpage_info member

The member btrfs_fs_info::subpage_info stores the cached bitmap start
position inside the merged bitmap.

However in reality there is only one thing depending on the sectorsize,
bitmap_nr_bits, which records the number of sectors that fit inside a
page.

The sequence of sub-bitmaps have fixed order, thus it's just a quick
multiplication to calculate the start position of each sub-bitmaps.

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/disk-io.c
fs/btrfs/extent_io.c
fs/btrfs/fs.h
fs/btrfs/subpage.c
fs/btrfs/subpage.h