[PATCH] ocfs2: only checkpoint journal when asked to

Disable automatic checkpointing of the journal - this is a relic from older
ocfs2 days. Worth quite a bit of performance on longer running single node
tests.

Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>

+3 -6
+3 -4
fs/ocfs2/journal.c
··· 1584 1584 while (!(kthread_should_stop() && 1585 1585 atomic_read(&journal->j_num_trans) == 0)) { 1586 1586 1587 - wait_event_interruptible_timeout(osb->checkpoint_event, 1588 - atomic_read(&journal->j_num_trans) 1589 - || kthread_should_stop(), 1590 - OCFS2_CHECKPOINT_INTERVAL); 1587 + wait_event_interruptible(osb->checkpoint_event, 1588 + atomic_read(&journal->j_num_trans) 1589 + || kthread_should_stop()); 1591 1590 1592 1591 status = ocfs2_commit_cache(osb); 1593 1592 if (status < 0)
-2
fs/ocfs2/journal.h
··· 29 29 #include <linux/fs.h> 30 30 #include <linux/jbd.h> 31 31 32 - #define OCFS2_CHECKPOINT_INTERVAL (8 * HZ) 33 - 34 32 enum ocfs2_journal_state { 35 33 OCFS2_JOURNAL_FREE = 0, 36 34 OCFS2_JOURNAL_LOADED,