Re: [f2fs-dev] [PATCH v2] f2fs: don't leave the hashed inode while it's unlinked

From: Chao Yu

Date: Sat Aug 22 2026 - 03:37:58 EST


On 8/21/26 23:23, Jaegeuk Kim via Linux-f2fs-devel wrote:
f2fs_symlink()
1. f2fs_new_inode
2. f2fs_add_link
3. write_being|end to fill the symlink path
4. flush dirty pages and or checkpoint

Step 4 is nice to succeed, which doesn't become a reason to roll back
the created symlink. OTOH, if we get an error till step 3, don't leave
its dentry and its inode.

Signed-off-by: Jaegeuk Kim <jaegeuk@xxxxxxxxxx>

Reviewed-by: Chao Yu <chao@xxxxxxxxxx>

Thanks,