diff options
author | Sheng Yong <shengyong1@huawei.com> | 2016-06-04 16:01:28 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-06-16 00:32:35 +0200 |
commit | 8be0fea9c09d5be1693e50d1439f14878837fa4f (patch) | |
tree | 9f6d9815115d995c317b70e8a4c58ddff2e3e57c /fs/f2fs/namei.c | |
parent | f2fs: fix deadlock in add_link failure (diff) | |
download | linux-8be0fea9c09d5be1693e50d1439f14878837fa4f.tar.xz linux-8be0fea9c09d5be1693e50d1439f14878837fa4f.zip |
f2fs: find parent dentry correctly
If dotdot directory is corrupted, its slot may be ocupied by another
file. In this case, dentry[1] is not the parent directory. Rename and
cross-rename will update the inode in dentry[1] incorrectly. This
patch finds dotdot dentry by name.
Signed-off-by: Sheng Yong <shengyong1@huawei.com>
[Jaegeuk Kim: remove wron bug_on]
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/namei.c')
0 files changed, 0 insertions, 0 deletions