btrfs: reduce pointer intdirections in btree_readpage_end_io_hook
authorDavid Sterba <dsterba@suse.com>
Thu, 28 Nov 2019 15:15:04 +0000 (16:15 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Mar 2020 16:01:45 +0000 (17:01 +0100)
commit15b6e8a83e910c71e98c368e51b581135539efdf
treef28399ea31a14988d78e7ca8842cf6235c8dbe23
parentb79ce3dddd3f1be7515452adfed633d13e45d806
btrfs: reduce pointer intdirections in btree_readpage_end_io_hook

All we need to read is checksum size from fs_info superblock, and
fs_info is provided by extent buffer so we can get rid of the wild
pointer indirections from page/inode/root.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c