Commit 4cc61209 authored by Nikolay Borisov's avatar Nikolay Borisov Committed by David Sterba

btrfs: make btrfs_add_ordered_extent_compress take btrfs_inode

It simpy forwards its inode argument to __btrfs_add_ordered_extent which
already takes btrfs_inode.
Signed-off-by: default avatarNikolay Borisov <nborisov@suse.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 6e26c442
...@@ -862,7 +862,7 @@ static noinline void submit_compressed_extents(struct async_chunk *async_chunk) ...@@ -862,7 +862,7 @@ static noinline void submit_compressed_extents(struct async_chunk *async_chunk)
goto out_free_reserve; goto out_free_reserve;
free_extent_map(em); free_extent_map(em);
ret = btrfs_add_ordered_extent_compress(inode, ret = btrfs_add_ordered_extent_compress(BTRFS_I(inode),
async_extent->start, async_extent->start,
ins.objectid, ins.objectid,
async_extent->ram_size, async_extent->ram_size,
......
...@@ -270,12 +270,12 @@ int btrfs_add_ordered_extent_dio(struct inode *inode, u64 file_offset, ...@@ -270,12 +270,12 @@ int btrfs_add_ordered_extent_dio(struct inode *inode, u64 file_offset,
BTRFS_COMPRESS_NONE); BTRFS_COMPRESS_NONE);
} }
int btrfs_add_ordered_extent_compress(struct inode *inode, u64 file_offset, int btrfs_add_ordered_extent_compress(struct btrfs_inode *inode, u64 file_offset,
u64 disk_bytenr, u64 num_bytes, u64 disk_bytenr, u64 num_bytes,
u64 disk_num_bytes, int type, u64 disk_num_bytes, int type,
int compress_type) int compress_type)
{ {
return __btrfs_add_ordered_extent(BTRFS_I(inode), file_offset, disk_bytenr, return __btrfs_add_ordered_extent(inode, file_offset, disk_bytenr,
num_bytes, disk_num_bytes, type, 0, num_bytes, disk_num_bytes, type, 0,
compress_type); compress_type);
} }
......
...@@ -157,7 +157,7 @@ int btrfs_add_ordered_extent(struct btrfs_inode *inode, u64 file_offset, ...@@ -157,7 +157,7 @@ int btrfs_add_ordered_extent(struct btrfs_inode *inode, u64 file_offset,
int btrfs_add_ordered_extent_dio(struct inode *inode, u64 file_offset, int btrfs_add_ordered_extent_dio(struct inode *inode, u64 file_offset,
u64 disk_bytenr, u64 num_bytes, u64 disk_bytenr, u64 num_bytes,
u64 disk_num_bytes, int type); u64 disk_num_bytes, int type);
int btrfs_add_ordered_extent_compress(struct inode *inode, u64 file_offset, int btrfs_add_ordered_extent_compress(struct btrfs_inode *inode, u64 file_offset,
u64 disk_bytenr, u64 num_bytes, u64 disk_bytenr, u64 num_bytes,
u64 disk_num_bytes, int type, u64 disk_num_bytes, int type,
int compress_type); int compress_type);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment