summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/dir.c
diff options
context:
space:
mode:
authorChao Yu <chao2.yu@samsung.com>2013-12-21 18:03:28 +0800
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2013-12-23 10:42:51 +0900
commitdeead09009fc5136185fe95026c395b5c2337e1f (patch)
treeeceef53f619241155d03a75ac2aa53981f96a73f /fs/f2fs/dir.c
parent4f4124d0b99682efa7307191a28ec050872d2079 (diff)
downloadlinux-deead09009fc5136185fe95026c395b5c2337e1f.tar.bz2
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>
Diffstat (limited to 'fs/f2fs/dir.c')
-rw-r--r--fs/f2fs/dir.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/f2fs/dir.c b/fs/f2fs/dir.c
index 28206109a293..07ad850bbf97 100644
--- a/fs/f2fs/dir.c
+++ b/fs/f2fs/dir.c
@@ -259,9 +259,6 @@ void f2fs_set_link(struct inode *dir, struct f2fs_dir_entry *de,
dir->i_mtime = dir->i_ctime = CURRENT_TIME;
mark_inode_dirty(dir);
- /* update parent inode number before releasing dentry page */
- F2FS_I(inode)->i_pino = dir->i_ino;
-
f2fs_put_page(page, 1);
}