]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/btrfs/extent_io.c
Btrfs: only flush down bios for writeback pages
[linux-2.6-omap-h63xx.git] / fs / btrfs / extent_io.c
index 3a65c10dce3358b57f7b4b50b37ac1951e452d89..87dba8517935d2516ee0745b4215a1bd16a32e5c 100644 (file)
@@ -2462,7 +2462,8 @@ retry:
                        }
 
                        if (wbc->sync_mode != WB_SYNC_NONE) {
-                               flush_fn(data);
+                               if (PageWriteback(page))
+                                       flush_fn(data);
                                wait_on_page_writeback(page);
                        }