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/file.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/file.c')
-rw-r--r-- | fs/btrfs/file.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 8915f2dc1bce..eb8e4556fa71 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c | |||
@@ -312,8 +312,7 @@ static int noinline dirty_and_release_pages(struct btrfs_trans_handle *trans, | |||
312 | * to reset the delalloc bit on things that already have | 312 | * to reset the delalloc bit on things that already have |
313 | * extents reserved. | 313 | * extents reserved. |
314 | */ | 314 | */ |
315 | set_extent_delalloc(io_tree, start_pos, | 315 | btrfs_set_extent_delalloc(inode, start_pos, end_of_last_block); |
316 | end_of_last_block, GFP_NOFS); | ||
317 | for (i = 0; i < num_pages; i++) { | 316 | for (i = 0; i < num_pages; i++) { |
318 | struct page *p = pages[i]; | 317 | struct page *p = pages[i]; |
319 | SetPageUptodate(p); | 318 | SetPageUptodate(p); |