fsck.f2fs: fix wrong block addres of nids

This patch avoids assert when nid has wrong block address.
Let's fix this.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
Jaegeuk Kim 2014-09-29 11:29:13 -07:00
parent fe067853b0
commit 59591e45c0

View File

@ -323,9 +323,7 @@ static inline bool IS_VALID_BLK_ADDR(struct f2fs_sb_info *sbi, u32 addr)
if (addr >= F2FS_RAW_SUPER(sbi)->block_count ||
addr < SM_I(sbi)->main_blkaddr) {
DBG(0, "block addr [0x%x]\n", addr);
ASSERT(addr < F2FS_RAW_SUPER(sbi)->block_count);
ASSERT(addr >= SM_I(sbi)->main_blkaddr);
ASSERT_MSG("block addr [0x%x]\n", addr);
return 0;
}