Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 745ae8ba authored by Mark Fasheh's avatar Mark Fasheh
Browse files

[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: default avatarMark Fasheh <mark.fasheh@oracle.com>
parent 558c70c5
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -1584,10 +1584,9 @@ static int ocfs2_commit_thread(void *arg)
	while (!(kthread_should_stop() &&
		 atomic_read(&journal->j_num_trans) == 0)) {

		wait_event_interruptible_timeout(osb->checkpoint_event,
		wait_event_interruptible(osb->checkpoint_event,
					 atomic_read(&journal->j_num_trans)
						 || kthread_should_stop(),
						 OCFS2_CHECKPOINT_INTERVAL);
					 || kthread_should_stop());

		status = ocfs2_commit_cache(osb);
		if (status < 0)
+0 −2
Original line number Diff line number Diff line
@@ -29,8 +29,6 @@
#include <linux/fs.h>
#include <linux/jbd.h>

#define OCFS2_CHECKPOINT_INTERVAL        (8 * HZ)

enum ocfs2_journal_state {
	OCFS2_JOURNAL_FREE = 0,
	OCFS2_JOURNAL_LOADED,