mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-16 13:34:30 +00:00
btrfs: pass btrfs_inode to btrfs_submit_bio_start_direct_io
The function is for internal interfaces so we should use the btrfs_inode. Reviewed-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
882681ac98
commit
bfa1706682
@ -416,7 +416,7 @@ void btrfs_submit_data_read_bio(struct inode *inode, struct bio *bio,
|
||||
int mirror_num, enum btrfs_compression_type compress_type);
|
||||
void btrfs_submit_dio_repair_bio(struct inode *inode, struct bio *bio, int mirror_num);
|
||||
blk_status_t btrfs_submit_bio_start(struct btrfs_inode *inode, struct bio *bio);
|
||||
blk_status_t btrfs_submit_bio_start_direct_io(struct inode *inode,
|
||||
blk_status_t btrfs_submit_bio_start_direct_io(struct btrfs_inode *inode,
|
||||
struct bio *bio,
|
||||
u64 dio_file_offset);
|
||||
int btrfs_check_sector_csum(struct btrfs_fs_info *fs_info, struct page *page,
|
||||
|
@ -645,7 +645,7 @@ static void run_one_async_start(struct btrfs_work *work)
|
||||
ret = btrfs_submit_bio_start(async->inode, async->bio);
|
||||
break;
|
||||
case WQ_SUBMIT_DATA_DIO:
|
||||
ret = btrfs_submit_bio_start_direct_io(&async->inode->vfs_inode,
|
||||
ret = btrfs_submit_bio_start_direct_io(async->inode,
|
||||
async->bio, async->dio_file_offset);
|
||||
break;
|
||||
}
|
||||
|
@ -7965,11 +7965,11 @@ static blk_status_t btrfs_check_read_dio_bio(struct btrfs_dio_private *dip,
|
||||
return err;
|
||||
}
|
||||
|
||||
blk_status_t btrfs_submit_bio_start_direct_io(struct inode *inode,
|
||||
blk_status_t btrfs_submit_bio_start_direct_io(struct btrfs_inode *inode,
|
||||
struct bio *bio,
|
||||
u64 dio_file_offset)
|
||||
{
|
||||
return btrfs_csum_one_bio(BTRFS_I(inode), bio, dio_file_offset, false);
|
||||
return btrfs_csum_one_bio(inode, bio, dio_file_offset, false);
|
||||
}
|
||||
|
||||
static void btrfs_end_dio_bio(struct btrfs_bio *bbio)
|
||||
|
Loading…
x
Reference in New Issue
Block a user