]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/jfs/jfs_metapage.c
JFS: make special inodes play nicely with page balancing
[linux-2.6-omap-h63xx.git] / fs / jfs / jfs_metapage.c
index 13d7e3f1feb4e0c8a0d18462fd5cfb657702da1f..c81c6438fce5c495fbc2930dcd3a1d302c364683 100644 (file)
@@ -395,6 +395,12 @@ static int metapage_writepage(struct page *page, struct writeback_control *wbc)
 
                if (mp->nohomeok && !test_bit(META_forcewrite, &mp->flag)) {
                        redirty = 1;
+                       /*
+                        * Make sure this page isn't blocked indefinitely.
+                        * If the journal isn't undergoing I/O, push it
+                        */
+                       if (mp->log && !(mp->log->cflag & logGC_PAGEOUT))
+                               jfs_flush_journal(mp->log, 0);
                        continue;
                }