]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: add dummy callback for readpage_io_failed and drop checks
authorDavid Sterba <dsterba@suse.com>
Fri, 17 Feb 2017 15:24:29 +0000 (16:24 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 28 Feb 2017 13:29:24 +0000 (14:29 +0100)
commit9d7e188d66f9dc368b953feb6c9524d2d0971ec0
tree09d4f1e8acb66b0f935306cbee04b572824df95c
parent7381cf7ba72698688bfc9549b75966af578bd200
btrfs: add dummy callback for readpage_io_failed and drop checks

Make extent_io_ops::readpage_io_failed_hook callback mandatory and
define a dummy function for btrfs_extent_io_ops. As the failed IO
callback is not performance critical, the branch vs extra trade off does
not hurt.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h
fs/btrfs/inode.c