@@ -261,7 +261,7 @@ void ext4_fc_mark_ineligible(struct super_block *sb, int reason)
261261 (EXT4_SB (sb )-> s_mount_state & EXT4_FC_REPLAY ))
262262 return ;
263263
264- sbi -> s_mount_flags |= EXT4_MF_FC_INELIGIBLE ;
264+ ext4_set_mount_flag ( sb , EXT4_MF_FC_INELIGIBLE ) ;
265265 WARN_ON (reason >= EXT4_FC_REASON_MAX );
266266 sbi -> s_fc_stats .fc_ineligible_reason_count [reason ]++ ;
267267}
@@ -294,14 +294,14 @@ void ext4_fc_stop_ineligible(struct super_block *sb)
294294 (EXT4_SB (sb )-> s_mount_state & EXT4_FC_REPLAY ))
295295 return ;
296296
297- EXT4_SB (sb ) -> s_mount_flags |= EXT4_MF_FC_INELIGIBLE ;
297+ ext4_set_mount_flag (sb , EXT4_MF_FC_INELIGIBLE ) ;
298298 atomic_dec (& EXT4_SB (sb )-> s_fc_ineligible_updates );
299299}
300300
301301static inline int ext4_fc_is_ineligible (struct super_block * sb )
302302{
303- return (EXT4_SB (sb ) -> s_mount_flags & EXT4_MF_FC_INELIGIBLE ) ||
304- atomic_read (& EXT4_SB (sb )-> s_fc_ineligible_updates );
303+ return (ext4_test_mount_flag (sb , EXT4_MF_FC_INELIGIBLE ) ||
304+ atomic_read (& EXT4_SB (sb )-> s_fc_ineligible_updates )) ;
305305}
306306
307307/*
@@ -349,7 +349,7 @@ static int ext4_fc_track_template(
349349 spin_lock (& sbi -> s_fc_lock );
350350 if (list_empty (& EXT4_I (inode )-> i_fc_list ))
351351 list_add_tail (& EXT4_I (inode )-> i_fc_list ,
352- (sbi -> s_mount_flags & EXT4_MF_FC_COMMITTING ) ?
352+ (ext4_test_mount_flag ( inode -> i_sb , EXT4_MF_FC_COMMITTING ) ) ?
353353 & sbi -> s_fc_q [FC_Q_STAGING ] :
354354 & sbi -> s_fc_q [FC_Q_MAIN ]);
355355 spin_unlock (& sbi -> s_fc_lock );
@@ -402,7 +402,7 @@ static int __track_dentry_update(struct inode *inode, void *arg, bool update)
402402 node -> fcd_name .len = dentry -> d_name .len ;
403403
404404 spin_lock (& sbi -> s_fc_lock );
405- if (sbi -> s_mount_flags & EXT4_MF_FC_COMMITTING )
405+ if (ext4_test_mount_flag ( inode -> i_sb , EXT4_MF_FC_COMMITTING ) )
406406 list_add_tail (& node -> fcd_list ,
407407 & sbi -> s_fc_dentry_q [FC_Q_STAGING ]);
408408 else
@@ -857,7 +857,7 @@ static int ext4_fc_submit_inode_data_all(journal_t *journal)
857857 int ret = 0 ;
858858
859859 spin_lock (& sbi -> s_fc_lock );
860- sbi -> s_mount_flags |= EXT4_MF_FC_COMMITTING ;
860+ ext4_set_mount_flag ( sb , EXT4_MF_FC_COMMITTING ) ;
861861 list_for_each (pos , & sbi -> s_fc_q [FC_Q_MAIN ]) {
862862 ei = list_entry (pos , struct ext4_inode_info , i_fc_list );
863863 ext4_set_inode_state (& ei -> vfs_inode , EXT4_STATE_FC_COMMITTING );
@@ -1206,8 +1206,8 @@ static void ext4_fc_cleanup(journal_t *journal, int full)
12061206 list_splice_init (& sbi -> s_fc_q [FC_Q_STAGING ],
12071207 & sbi -> s_fc_q [FC_Q_STAGING ]);
12081208
1209- sbi -> s_mount_flags &= ~ EXT4_MF_FC_COMMITTING ;
1210- sbi -> s_mount_flags &= ~ EXT4_MF_FC_INELIGIBLE ;
1209+ ext4_clear_mount_flag ( sb , EXT4_MF_FC_COMMITTING ) ;
1210+ ext4_clear_mount_flag ( sb , EXT4_MF_FC_INELIGIBLE ) ;
12111211
12121212 if (full )
12131213 sbi -> s_fc_bytes = 0 ;
0 commit comments