btrfs: unify end_io callbacks of async_submit_bio
authorDavid Sterba <dsterba@suse.com>
Wed, 18 Jul 2018 15:36:24 +0000 (17:36 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 6 Aug 2018 11:12:55 +0000 (13:12 +0200)
commite288c080dddd1fdc3b7e0165cebd7af51a52d016
tree98f54cb59e09ff05f7205e1ed732687829397a08
parentd7cbfafc4bc37ed21351cdedbc6f9d979545dbf3
btrfs: unify end_io callbacks of async_submit_bio

The end_io callbacks passed to btrfs_wq_submit_bio
(btrfs_submit_bio_done and btree_submit_bio_done) are effectively the
same code, there's no point to do the indirection. Export
btrfs_submit_bio_done and call it directly.

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