f2fs: avoid to write during the recovery
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Wed, 16 Oct 2013 06:09:26 +0000 (15:09 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Fri, 18 Oct 2013 00:44:14 +0000 (09:44 +0900)
commit87a9bd265678ec3cc8431b14bcb14c68d0f94032
tree8e9b83647295f111ca19be91d154f673fea10331
parente234088758fca3a669ebb1a02d8bf7bf60f0e4ff
f2fs: avoid to write during the recovery

This patch enhances the recovery routine not to write any data/node/meta until
its completion.
If any writes are sent to the disk, it could contaminate the written history
that will be used for further recovery.

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