mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
btrfs: make btrfs_set_extent_delalloc take btrfs_inode
Preparation to make btrfs_dirty_pages take btrfs_inode as parameter. Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
cd4c0bf942
commit
c2566f2289
6 changed files with 19 additions and 18 deletions
|
@ -84,7 +84,8 @@ static int copy_inline_to_page(struct inode *inode,
|
|||
clear_extent_bit(&BTRFS_I(inode)->io_tree, file_offset, range_end,
|
||||
EXTENT_DELALLOC | EXTENT_DO_ACCOUNTING | EXTENT_DEFRAG,
|
||||
0, 0, NULL);
|
||||
ret = btrfs_set_extent_delalloc(inode, file_offset, range_end, 0, NULL);
|
||||
ret = btrfs_set_extent_delalloc(BTRFS_I(inode), file_offset, range_end,
|
||||
0, NULL);
|
||||
if (ret)
|
||||
goto out_unlock;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue