diff options
| author | Christoph Hellwig <[email protected]> | 2023-03-28 05:19:55 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2023-04-17 16:01:21 +0000 |
| commit | 7edd339c8a416afed9d58b5d20778d5ee49e079f (patch) | |
| tree | 23c6935286e71866ec5cc96c5c432b2f02a4b5df /fs/btrfs/btrfs_inode.h | |
| parent | btrfs: simplify extent map splitting and rename split_zoned_em (diff) | |
| download | kernel-7edd339c8a416afed9d58b5d20778d5ee49e079f.tar.gz kernel-7edd339c8a416afed9d58b5d20778d5ee49e079f.zip | |
btrfs: pass an ordered_extent to btrfs_extract_ordered_extent
To prepare for a new caller that already has the ordered_extent
available, change btrfs_extract_ordered_extent to take an argument
for it. Add a wrapper for the bio case that still has to do the
lookup (for now).
Reviewed-by: Josef Bacik <[email protected]>
Tested-by: Johannes Thumshirn <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/btrfs_inode.h')
| -rw-r--r-- | fs/btrfs/btrfs_inode.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/btrfs_inode.h b/fs/btrfs/btrfs_inode.h index 9dc21622806e..bb4984480669 100644 --- a/fs/btrfs/btrfs_inode.h +++ b/fs/btrfs/btrfs_inode.h @@ -407,7 +407,8 @@ static inline void btrfs_inode_split_flags(u64 inode_item_flags, int btrfs_check_sector_csum(struct btrfs_fs_info *fs_info, struct page *page, u32 pgoff, u8 *csum, const u8 * const csum_expected); -blk_status_t btrfs_extract_ordered_extent(struct btrfs_bio *bbio); +int btrfs_extract_ordered_extent(struct btrfs_bio *bbio, + struct btrfs_ordered_extent *ordered); bool btrfs_data_csum_ok(struct btrfs_bio *bbio, struct btrfs_device *dev, u32 bio_offset, struct bio_vec *bv); noinline int can_nocow_extent(struct inode *inode, u64 offset, u64 *len, |
