summaryrefslogtreecommitdiffstats
path: root/fs/jfs/jfs_metapage.c
diff options
context:
space:
mode:
authorLinus Torvalds2005-10-28 21:44:24 +0200
committerLinus Torvalds2005-10-28 21:44:24 +0200
commit8caf89157d64f1eedba37113afb4b303b2b3e301 (patch)
treea72038508368f81e5b3f1b82ad14918df8c7be7a /fs/jfs/jfs_metapage.c
parent[MCAST] IPv6: Fix algorithm to compute Querier's Query Interval (diff)
parentJFS: make sure right-most xtree pages have header.next set to zero (diff)
downloadkernel-qcow2-linux-8caf89157d64f1eedba37113afb4b303b2b3e301.tar.gz
kernel-qcow2-linux-8caf89157d64f1eedba37113afb4b303b2b3e301.tar.xz
kernel-qcow2-linux-8caf89157d64f1eedba37113afb4b303b2b3e301.zip
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/shaggy/jfs-2.6
Diffstat (limited to 'fs/jfs/jfs_metapage.c')
-rw-r--r--fs/jfs/jfs_metapage.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/jfs/jfs_metapage.c b/fs/jfs/jfs_metapage.c
index eeb37d70e650..26091a5f88d4 100644
--- a/fs/jfs/jfs_metapage.c
+++ b/fs/jfs/jfs_metapage.c
@@ -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;
}