]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/jfs/jfs_metapage.c
JFS: make sure right-most xtree pages have header.next set to zero
[karo-tx-linux.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;
                }