[Ocfs2-devel] [PATCH 08/20] ocfs2: Reset journal parameters after s_mount_opt update

Sunil Mushran sunil.mushran at oracle.com
Wed Jan 16 11:32:45 PST 2008


Mainline commit e001e796e47d29c470de6c2cd36400e03c66118b
Author: Mark Fasheh <mark.fasheh at oracle.com>
Date: Wed, 7 Nov 2007 14:21:45 -0800

Right now we're just setting them from the existing parameters, not the
new ones that a remount specified.

Signed-off-by: Mark Fasheh <mark.fasheh at oracle.com>
---
 fs/ocfs2/super.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c
index 43147c0..39cc000 100644
--- a/fs/ocfs2/super.c
+++ b/fs/ocfs2/super.c
@@ -442,14 +442,14 @@ unlock_osb:
 	}
 
 	if (!ret) {
-		if (!ocfs2_is_hard_readonly(osb))
-			ocfs2_set_journal_params(osb);
-
 		/* Only save off the new mount options in case of a successful
 		 * remount. */
 		osb->s_mount_opt = parsed_options.mount_opt;
 		osb->s_atime_quantum = parsed_options.atime_quantum;
 		osb->preferred_slot = parsed_options.slot;
+
+		if (!ocfs2_is_hard_readonly(osb))
+			ocfs2_set_journal_params(osb);
 	}
 out:
 	return ret;
-- 
1.5.3.4




More information about the Ocfs2-devel mailing list