]> git.baikalelectronics.ru Git - kernel.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>
Fri, 10 Apr 2015 22:08:58 +0000 (15:08 -0700)
commit02a8faf032e1be7bdfa76e432a04e08aa1f63e80
tree52dcc482f3c8dcf880da57e44d3ad0dc6650aef0
parentbfc65b08752d3890ba13c770f77bb0c277da543b
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