mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
f2fs: misc cleanup in f2fs_record_stop_reason()
Signed-off-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
98fd20b9cf
commit
d27e443102
|
|
@ -4641,8 +4641,7 @@ static void f2fs_record_stop_reason(struct f2fs_sb_info *sbi)
|
|||
|
||||
spin_lock_irqsave(&sbi->error_lock, flags);
|
||||
if (sbi->error_dirty) {
|
||||
memcpy(F2FS_RAW_SUPER(sbi)->s_errors, sbi->errors,
|
||||
MAX_F2FS_ERRORS);
|
||||
memcpy(raw_super->s_errors, sbi->errors, MAX_F2FS_ERRORS);
|
||||
sbi->error_dirty = false;
|
||||
}
|
||||
memcpy(raw_super->s_stop_reason, sbi->stop_reason, MAX_STOP_REASON);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user