Re: [f2fs-dev] [PATCH] f2fs: fix error handling on device alias check in rename and unlink
From: Chao Yu
Date: Thu Aug 20 2026 - 21:31:32 EST
On 8/21/26 09:18, Daeho Jeong wrote:
From: Daeho Jeong <daehojeong@xxxxxxxxxx>
In f2fs_rename() and f2fs_unlink(), directly returning -EPERM when
encountering a device aliasing file bypasses the cleanup path.
Fix this by setting err to -EPERM and jumping to the proper cleanup
labels (out_dir and out) instead of returning immediately.
Fixes: a737e409a3d6 ("f2fs: support dynamic reserve/release for device aliasing")
Cc: stable@xxxxxxxxxx
Signed-off-by: Daeho Jeong <daehojeong@xxxxxxxxxx>
Reviewed-by: Chao Yu <chao@xxxxxxxxxx>
Thanks,