OSDN Git Service

btrfs: separate types for submit_bio_start and submit_bio_done
authorDavid Sterba <dsterba@suse.com>
Fri, 23 Jun 2017 01:05:23 +0000 (03:05 +0200)
committerDavid Sterba <dsterba@suse.com>
Fri, 30 Mar 2018 23:26:55 +0000 (01:26 +0200)
commita758781d4b76c38374f155e2f2cf902e13b9e50e
treeeb167aa5404ca5b56d22379c1e8bed9906fa7c43
parentd9d19a010b8b186668ce1182bcf92ab53d11c084
btrfs: separate types for submit_bio_start and submit_bio_done

The callbacks make use of different parameters that are passed to the
other type unnecessarily. This patch adds separate types for each and
the unused parameters will be removed.

The type extent_submit_bio_hook_t keeps all parameters and can be used
where the start/done types are not appropriate.

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