]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
f2fs: misc cleanup in f2fs_record_stop_reason()
authorChao Yu <chao@kernel.org>
Mon, 15 Jun 2026 13:08:18 +0000 (21:08 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 22 Jun 2026 19:52:38 +0000 (19:52 +0000)
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c

index 438616597e53eb7e617cb8316a9c8f22a18b60df..2b8d964111562a7629ea2e7f0cfa610776f57cd0 100644 (file)
@@ -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);