From: Jaegeuk Kim Date: Tue, 28 May 2013 00:19:22 +0000 (+0900) Subject: f2fs: fix dentry recovery routine X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~81^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b8213d9a4ca0d7a02a38757068ba79cd96206f0;p=pandora-kernel.git f2fs: fix dentry recovery routine The error scenario is: 1. create /a (1.a link /a /b) 2. sync 3. unlinke /a 4. create /a 5. fsync /a 6. Sudden power-off When the f2fs recovers the fsynced dentry, /a, we discover an exsiting dentry at f2fs_find_entry() in recover_dentry(). In such the case, we should unlink the existing dentry and its inode and then recover newly created dentry. Signed-off-by: Jaegeuk Kim --- Reading git-diff-tree failed