aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-12-18 16:25:45 -0500
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:03:58 -0400
commit190662b2128dd648749e197f5563e9f6bbb5e05c (patch)
treedba934f3932650ad4f975073d1871c7424ef18d2 /fs/btrfs/inode.c
parent4aec2b52327b3a3a20faa3f1af3102c0d97c7c92 (diff)
Btrfs: Fix delayed allocation to avoid missing delalloc extents
find_lock_delalloc_range could exit out too early Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r--fs/btrfs/inode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 1e725a48467c..55b2e1426024 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -798,6 +798,7 @@ static int btrfs_cow_one_page(struct inode *inode, struct page *page,
798 u64 page_start = (u64)page->index << PAGE_CACHE_SHIFT; 798 u64 page_start = (u64)page->index << PAGE_CACHE_SHIFT;
799 u64 page_end = page_start + PAGE_CACHE_SIZE - 1; 799 u64 page_end = page_start + PAGE_CACHE_SIZE - 1;
800 800
801 WARN_ON(!PageLocked(page));
801 set_page_extent_mapped(page); 802 set_page_extent_mapped(page);
802 803
803 lock_extent(em_tree, page_start, page_end, GFP_NOFS); 804 lock_extent(em_tree, page_start, page_end, GFP_NOFS);