diff options
| author | Jianan Huang <jnhuang95@gmail.com> | 2026-09-09 19:46:14 +0800 |
|---|---|---|
| committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2026-09-14 15:21:48 +0000 |
| commit | 3f140a60c92a5e2e9885adac70cd3686ba4ee19a (patch) | |
| tree | f94259c525d36de2ba0c862d030f30e67dc114cd /tools/lib/python | |
| parent | 3f72f38444551f99aedac2fd0a9b05167b131a13 (diff) | |
f2fs: quota: fix stale lock holder on remount failure
F2FS remount can fail while duplicating a journalled quota file name.
f2fs_remount()
- sbi->umount_lock_holder = current
- kstrdup(F2FS_OPTION(sbi).s_qf_names[i])
: fails
- free previously duplicated names
- return -ENOMEM
The direct return leaves umount_lock_holder pointing at the failed
remount context. A later checkpoint may then wrongly treat another
context as the s_umount lock holder.
Add a restore_holder cleanup path and use it before returning -ENOMEM.
Fixes: eb85c2410d6f ("f2fs: quota: fix to avoid warning in dquot_writeback_dquots()")
Signed-off-by: Jianan Huang <jnhuang95@gmail.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
