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)
commit418f6c277011d89c394309e72df9ad058e0a3f7d
tree52dcc482f3c8dcf880da57e44d3ad0dc6650aef0
parentcb58463bc94470c428f3b9f4cda748e7755218ca
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
This page took 0.02743 seconds and 5 git commands to generate.