]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: find parent dentry correctly
authorSheng Yong <shengyong1@huawei.com>
Sat, 4 Jun 2016 14:01:28 +0000 (22:01 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 15 Jun 2016 22:32:35 +0000 (15:32 -0700)
commit4d561cf12c6b812657f91fd9149a3db1baf02baf
tree9f6d9815115d995c317b70e8a4c58ddff2e3e57c
parent43b1405e96c30c7aec3fffca745fcde35b309c4a
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>
fs/f2fs/dir.c
fs/f2fs/f2fs.h
fs/f2fs/inline.c