]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
f2fs: do not increase link count during recovery
authorJaegeuk Kim <jaegeuk@kernel.org>
Wed, 1 Apr 2015 01:03:29 +0000 (18:03 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 2 Apr 2015 17:48:15 +0000 (10:48 -0700)
commitf6c55c3bd575eef6c704bc5627629dbbeca34083
treed3942415b473551942bfa4b47c76ce0f0e453c22
parent51b732ff255d59f01d142f2be3f75fb48ec0f3d4
f2fs: do not increase link count during recovery

If there are multiple fsynced dnodes having a dent flag, roll-forward routine
sets FI_INC_LINK for their inode, and recovery_dentry increases its link count
accordingly.
That results in normal file having a link count as 2, so we can't unlink those
files.

This was added to handle several inode blocks having same inode number with
different directory paths.
But, current f2fs doesn't replay all of path changes and only recover its dentry
for the last fsynced inode block.
So, there is no reason to do this.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/recovery.c