Lines Matching refs:dentry
1283 u8 *bitmap, struct f2fs_dir_entry *dentry, in print_dentry() argument
1296 name_len = le16_to_cpu(dentry[idx].name_len); in print_dentry()
1325 new, le32_to_cpu(dentry[idx].ino), in print_dentry()
1330 struct f2fs_dir_entry *dentry, in f2fs_check_hash_code() argument
1339 if (dentry->hash_code != hash_code) { in f2fs_check_hash_code()
1344 new, le32_to_cpu(dentry->hash_code), in f2fs_check_hash_code()
1346 dentry->hash_code = cpu_to_le32(hash_code); in f2fs_check_hash_code()
1366 static int f2fs_check_dirent_position(const struct f2fs_dir_entry *dentry, in f2fs_check_dirent_position() argument
1380 le32_to_cpu(dentry->hash_code) % nbucket); in f2fs_check_dirent_position()
1395 struct f2fs_dir_entry *dentry, in __chk_dots_dentries() argument
1404 if (le32_to_cpu(dentry->ino) != child->p_ino) { in __chk_dots_dentries()
1406 le32_to_cpu(dentry->ino), child->p_ino); in __chk_dots_dentries()
1407 dentry->ino = cpu_to_le32(child->p_ino); in __chk_dots_dentries()
1414 if (le32_to_cpu(dentry->ino) != F2FS_ROOT_INO(sbi)) { in __chk_dots_dentries()
1416 le32_to_cpu(dentry->ino)); in __chk_dots_dentries()
1417 dentry->ino = cpu_to_le32(F2FS_ROOT_INO(sbi)); in __chk_dots_dentries()
1420 } else if (le32_to_cpu(dentry->ino) != child->pp_ino) { in __chk_dots_dentries()
1422 le32_to_cpu(dentry->ino), child->pp_ino); in __chk_dots_dentries()
1423 dentry->ino = cpu_to_le32(child->pp_ino); in __chk_dots_dentries()
1428 if (f2fs_check_hash_code(get_encoding(sbi), casefolded, dentry, name, len, enc_name)) in __chk_dots_dentries()
1440 static void nullify_dentry(struct f2fs_dir_entry *dentry, int offs, in nullify_dentry() argument
1443 memset(dentry, 0, sizeof(struct f2fs_dir_entry)); in nullify_dentry()
1450 u8 *bitmap, struct f2fs_dir_entry *dentry, in __chk_dentries() argument
1472 ino = le32_to_cpu(dentry[i].ino); in __chk_dentries()
1480 name_len = le16_to_cpu(dentry[i].name_len); in __chk_dentries()
1492 if (!IS_VALID_NID(sbi, le32_to_cpu(dentry[i].ino))) { in __chk_dentries()
1494 i, le32_to_cpu(dentry[i].ino)); in __chk_dentries()
1497 i, le32_to_cpu(dentry[i].ino)); in __chk_dentries()
1505 ftype = dentry[i].file_type; in __chk_dentries()
1508 le32_to_cpu(dentry[i].ino), ftype); in __chk_dentries()
1519 name_len = le16_to_cpu(dentry[i].name_len); in __chk_dentries()
1542 ret = __chk_dots_dentries(sbi, casefolded, &dentry[i], in __chk_dentries()
1555 nullify_dentry(&dentry[i], i, in __chk_dentries()
1567 if (f2fs_check_hash_code(get_encoding(sbi), casefolded, dentry + i, name, name_len, enc_name)) in __chk_dentries()
1573 ret = f2fs_check_dirent_position(dentry + i, en, in __chk_dentries()
1590 le32_to_cpu(dentry[i].ino), in __chk_dentries()
1591 dentry[i].file_type); in __chk_dentries()
1594 dentry, max, i, last_blk, enc_name); in __chk_dentries()
1599 NULL, le32_to_cpu(dentry[i].ino), in __chk_dentries()
1608 le32_to_cpu(dentry[i].ino), in __chk_dentries()
1610 dentry[i].file_type); in __chk_dentries()
1640 d.bitmap, d.dentry, d.filename, d.max, 1, in fsck_chk_inline_dentries()
1671 de_blk->dentry, de_blk->filename, in fsck_chk_dentry_blk()
2475 struct dentry de; in fsck_get_lpf()