Skip to content

Commit 0f0672f

Browse files
harshadjstytso
authored andcommitted
ext4: add a mount opt to forcefully turn fast commits on
This is a debug only mount option that forcefully turns fast commits on at mount time. Signed-off-by: Harshad Shirwadkar <harshadshirwadkar@gmail.com> Link: https://lore.kernel.org/r/20201015203802.3597742-9-harshadshirwadkar@gmail.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
1 parent 8016e29 commit 0f0672f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎fs/ext4/super.c‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1719,8 +1719,9 @@ enum {
17191719
Opt_max_dir_size_kb, Opt_nojournal_checksum, Opt_nombcache,
17201720
Opt_prefetch_block_bitmaps, Opt_no_fc,
17211721
#ifdef CONFIG_EXT4_DEBUG
1722-
Opt_fc_debug_max_replay
1722+
Opt_fc_debug_max_replay,
17231723
#endif
1724+
Opt_fc_debug_force
17241725
};
17251726

17261727
static const match_table_t tokens = {
@@ -1808,6 +1809,7 @@ static const match_table_t tokens = {
18081809
{Opt_init_itable, "init_itable"},
18091810
{Opt_noinit_itable, "noinit_itable"},
18101811
{Opt_no_fc, "no_fc"},
1812+
{Opt_fc_debug_force, "fc_debug_force"},
18111813
#ifdef CONFIG_EXT4_DEBUG
18121814
{Opt_fc_debug_max_replay, "fc_debug_max_replay=%u"},
18131815
#endif
@@ -2040,6 +2042,8 @@ static const struct mount_opts {
20402042
MOPT_SET},
20412043
{Opt_no_fc, EXT4_MOUNT2_JOURNAL_FAST_COMMIT,
20422044
MOPT_CLEAR | MOPT_2 | MOPT_EXT4_ONLY},
2045+
{Opt_fc_debug_force, EXT4_MOUNT2_JOURNAL_FAST_COMMIT,
2046+
MOPT_SET | MOPT_2 | MOPT_EXT4_ONLY},
20432047
#ifdef CONFIG_EXT4_DEBUG
20442048
{Opt_fc_debug_max_replay, 0, MOPT_GTE0},
20452049
#endif

0 commit comments

Comments
 (0)