summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/namei.c
diff options
context:
space:
mode:
authorJaegeuk Kim2013-08-26 14:25:31 +0200
committerJaegeuk Kim2013-08-27 14:49:04 +0200
commit8cb82688097b300dd3f107c3e19c92662fba5359 (patch)
tree1d26b68f1389afd76383036c22dac3ab4f06bc65 /fs/f2fs/namei.c
parentf2fs: support the inline xattrs (diff)
downloadkernel-qcow2-linux-8cb82688097b300dd3f107c3e19c92662fba5359.tar.gz
kernel-qcow2-linux-8cb82688097b300dd3f107c3e19c92662fba5359.tar.xz
kernel-qcow2-linux-8cb82688097b300dd3f107c3e19c92662fba5359.zip
f2fs: fix omitting to update inode page
The f2fs_set_link updates its parent inode number, so we should sync this to the inode block. Otherwise, the data can be lost after sudden-power-off. Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/namei.c')
-rw-r--r--fs/f2fs/namei.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c
index 4e475181280c..7e43f6829afd 100644
--- a/fs/f2fs/namei.c
+++ b/fs/f2fs/namei.c
@@ -447,6 +447,7 @@ static int f2fs_rename(struct inode *old_dir, struct dentry *old_dentry,
else
release_orphan_inode(sbi);
+ update_inode_page(old_inode);
update_inode_page(new_inode);
} else {
err = f2fs_add_link(new_dentry, old_inode);