btrfs: change how submit bio callback is passed to btrfs_wq_submit_bio
authorDavid Sterba <dsterba@suse.com>
Thu, 27 Oct 2022 00:22:19 +0000 (02:22 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 5 Dec 2022 17:00:51 +0000 (18:00 +0100)
commitab2072b2921eced166dbdec1d65b0284b6eba2b9
tree8e3521eb1b47c52f4b890418cf4d9878765d5e75
parent7920b773bd8a458c05b2ba4581fe19c5704fffd7
btrfs: change how submit bio callback is passed to btrfs_wq_submit_bio

There's a callback function parameter for btrfs_wq_submit_bio that can
be one of: metadata, buffered data, direct io data. The callback
abstraction is unnecessary as we have all functions available.

Replace the parameter with a command that leads to a direct call in
run_one_async_start. The called functions can be then simplified and we
can also remove the extent_submit_bio_start_t typedef.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/btrfs_inode.h
fs/btrfs/disk-io.c
fs/btrfs/disk-io.h
fs/btrfs/extent_io.h
fs/btrfs/inode.c