btrfs: replace fs_info and private_data with inode in btrfs_wq_submit_bio
authorQu Wenruo <wqu@suse.com>
Wed, 21 Oct 2020 06:24:53 +0000 (14:24 +0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 8 Dec 2020 14:53:54 +0000 (15:53 +0100)
commit8896a08d8ea95809adbc3742cdf9c7575f66c960
tree0bc82bf00fc834dd9fa03a1423175083bfb4a6a1
parent3f6bb4aeb5dfa392dac438e816959ccb9c690896
btrfs: replace fs_info and private_data with inode in btrfs_wq_submit_bio

All callers of btrfs_wq_submit_bio() pass struct inode as @private_data,
so there is no need for it to be (void *), replace it with "struct inode
*inode".

While we can extract fs_info from struct inode, also remove the @fs_info
parameter.

Since we're here, also replace all the (void *private_data) into (struct
inode *inode).

Reviewed-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@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