diff options
author | David Sterba <dsterba@suse.com> | 2017-06-23 03:05:23 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-03-31 01:26:55 +0200 |
commit | a758781d4b76c38374f155e2f2cf902e13b9e50e (patch) | |
tree | eb167aa5404ca5b56d22379c1e8bed9906fa7c43 /fs/btrfs/extent_io.h | |
parent | d9d19a010b8b186668ce1182bcf92ab53d11c084 (diff) | |
download | linux-stable-a758781d4b76c38374f155e2f2cf902e13b9e50e.tar.gz linux-stable-a758781d4b76c38374f155e2f2cf902e13b9e50e.tar.bz2 linux-stable-a758781d4b76c38374f155e2f2cf902e13b9e50e.zip |
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>
Diffstat (limited to 'fs/btrfs/extent_io.h')
-rw-r--r-- | fs/btrfs/extent_io.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/btrfs/extent_io.h b/fs/btrfs/extent_io.h index c82a5842d524..bbfae2abfb39 100644 --- a/fs/btrfs/extent_io.h +++ b/fs/btrfs/extent_io.h @@ -95,6 +95,15 @@ struct io_failure_record; typedef blk_status_t (extent_submit_bio_hook_t)(void *private_data, struct bio *bio, int mirror_num, unsigned long bio_flags, u64 bio_offset); + +typedef blk_status_t (extent_submit_bio_start_t)(void *private_data, + struct bio *bio, int mirror_num, unsigned long bio_flags, + u64 bio_offset); + +typedef blk_status_t (extent_submit_bio_done_t)(void *private_data, + struct bio *bio, int mirror_num, unsigned long bio_flags, + u64 bio_offset); + struct extent_io_ops { /* * The following callbacks must be allways defined, the function |