mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git
synced 2024-11-27 11:43:36 +08:00
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:
parent
fe067853b0
commit
59591e45c0
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user