Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 274606
b: refs/heads/master
c: 9e48710
h: refs/heads/master
v: v3
  • Loading branch information
Josef Bacik committed Oct 19, 2011
1 parent e402270 commit 2be62d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fb25e9141ab843794d5cdef3936ccb58435e2371
refs/heads/master: 9e4871070b5f070cacf26525389d56e0345ba156
6 changes: 5 additions & 1 deletion trunk/fs/btrfs/extent_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -2136,6 +2136,7 @@ static int __extent_writepage(struct page *page, struct writeback_control *wbc,
int compressed;
int write_flags;
unsigned long nr_written = 0;
bool fill_delalloc = true;

if (wbc->sync_mode == WB_SYNC_ALL)
write_flags = WRITE_SYNC;
Expand Down Expand Up @@ -2166,10 +2167,13 @@ static int __extent_writepage(struct page *page, struct writeback_control *wbc,

set_page_extent_mapped(page);

if (!tree->ops || !tree->ops->fill_delalloc)
fill_delalloc = false;

delalloc_start = start;
delalloc_end = 0;
page_started = 0;
if (!epd->extent_locked) {
if (!epd->extent_locked && fill_delalloc) {
u64 delalloc_to_write = 0;
/*
* make sure the wbc mapping index is at least updated
Expand Down

0 comments on commit 2be62d0

Please sign in to comment.