• Chao Yu's avatar
    f2fs: fix error path of ->symlink · a6be014e
    Chao Yu authored
    Now, in ->symlink of f2fs, we kept the fixed invoking order between
    f2fs_add_link and page_symlink since we should init node info firstly
    in f2fs_add_link, then such node info can be used in page_symlink.
    
    But we didn't fix to release meta info which was done before page_symlink
    in our error path, so this will leave us corrupt symlink entry in its
    parent's dentry page. Fix this issue by adding f2fs_unlink in the error
    path for removing such linking.
    Signed-off-by: default avatarChao Yu <chao2.yu@samsung.com>
    Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
    a6be014e
namei.c 24.4 KB