btrfs: remove crc_check logic from free space
authorNikolay Borisov <nborisov@suse.com>
Thu, 3 Dec 2020 08:09:48 +0000 (10:09 +0200)
committerDavid Sterba <dsterba@suse.com>
Wed, 9 Dec 2020 18:16:05 +0000 (19:16 +0100)
commit7dbdb443a7b49f66d9c4da0d810e2c54e0727d82
treee86c4ed42493757520d08f9f45025f979ee82d5b
parent5297199a8bca12b8b96afcbf2341605efb6005de
btrfs: remove crc_check logic from free space

Following removal of the ino cache io_ctl_init will be called only on
behalf of the freespace inode. In this case we always want to check
CRCs so conditional code that depended on io_ctl::check_crc can be
removed.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/free-space-cache.c
fs/btrfs/free-space-cache.h