diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-08-04 23:17:27 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:04:06 -0400 |
commit | ea8c281947950fac5f78818b767821d696c9512a (patch) | |
tree | a30e9da5371d9a694a8f73d450231107ccad1dcb /fs/btrfs/ioctl.c | |
parent | d7a029a89ef370e74b63f18b81498d90d1ee3cc1 (diff) |
Btrfs: Maintain a list of inodes that are delalloc and a way to wait on them
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r-- | fs/btrfs/ioctl.c | 4 |
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 | } |