aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ioctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r--fs/btrfs/ioctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index 0b63c3c77cfd..e1046a54b1c5 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -274,8 +274,7 @@ again:
274 */ 274 */
275 clear_page_dirty_for_io(page); 275 clear_page_dirty_for_io(page);
276 276
277 set_extent_delalloc(io_tree, page_start, 277 btrfs_set_extent_delalloc(inode, page_start, page_end);
278 page_end, GFP_NOFS);
279 278
280 unlock_extent(io_tree, page_start, page_end, GFP_NOFS); 279 unlock_extent(io_tree, page_start, page_end, GFP_NOFS);
281 set_page_dirty(page); 280 set_page_dirty(page);
@@ -784,6 +783,7 @@ long btrfs_ioctl(struct file *file, unsigned int
784 case BTRFS_IOC_TRANS_END: 783 case BTRFS_IOC_TRANS_END:
785 return btrfs_ioctl_trans_end(file); 784 return btrfs_ioctl_trans_end(file);
786 case BTRFS_IOC_SYNC: 785 case BTRFS_IOC_SYNC:
786 btrfs_start_delalloc_inodes(root);
787 btrfs_sync_fs(file->f_dentry->d_sb, 1); 787 btrfs_sync_fs(file->f_dentry->d_sb, 1);
788 return 0; 788 return 0;
789 } 789 }