Commit 008c597b authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] reiserfs: laptop-mode support

From: Chris Mason <mason@suse.com>

Add reiserfs support for laptop mode.
parent 34cd7802
......@@ -2314,10 +2314,11 @@ int journal_init(struct super_block *p_s_sb, const char * j_dev_name, int old_fo
SB_JOURNAL_MAX_BATCH(p_s_sb) = le32_to_cpu (jh->jh_journal.jp_journal_max_batch);
if (commit_max_age != 0) {
SB_JOURNAL_MAX_COMMIT_AGE(p_s_sb) = commit_max_age;
SB_JOURNAL_MAX_TRANS_AGE(p_s_sb) = commit_max_age;
} else {
SB_JOURNAL_MAX_COMMIT_AGE(p_s_sb) = le32_to_cpu (jh->jh_journal.jp_journal_max_commit_age);
}
SB_JOURNAL_MAX_TRANS_AGE(p_s_sb) = JOURNAL_MAX_TRANS_AGE;
}
if (SB_JOURNAL_TRANS_MAX(p_s_sb)) {
/* make sure these parameters are available, assign it if they are not */
......
......@@ -822,6 +822,7 @@ static int reiserfs_remount (struct super_block * s, int * mount_flags, char * a
if(commit_max_age != 0) {
SB_JOURNAL_MAX_COMMIT_AGE(s) = commit_max_age;
SB_JOURNAL_MAX_TRANS_AGE(s) = commit_max_age;
}
if(blocks) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment