]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
f2fs: fix to call f2fs_recover_quota_end() correctly
authorChao Yu <chao@kernel.org>
Mon, 3 Mar 2025 03:25:00 +0000 (11:25 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 4 Mar 2025 00:47:13 +0000 (00:47 +0000)
f2fs_recover_quota_begin() and f2fs_recover_quota_end() should be called
in pair, there is some cases we may skip calling f2fs_recover_quota_end(),
fix it.

Fixes: e1bb7d3d9cbf ("f2fs: fix to recover quota data correctly")
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c

index 7a8fcc1e278c5e0b9d837275587718b93015994f..3c875dc072663a8de6554bb600eeb9a1de4722a7 100644 (file)
@@ -4805,10 +4805,10 @@ try_onemore:
                }
        }
 
+reset_checkpoint:
 #ifdef CONFIG_QUOTA
        f2fs_recover_quota_end(sbi, quota_enabled);
 #endif
-reset_checkpoint:
        /*
         * If the f2fs is not readonly and fsync data recovery succeeds,
         * write pointer consistency of cursegs and other zones are already