From: Chao Yu Date: Mon, 15 Jun 2026 13:08:18 +0000 (+0800) Subject: f2fs: misc cleanup in f2fs_record_stop_reason() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d27e4431023770249a341aeb94cb40f4ff12b21e;p=thirdparty%2Flinux.git f2fs: misc cleanup in f2fs_record_stop_reason() Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 438616597e53e..2b8d964111562 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -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);