diff options
author | Harshad Shirwadkar <harshadshirwadkar@gmail.com> | 2020-10-26 21:49:15 -0700 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2020-10-28 13:42:10 -0400 |
commit | ababea77bc50e004f7cc2792f0ec8d26b7574c3e (patch) | |
tree | 76376090a0b16b1d3429c933079a6dfbefa0b9c9 /fs/ext4/super.c | |
parent | e029c5f2798720b463e8df0e184a4d1036311b43 (diff) | |
download | linux-stable-ababea77bc50e004f7cc2792f0ec8d26b7574c3e.tar.gz linux-stable-ababea77bc50e004f7cc2792f0ec8d26b7574c3e.tar.bz2 linux-stable-ababea77bc50e004f7cc2792f0ec8d26b7574c3e.zip |
ext4: use s_mount_flags instead of s_mount_state for fast commit state
Ext4's fast commit related transient states should use
sb->s_mount_flags instead of persistent sb->s_mount_state.
Fixes: 8016e29f4362 ("ext4: fast commit recovery path")
Signed-off-by: Harshad Shirwadkar <harshadshirwadkar@gmail.com>
Link: https://lore.kernel.org/r/20201027044915.2553163-3-harshadshirwadkar@gmail.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r-- | fs/ext4/super.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 03373471131c..d92de21212e9 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -4777,8 +4777,8 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent) INIT_LIST_HEAD(&sbi->s_fc_dentry_q[FC_Q_MAIN]); INIT_LIST_HEAD(&sbi->s_fc_dentry_q[FC_Q_STAGING]); sbi->s_fc_bytes = 0; - sbi->s_mount_state &= ~EXT4_FC_INELIGIBLE; - sbi->s_mount_state &= ~EXT4_FC_COMMITTING; + sbi->s_mount_flags &= ~EXT4_MF_FC_INELIGIBLE; + sbi->s_mount_flags &= ~EXT4_MF_FC_COMMITTING; spin_lock_init(&sbi->s_fc_lock); memset(&sbi->s_fc_stats, 0, sizeof(sbi->s_fc_stats)); sbi->s_fc_replay_state.fc_regions = NULL; |