Index: linux-2.6.0/fs/reiserfs/super.c =================================================================== --- linux-2.6.0/fs/reiserfs/super.c (revision 94) +++ linux-2.6.0/fs/reiserfs/super.c (working copy) @@ -662,6 +662,7 @@ {"resize", 'r', 0, 0, 0}, {"jdev", 'j', 0, 0, 0}, {"nolargeio", 'w', 0, 0, 0}, + {"commit", 'c', 0, 0, 0}, {NULL, 0, 0, 0, 0} }; @@ -690,6 +691,21 @@ } } + if ( c == 'c' ) { + extern int reiserfs_default_max_commit_age; + char *p = 0; + int val = simple_strtoul (arg, &p, 0); + + if ( *p != '\0') { + printk ("reiserfs_parse_options: bad value %s\n", arg); + return 0; + } + if ( val ) + reiserfs_default_max_commit_age = val; + else + reiserfs_default_max_commit_age = -1; + } + if ( c == 'w' ) { char *p=0; int val = simple_strtoul (arg, &p, 0); Index: linux-2.6.0/fs/reiserfs/journal.c =================================================================== --- linux-2.6.0/fs/reiserfs/journal.c (revision 94) +++ linux-2.6.0/fs/reiserfs/journal.c (working copy) @@ -1964,6 +1964,8 @@ return result; } +int reiserfs_default_max_commit_age = -1; + /* ** must be called once on fs mount. calls journal_read for you */ @@ -2032,7 +2034,11 @@ SB_JOURNAL_TRANS_MAX(p_s_sb) = le32_to_cpu (jh->jh_journal.jp_journal_trans_max); SB_JOURNAL_MAX_BATCH(p_s_sb) = le32_to_cpu (jh->jh_journal.jp_journal_max_batch); - SB_JOURNAL_MAX_COMMIT_AGE(p_s_sb) = le32_to_cpu (jh->jh_journal.jp_journal_max_commit_age); + if (reiserfs_default_max_commit_age != -1) { + SB_JOURNAL_MAX_COMMIT_AGE(p_s_sb) = reiserfs_default_max_commit_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)) { Index: linux-2.6.0/fs/reiserfs/procfs.c =================================================================== --- linux-2.6.0/fs/reiserfs/procfs.c (revision 94) +++ linux-2.6.0/fs/reiserfs/procfs.c (working copy) @@ -401,7 +401,7 @@ DJP( jp_journal_trans_max ), DJP( jp_journal_magic ), DJP( jp_journal_max_batch ), - DJP( jp_journal_max_commit_age ), + SB_JOURNAL_MAX_COMMIT_AGE(sb), DJP( jp_journal_max_trans_age ), JF( j_1st_reserved_block ),