diff options
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r-- | fs/btrfs/ioctl.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 9f4db848db10..e2d8e90259b0 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c | |||
@@ -597,9 +597,8 @@ again: | |||
597 | clear_page_dirty_for_io(page); | 597 | clear_page_dirty_for_io(page); |
598 | 598 | ||
599 | btrfs_set_extent_delalloc(inode, page_start, page_end); | 599 | btrfs_set_extent_delalloc(inode, page_start, page_end); |
600 | |||
601 | unlock_extent(io_tree, page_start, page_end, GFP_NOFS); | ||
602 | set_page_dirty(page); | 600 | set_page_dirty(page); |
601 | unlock_extent(io_tree, page_start, page_end, GFP_NOFS); | ||
603 | unlock_page(page); | 602 | unlock_page(page); |
604 | page_cache_release(page); | 603 | page_cache_release(page); |
605 | balance_dirty_pages_ratelimited_nr(inode->i_mapping, 1); | 604 | balance_dirty_pages_ratelimited_nr(inode->i_mapping, 1); |
@@ -977,7 +976,7 @@ static long btrfs_ioctl_clone(struct file *file, unsigned long srcfd, | |||
977 | 976 | ||
978 | /* punch hole in destination first */ | 977 | /* punch hole in destination first */ |
979 | btrfs_drop_extents(trans, root, inode, off, off + len, | 978 | btrfs_drop_extents(trans, root, inode, off, off + len, |
980 | off + len, 0, &hint_byte); | 979 | off + len, 0, &hint_byte, 1); |
981 | 980 | ||
982 | /* clone data */ | 981 | /* clone data */ |
983 | key.objectid = src->i_ino; | 982 | key.objectid = src->i_ino; |