f2fs: avoid to set wrong pino of inode when rename dir
authorChao Yu <chao2.yu@samsung.com>
Sat, 21 Dec 2013 10:03:28 +0000 (18:03 +0800)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Mon, 23 Dec 2013 01:42:51 +0000 (10:42 +0900)
commitdeead09009fc5136185fe95026c395b5c2337e1f
treeeceef53f619241155d03a75ac2aa53981f96a73f
parent4f4124d0b99682efa7307191a28ec050872d2079
f2fs: avoid to set wrong pino of inode when rename dir

When we rename a dir to new name which is not exist previous,
we will set pino of parent inode with ino of child inode in f2fs_set_link.
It destroy consistency of pino, it should be fixed.

Thanks for previous work of Shu Tan.

Signed-off-by: Shu Tan <shu.tan@samsung.com>
Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/dir.c
fs/f2fs/namei.c