mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
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>
This commit is contained in:
parent
4aec2b5232
commit
190662b212
2 changed files with 8 additions and 2 deletions
|
@ -798,6 +798,7 @@ static int btrfs_cow_one_page(struct inode *inode, struct page *page,
|
|||
u64 page_start = (u64)page->index << PAGE_CACHE_SHIFT;
|
||||
u64 page_end = page_start + PAGE_CACHE_SIZE - 1;
|
||||
|
||||
WARN_ON(!PageLocked(page));
|
||||
set_page_extent_mapped(page);
|
||||
|
||||
lock_extent(em_tree, page_start, page_end, GFP_NOFS);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue