f2fs: fix f2fs_write_meta_page at no checkpoint status
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Wed, 5 Feb 2014 04:03:57 +0000 (13:03 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Mon, 17 Feb 2014 05:58:53 +0000 (14:58 +0900)
commit203681f65b07055259bd475a6281136615b4e9a4
tree81d75a7d692542c64f5bc7d724d0ebe51b98d382
parentbd859c6598dd2b73c517b3a36ecc5dd387eb1eb2
f2fs: fix f2fs_write_meta_page at no checkpoint status

If f2fs entered errorneous checkpoint status, it should skip writing meta
pages instead of redirtying the pages out.
Otherwise, it cannot unmount the partition even though f2fs is under read-only
status.

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