diff options
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 12c1c0530f3d..65b4f864b0df 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -141,7 +141,7 @@ static int cow_file_range(struct inode *inode, u64 start, u64 end) | |||
141 | while(num_bytes > 0) { | 141 | while(num_bytes > 0) { |
142 | cur_alloc_size = min(num_bytes, root->fs_info->max_extent); | 142 | cur_alloc_size = min(num_bytes, root->fs_info->max_extent); |
143 | ret = btrfs_reserve_extent(trans, root, cur_alloc_size, | 143 | ret = btrfs_reserve_extent(trans, root, cur_alloc_size, |
144 | root->sectorsize, 0, 0, | 144 | root->sectorsize, 0, alloc_hint, |
145 | (u64)-1, &ins, 1); | 145 | (u64)-1, &ins, 1); |
146 | if (ret) { | 146 | if (ret) { |
147 | WARN_ON(1); | 147 | WARN_ON(1); |
@@ -558,7 +558,6 @@ static int btrfs_finish_ordered_io(struct inode *inode, u64 start, u64 end) | |||
558 | trans->transid, inode->i_ino, | 558 | trans->transid, inode->i_ino, |
559 | ordered_extent->file_offset, &ins); | 559 | ordered_extent->file_offset, &ins); |
560 | BUG_ON(ret); | 560 | BUG_ON(ret); |
561 | |||
562 | mutex_lock(&BTRFS_I(inode)->extent_mutex); | 561 | mutex_lock(&BTRFS_I(inode)->extent_mutex); |
563 | 562 | ||
564 | ret = btrfs_drop_extents(trans, root, inode, | 563 | ret = btrfs_drop_extents(trans, root, inode, |