On 08/26/2013 08:28 PM, Jaegeuk Kim wrote: > 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....@samsung.com> > --- > fs/f2fs/namei.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c > index 4e47518..9e90d31 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); ------------------------------------------------------------------------------ Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel