diff options
author | Qu Wenruo <wqu@suse.com> | 2021-03-15 13:39:15 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2021-03-16 11:06:21 +0100 |
commit | 60484cd9d50117017cf53d5310c6cd629600dc69 (patch) | |
tree | d9fd8b21118ecfb047beb71c427fec8cffe0d475 /fs/nls/nls_cp862.c | |
parent | d9bb77d51e668a1a6d4530c1ea471574d0ce465f (diff) |
btrfs: subpage: make readahead work properly
In readahead infrastructure, we are using a lot of hard coded PAGE_SHIFT
while we're not doing anything specific to PAGE_SIZE.
One of the most affected part is the radix tree operation of
btrfs_fs_info::reada_tree.
If using PAGE_SHIFT, subpage metadata readahead is broken and does no
help reading metadata ahead.
Fix the problem by using btrfs_fs_info::sectorsize_bits so that
readahead could work for subpage.
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/nls/nls_cp862.c')
0 files changed, 0 insertions, 0 deletions