btrfs: Remove extent_io_ops::check_extent_io_range callback
authorNikolay Borisov <nborisov@suse.com>
Thu, 1 Nov 2018 12:09:49 +0000 (14:09 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Dec 2018 13:51:28 +0000 (14:51 +0100)
commit65a680f6b7d6e83ca3a440588d3581f4a38265bf
treec87fba407cac4aa45c7d8ded8579e87e0df78703
parent7087a9d8db88ef9b7f8a30ac5706aa396b78e6c9
btrfs: Remove extent_io_ops::check_extent_io_range callback

This callback was only used in debug builds by btrfs_leak_debug_check.
A better approach is to move its implementation in
btrfs_leak_debug_check and ensure the latter is only executed for extent
tree which have ->private_data set i.e. relate to a data node and not
the btree one. No functional changes.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
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/extent_io.c
fs/btrfs/extent_io.h
fs/btrfs/inode.c