fsck: fix name search

The next name slots should be calculated by F2FS_SLOT_LEN not F2FS_NAME_LEN.

Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
This commit is contained in:
Jaegeuk Kim 2013-07-15 20:48:52 +09:00
parent 679ca83b9e
commit 0307b93ce2

View File

@ -537,7 +537,7 @@ int fsck_chk_dentry_blk(struct f2fs_sb_info *sbi,
ASSERT(ret >= 0);
i += (name_len + F2FS_NAME_LEN - 1) / F2FS_NAME_LEN;
i += (name_len + F2FS_SLOT_LEN - 1) / F2FS_SLOT_LEN;
dentries++;
*child_files = *child_files + 1;
free(name);