aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/super.c
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@redhat.com>2012-02-20 17:53:04 -0500
committerTheodore Ts'o <tytso@mit.edu>2012-02-20 17:53:04 -0500
commit43e625d84fa7daca0ad46f1dbc965b04fd204afe (patch)
tree5a42f4efec45c59edb2967b439135a5a603d9525 /fs/ext4/super.c
parent1592d2c5574edadb0871cc4ac84265bdd18b2d68 (diff)
ext4: remove the journal=update mount option
The V2 journal format was introduced around ten years ago, for ext3. It seems highly unlikely that anyone will need this migration option for ext4. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r--fs/ext4/super.c26
1 files changed, 1 insertions, 25 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 3e697ec7feca..9420c50c5c6a 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -1336,8 +1336,7 @@ enum {
1336 Opt_user_xattr, Opt_nouser_xattr, Opt_acl, Opt_noacl, 1336 Opt_user_xattr, Opt_nouser_xattr, Opt_acl, Opt_noacl,
1337 Opt_auto_da_alloc, Opt_noauto_da_alloc, Opt_noload, Opt_nobh, Opt_bh, 1337 Opt_auto_da_alloc, Opt_noauto_da_alloc, Opt_noload, Opt_nobh, Opt_bh,
1338 Opt_commit, Opt_min_batch_time, Opt_max_batch_time, 1338 Opt_commit, Opt_min_batch_time, Opt_max_batch_time,
1339 Opt_journal_update, Opt_journal_dev, 1339 Opt_journal_dev, Opt_journal_checksum, Opt_journal_async_commit,
1340 Opt_journal_checksum, Opt_journal_async_commit,
1341 Opt_abort, Opt_data_journal, Opt_data_ordered, Opt_data_writeback, 1340 Opt_abort, Opt_data_journal, Opt_data_ordered, Opt_data_writeback,
1342 Opt_data_err_abort, Opt_data_err_ignore, 1341 Opt_data_err_abort, Opt_data_err_ignore,
1343 Opt_usrjquota, Opt_grpjquota, Opt_offusrjquota, Opt_offgrpjquota, 1342 Opt_usrjquota, Opt_grpjquota, Opt_offusrjquota, Opt_offgrpjquota,
@@ -1379,7 +1378,6 @@ static const match_table_t tokens = {
1379 {Opt_commit, "commit=%u"}, 1378 {Opt_commit, "commit=%u"},
1380 {Opt_min_batch_time, "min_batch_time=%u"}, 1379 {Opt_min_batch_time, "min_batch_time=%u"},
1381 {Opt_max_batch_time, "max_batch_time=%u"}, 1380 {Opt_max_batch_time, "max_batch_time=%u"},
1382 {Opt_journal_update, "journal=update"},
1383 {Opt_journal_dev, "journal_dev=%u"}, 1381 {Opt_journal_dev, "journal_dev=%u"},
1384 {Opt_journal_checksum, "journal_checksum"}, 1382 {Opt_journal_checksum, "journal_checksum"},
1385 {Opt_journal_async_commit, "journal_async_commit"}, 1383 {Opt_journal_async_commit, "journal_async_commit"},
@@ -1629,19 +1627,6 @@ static int parse_options(char *options, struct super_block *sb,
1629 ext4_msg(sb, KERN_ERR, "(no)acl options not supported"); 1627 ext4_msg(sb, KERN_ERR, "(no)acl options not supported");
1630 break; 1628 break;
1631#endif 1629#endif
1632 case Opt_journal_update:
1633 /* @@@ FIXME */
1634 /* Eventually we will want to be able to create
1635 a journal file here. For now, only allow the
1636 user to specify an existing inode to be the
1637 journal file. */
1638 if (is_remount) {
1639 ext4_msg(sb, KERN_ERR,
1640 "Cannot specify journal on remount");
1641 return 0;
1642 }
1643 set_opt(sb, UPDATE_JOURNAL);
1644 break;
1645 case Opt_journal_dev: 1630 case Opt_journal_dev:
1646 if (is_remount) { 1631 if (is_remount) {
1647 ext4_msg(sb, KERN_ERR, 1632 ext4_msg(sb, KERN_ERR,
@@ -4109,15 +4094,6 @@ static int ext4_load_journal(struct super_block *sb,
4109 if (!(journal->j_flags & JBD2_BARRIER)) 4094 if (!(journal->j_flags & JBD2_BARRIER))
4110 ext4_msg(sb, KERN_INFO, "barriers disabled"); 4095 ext4_msg(sb, KERN_INFO, "barriers disabled");
4111 4096
4112 if (!really_read_only && test_opt(sb, UPDATE_JOURNAL)) {
4113 err = jbd2_journal_update_format(journal);
4114 if (err) {
4115 ext4_msg(sb, KERN_ERR, "error updating journal");
4116 jbd2_journal_destroy(journal);
4117 return err;
4118 }
4119 }
4120
4121 if (!EXT4_HAS_INCOMPAT_FEATURE(sb, EXT4_FEATURE_INCOMPAT_RECOVER)) 4097 if (!EXT4_HAS_INCOMPAT_FEATURE(sb, EXT4_FEATURE_INCOMPAT_RECOVER))
4122 err = jbd2_journal_wipe(journal, !really_read_only); 4098 err = jbd2_journal_wipe(journal, !really_read_only);
4123 if (!err) { 4099 if (!err) {