@@ -671,7 +671,7 @@ static void ext4_handle_error(struct super_block *sb, bool force_ro, int error,
671
671
* defer superblock flushing to a workqueue.
672
672
*/
673
673
if (continue_fs && journal )
674
- schedule_work (& EXT4_SB (sb )-> s_error_work );
674
+ schedule_work (& EXT4_SB (sb )-> s_sb_upd_work );
675
675
else
676
676
ext4_commit_super (sb );
677
677
}
@@ -698,10 +698,10 @@ static void ext4_handle_error(struct super_block *sb, bool force_ro, int error,
698
698
sb -> s_flags |= SB_RDONLY ;
699
699
}
700
700
701
- static void flush_stashed_error_work (struct work_struct * work )
701
+ static void update_super_work (struct work_struct * work )
702
702
{
703
703
struct ext4_sb_info * sbi = container_of (work , struct ext4_sb_info ,
704
- s_error_work );
704
+ s_sb_upd_work );
705
705
journal_t * journal = sbi -> s_journal ;
706
706
handle_t * handle ;
707
707
@@ -1011,7 +1011,7 @@ __acquires(bitlock)
1011
1011
if (!bdev_read_only (sb -> s_bdev )) {
1012
1012
save_error_info (sb , EFSCORRUPTED , ino , block , function ,
1013
1013
line );
1014
- schedule_work (& EXT4_SB (sb )-> s_error_work );
1014
+ schedule_work (& EXT4_SB (sb )-> s_sb_upd_work );
1015
1015
}
1016
1016
return ;
1017
1017
}
@@ -1189,10 +1189,10 @@ static void ext4_put_super(struct super_block *sb)
1189
1189
* Unregister sysfs before destroying jbd2 journal.
1190
1190
* Since we could still access attr_journal_task attribute via sysfs
1191
1191
* path which could have sbi->s_journal->j_task as NULL
1192
- * Unregister sysfs before flush sbi->s_error_work .
1192
+ * Unregister sysfs before flush sbi->s_sb_upd_work .
1193
1193
* Since user may read /proc/fs/ext4/xx/mb_groups during umount, If
1194
1194
* read metadata verify failed then will queue error work.
1195
- * flush_stashed_error_work will call start_this_handle may trigger
1195
+ * update_super_work will call start_this_handle may trigger
1196
1196
* BUG_ON.
1197
1197
*/
1198
1198
ext4_unregister_sysfs (sb );
@@ -1203,7 +1203,7 @@ static void ext4_put_super(struct super_block *sb)
1203
1203
ext4_unregister_li_request (sb );
1204
1204
ext4_quota_off_umount (sb );
1205
1205
1206
- flush_work (& sbi -> s_error_work );
1206
+ flush_work (& sbi -> s_sb_upd_work );
1207
1207
destroy_workqueue (sbi -> rsv_conversion_wq );
1208
1208
ext4_release_orphan_info (sb );
1209
1209
@@ -4892,8 +4892,8 @@ static int ext4_load_and_init_journal(struct super_block *sb,
4892
4892
return 0 ;
4893
4893
4894
4894
out :
4895
- /* flush s_error_work before journal destroy . */
4896
- flush_work (& sbi -> s_error_work );
4895
+ /* flush s_sb_upd_work before destroying the journal . */
4896
+ flush_work (& sbi -> s_sb_upd_work );
4897
4897
jbd2_journal_destroy (sbi -> s_journal );
4898
4898
sbi -> s_journal = NULL ;
4899
4899
return - EINVAL ;
@@ -5241,7 +5241,7 @@ static int __ext4_fill_super(struct fs_context *fc, struct super_block *sb)
5241
5241
5242
5242
timer_setup (& sbi -> s_err_report , print_daily_error_info , 0 );
5243
5243
spin_lock_init (& sbi -> s_error_lock );
5244
- INIT_WORK (& sbi -> s_error_work , flush_stashed_error_work );
5244
+ INIT_WORK (& sbi -> s_sb_upd_work , update_super_work );
5245
5245
5246
5246
/* Register extent status tree shrinker */
5247
5247
if (ext4_es_register_shrinker (sbi ))
@@ -5601,16 +5601,16 @@ static int __ext4_fill_super(struct fs_context *fc, struct super_block *sb)
5601
5601
sbi -> s_ea_block_cache = NULL ;
5602
5602
5603
5603
if (sbi -> s_journal ) {
5604
- /* flush s_error_work before journal destroy. */
5605
- flush_work (& sbi -> s_error_work );
5604
+ /* flush s_sb_upd_work before journal destroy. */
5605
+ flush_work (& sbi -> s_sb_upd_work );
5606
5606
jbd2_journal_destroy (sbi -> s_journal );
5607
5607
sbi -> s_journal = NULL ;
5608
5608
}
5609
5609
failed_mount3a :
5610
5610
ext4_es_unregister_shrinker (sbi );
5611
5611
failed_mount3 :
5612
- /* flush s_error_work before sbi destroy */
5613
- flush_work (& sbi -> s_error_work );
5612
+ /* flush s_sb_upd_work before sbi destroy */
5613
+ flush_work (& sbi -> s_sb_upd_work );
5614
5614
del_timer_sync (& sbi -> s_err_report );
5615
5615
ext4_stop_mmpd (sbi );
5616
5616
ext4_group_desc_free (sbi );
@@ -6426,7 +6426,7 @@ static int __ext4_remount(struct fs_context *fc, struct super_block *sb)
6426
6426
}
6427
6427
6428
6428
/* Flush outstanding errors before changing fs state */
6429
- flush_work (& sbi -> s_error_work );
6429
+ flush_work (& sbi -> s_sb_upd_work );
6430
6430
6431
6431
if ((bool )(fc -> sb_flags & SB_RDONLY ) != sb_rdonly (sb )) {
6432
6432
if (ext4_test_mount_flag (sb , EXT4_MF_FS_ABORTED )) {
0 commit comments