f2fs: fix to give correct parent inode number for roll forward
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Thu, 21 Mar 2013 06:21:57 +0000 (15:21 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Wed, 27 Mar 2013 00:16:25 +0000 (09:16 +0900)
commit953a3e27e10fc6acb480801ea47197d0270d735e
tree8ff66198318ee79464b9ac47e8ee091acf140c20
parentfa37241743ac26ba0ac6f54579158c2fae310a5c
f2fs: fix to give correct parent inode number for roll forward

When we recover fsync'ed data after power-off-recovery, we should guarantee
that any parent inode number should be correct for each direct inode blocks.

So, let's make the following rules.

- The fsync should do checkpoint to all the inodes that were experienced hard
links.

- So, the only normal files can be recovered by roll-forward.

Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/f2fs.h
fs/f2fs/file.c
fs/f2fs/namei.c
fs/f2fs/node.h