summaryrefslogtreecommitdiff
path: root/fs/btrfs/relocation.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2023-05-31 10:53:57 +0300
committerDavid Sterba <dsterba@suse.com>2023-06-19 14:59:36 +0300
commit34bfaf15304b10e9c9e2fbd3012fa72710929b32 (patch)
treee7f0f1abb1a343eb939eab026c7e2d50a8e4b985 /fs/btrfs/relocation.h
parent3daea5fda1cdd74829d0306ab88b4798c38254ea (diff)
downloadlinux-34bfaf15304b10e9c9e2fbd3012fa72710929b32.tar.xz
btrfs: pass an ordered_extent to btrfs_reloc_clone_csums
Both callers of btrfs_reloc_clone_csums allocate the ordered_extent that btrfs_reloc_clone_csums operates on. Switch them to use btrfs_alloc_ordered_extent instead of btrfs_add_ordered_extent and pass the ordered_extent to btrfs_reloc_clone_csums instead of doing an extra lookup. Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Reviewed-by: Josef Bacik <josef@toxicpanda.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/relocation.h')
-rw-r--r--fs/btrfs/relocation.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/relocation.h b/fs/btrfs/relocation.h
index 57cbac5c8ddd..77d69f6ae967 100644
--- a/fs/btrfs/relocation.h
+++ b/fs/btrfs/relocation.h
@@ -8,7 +8,7 @@ int btrfs_init_reloc_root(struct btrfs_trans_handle *trans, struct btrfs_root *r
int btrfs_update_reloc_root(struct btrfs_trans_handle *trans,
struct btrfs_root *root);
int btrfs_recover_relocation(struct btrfs_fs_info *fs_info);
-int btrfs_reloc_clone_csums(struct btrfs_inode *inode, u64 file_pos, u64 len);
+int btrfs_reloc_clone_csums(struct btrfs_ordered_extent *ordered);
int btrfs_reloc_cow_block(struct btrfs_trans_handle *trans,
struct btrfs_root *root, struct extent_buffer *buf,
struct extent_buffer *cow);