projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65985d9
)
f2fs: fix omitting to update inode page
author
Jaegeuk Kim
<jaegeuk.kim@samsung.com>
Mon, 26 Aug 2013 12:25:31 +0000
(21:25 +0900)
committer
Jaegeuk Kim
<jaegeuk.kim@samsung.com>
Tue, 27 Aug 2013 12:49:04 +0000
(21:49 +0900)
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>
fs/f2fs/namei.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/f2fs/namei.c
b/fs/f2fs/namei.c
index 4e475181280c4a8865513f89297a17ca14af07f0..7e43f6829afd6b16597a5c838c9487d242d08915 100644
(file)
--- 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);