Lines Matching full:dentry
721 DBG(3, "ino[0x%x] has inline dentry!\n", nid);
1119 u8 *bitmap, struct f2fs_dir_entry *dentry,
1132 name_len = le16_to_cpu(dentry[idx].name_len);
1161 new, le32_to_cpu(dentry[idx].ino),
1165 static int f2fs_check_hash_code(struct f2fs_dir_entry *dentry,
1171 if (dentry->hash_code != hash_code) {
1177 new, le32_to_cpu(dentry->hash_code),
1179 dentry->hash_code = cpu_to_le32(hash_code);
1226 struct f2fs_dir_entry *dentry,
1235 if (le32_to_cpu(dentry->ino) != child->p_ino) {
1237 le32_to_cpu(dentry->ino), child->p_ino);
1238 dentry->ino = cpu_to_le32(child->p_ino);
1245 if (le32_to_cpu(dentry->ino) != F2FS_ROOT_INO(sbi)) {
1247 le32_to_cpu(dentry->ino));
1248 dentry->ino = cpu_to_le32(F2FS_ROOT_INO(sbi));
1251 } else if (le32_to_cpu(dentry->ino) != child->pp_ino) {
1253 le32_to_cpu(dentry->ino), child->pp_ino);
1254 dentry->ino = cpu_to_le32(child->pp_ino);
1259 if (f2fs_check_hash_code(dentry, name, len, enc_name))
1271 static void nullify_dentry(struct f2fs_dir_entry *dentry, int offs,
1274 memset(dentry, 0, sizeof(struct f2fs_dir_entry));
1280 u8 *bitmap, struct f2fs_dir_entry *dentry,
1302 ino = le32_to_cpu(dentry[i].ino);
1310 name_len = le16_to_cpu(dentry[i].name_len);
1322 if (!IS_VALID_NID(sbi, le32_to_cpu(dentry[i].ino))) {
1323 ASSERT_MSG("Bad dentry 0x%x with invalid NID/ino 0x%x",
1324 i, le32_to_cpu(dentry[i].ino));
1326 FIX_MSG("Clear bad dentry 0x%x with bad ino 0x%x",
1327 i, le32_to_cpu(dentry[i].ino));
1335 ftype = dentry[i].file_type;
1337 ASSERT_MSG("Bad dentry 0x%x with unexpected ftype 0x%x",
1338 le32_to_cpu(dentry[i].ino), ftype);
1340 FIX_MSG("Clear bad dentry 0x%x with bad ftype 0x%x",
1349 name_len = le16_to_cpu(dentry[i].name_len);
1352 ASSERT_MSG("Bad dentry 0x%x with invalid name_len", i);
1354 FIX_MSG("Clear bad dentry 0x%x", i);
1365 /* Becareful. 'dentry.file_type' is not imode. */
1370 ret = __chk_dots_dentries(sbi, &dentry[i],
1383 nullify_dentry(&dentry[i], i,
1395 if (f2fs_check_hash_code(dentry + i, name, name_len, enc_name))
1404 FIX_MSG("Clear bad dentry 0x%x", i);
1418 le32_to_cpu(dentry[i].ino),
1419 dentry[i].file_type);
1422 dentry, max, i, last_blk, enc_name);
1427 NULL, le32_to_cpu(dentry[i].ino),
1436 le32_to_cpu(dentry[i].ino),
1438 dentry[i].file_type);
1468 d.bitmap, d.dentry, d.filename, d.max, 1,
1471 DBG(1, "[%3d] Inline Dentry Block Fixed hash_codes\n\n",
1474 DBG(1, "[%3d] Inline Dentry Block Done : "
1499 de_blk->dentry, de_blk->filename,
1505 DBG(1, "[%3d] Dentry Block [0x%x] Fixed hash_codes\n\n",
1508 DBG(1, "[%3d] Dentry Block [0x%x] Done : "