summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/bio.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2022-12-12 08:37:21 +0100
committerDavid Sterba <dsterba@suse.com>2023-02-15 19:38:55 +0100
commit921603c76246a7f716b9a244d7b1fa1653935f31 (patch)
treee159317e7f58d87214a8fda74029373e2d8aac6b /fs/btrfs/bio.c
parent0d495430db8d704b3a70b244b54d5ee30cf03f69 (diff)
downloadlinux-stable-921603c76246a7f716b9a244d7b1fa1653935f31.tar.gz
linux-stable-921603c76246a7f716b9a244d7b1fa1653935f31.tar.bz2
linux-stable-921603c76246a7f716b9a244d7b1fa1653935f31.zip
btrfs: pass a btrfs_bio to btrfs_use_append
struct btrfs_bio has all the information needed for btrfs_use_append, so pass that instead of a btrfs_inode and file_offset. Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/bio.c')
-rw-r--r--fs/btrfs/bio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/bio.c b/fs/btrfs/bio.c
index 8445df47495a..d8b90f95b157 100644
--- a/fs/btrfs/bio.c
+++ b/fs/btrfs/bio.c
@@ -612,7 +612,7 @@ static bool btrfs_submit_chunk(struct bio *bio, int mirror_num)
u64 logical = bio->bi_iter.bi_sector << 9;
u64 length = bio->bi_iter.bi_size;
u64 map_length = length;
- bool use_append = btrfs_use_zone_append(inode, logical);
+ bool use_append = btrfs_use_zone_append(bbio);
struct btrfs_io_context *bioc = NULL;
struct btrfs_io_stripe smap;
blk_status_t ret;