fsck.f2fs: refactor extent info verification flow
authorChao Yu <chao2.yu@samsung.com>
Wed, 16 Mar 2016 03:07:07 +0000 (11:07 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 16 Mar 2016 19:49:34 +0000 (12:49 -0700)
commit2a802319c3c45a527dc706173e9831ace5410ee7
tree82ff0132c187a50c1d036822cc7db672ae7f9e9f
parentc8327c909f28fa306c99d262319fa8d2ce8a4324
fsck.f2fs: refactor extent info verification flow

There are some issues in original approach:
- memory allocated in i_extent.map will leak
- do not convert fields in i_ext from on-disk format to cpu format
- do not support checking file offset with extent info

This patch refactors the flow for fixing above issues and supporting
file offset check.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fsck/fsck.c
fsck/fsck.h
fsck/main.c