]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0c6d98e86aadb8534b98e12be2e8d374cdfc4d0a
treeeb167aa5404ca5b56d22379c1e8bed9906fa7c43
parent99aeedb837d689f09639201cfb909e56bc6946d8
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