aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r--fs/btrfs/extent_io.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index 3a65c10dce33..87dba8517935 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -2462,7 +2462,8 @@ retry:
2462 } 2462 }
2463 2463
2464 if (wbc->sync_mode != WB_SYNC_NONE) { 2464 if (wbc->sync_mode != WB_SYNC_NONE) {
2465 flush_fn(data); 2465 if (PageWriteback(page))
2466 flush_fn(data);
2466 wait_on_page_writeback(page); 2467 wait_on_page_writeback(page);
2467 } 2468 }
2468 2469