summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChao Yu <chao@kernel.org>2025-03-03 11:25:00 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2025-03-04 00:47:13 +0000
commitd8f5b91d77a651705d3f76ba0ebd5d7981533333 (patch)
tree3f009642f09eee59e026832ba96f67ff9ad5edb2
parent3147ee567dd9004a49826ddeaf0a4b12865d4409 (diff)
downloadlinux-d8f5b91d77a651705d3f76ba0ebd5d7981533333.tar.gz
linux-d8f5b91d77a651705d3f76ba0ebd5d7981533333.zip
f2fs: fix to call f2fs_recover_quota_end() correctly
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>
-rw-r--r--fs/f2fs/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 7a8fcc1e278c..3c875dc07266 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -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