Signed-off-by: Chao Yu <[email protected]>
---
 fs/f2fs/super.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 20577e33ee2a..ff2b9c6e8c32 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -4648,8 +4648,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);
-- 
2.49.0



_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

Reply via email to