f2fs: quota: fix unused-label warning
PATCH 1/1 f2fs: quota: fix unused-label warning
From: Arnd Bergmann <[email protected]>
The newly added label causes a warning when QUOTA is turned off:
fs/f2fs/super.c: In function '__f2fs_remount':fs/f2fs/super.c:3142:1: error: label 'restore_holder' defined but not used [-Werror=unused-label]
3142 | restore_holder:
| ^~~~~~~~~~~~~~
--- fs/f2fs/super.c | 2 ++ 1 file changed, 2 insertions(+)
fs/f2fs/super.c +2 -0
@@ -3139,7 +3139,9 @@ static int __f2fs_remount(struct fs_context *fc, struct super_block *sb) sbi->mount_opt = org_mount_opt; sb->s_flags = old_sb_flags; +#ifdef CONFIG_QUOTA restore_holder: +#endif sbi->umount_lock_holder =NULL ;return err; }
Signature · 1 line
2.53.0
Quoted 11 lines · On 9/17/26 7:21 AM, Arnd Bergmann via Linux-f2fs-devel wrote:
From: Arnd Bergmann <[email protected]>
The newly added label causes a warning when QUOTA is turned off:
fs/f2fs/super.c: In function '__f2fs_remount':fs/f2fs/super.c:3142:1: error: label 'restore_holder' defined but not used [-Werror=unused-label]
3142 |restore_holder:| ^~~~~~~~~~~~~~Fixes 3f140a60c92a ("f2fs: quota: fix stale lock holder on remount failure")Signed-off-by Arnd Bergmann <[email protected]>
Thanks.
Quoted 18 lines
--- fs/f2fs/super.c | 2 ++ 1 file changed, 2 insertions(+)fs/f2fs/super.c +2
-0@@ -3139,7 +3139,9 @@ static int __f2fs_remount(struct fs_context *fc, struct super_block *sb) sbi->mount_opt = org_mount_opt; sb->s_flags = old_sb_flags; +#ifdef CONFIG_QUOTA restore_holder: +#endif sbi->umount_lock_holder =NULL ;return err; }
Signature · 1 line
~Randy
Quoted 11 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
The newly added label causes a warning when QUOTA is turned off:
fs/f2fs/super.c: In function '__f2fs_remount':fs/f2fs/super.c:3142:1: error: label 'restore_holder' defined but not used [-Werror=unused-label]
3142 |restore_holder:| ^~~~~~~~~~~~~~Fixes 3f140a60c92a ("f2fs: quota: fix stale lock holder on remount failure")Signed-off-by Arnd Bergmann <[email protected]>
Thanks,
This patch was applied to jaegeuk/f2fs.git (dev) by Jaegeuk Kim <[email protected]>:
Hello:
This patch was applied to jaegeuk/f2fs.git (dev)
by Jaegeuk Kim <[email protected]>:
Quoted 10 lines · On Thu, 17 Sep 2026 16:21:42 +0200 you wrote:
From: Arnd Bergmann <[email protected]>
The newly added label causes a warning when QUOTA is turned off:
fs/f2fs/super.c: In function '__f2fs_remount':fs/f2fs/super.c:3142:1: error: label 'restore_holder' defined but not used [-Werror=unused-label]
3142 |restore_holder:| ^~~~~~~~~~~~~~[...]
Here is the summary with links:
- [f2fs-dev] f2fs: quota: fix unused-label warning
https://git.kernel.org/jaegeuk/f2fs/c/4faeea625cf7
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html