Lines Matching refs:ino

107 	DBG(2, "ino[0x%x] has hard links [0x%x]\n", nid, link_cnt);
250 if (node_blk->footer.nid == node_blk->footer.ino) {
403 if (ni->ino == 0) {
404 ASSERT_MSG("nid[0x%x] ino is 0", nid);
422 node_blk->footer.nid != node_blk->footer.ino) {
423 ASSERT_MSG("nid[0x%x] footer.nid[0x%x] footer.ino[0x%x]",
425 le32_to_cpu(node_blk->footer.ino));
428 if (ni->ino != le32_to_cpu(node_blk->footer.ino)) {
429 ASSERT_MSG("nid[0x%x] nat_entry->ino[0x%x] footer.ino[0x%x]",
430 nid, ni->ino, le32_to_cpu(node_blk->footer.ino));
434 node_blk->footer.nid == node_blk->footer.ino) {
435 ASSERT_MSG("nid[0x%x] footer.nid[0x%x] footer.ino[0x%x]",
437 le32_to_cpu(node_blk->footer.ino));
525 static int fsck_chk_xattr_blk(struct f2fs_sb_info *sbi, u32 ino,
547 DBG(2, "ino[0x%x] x_nid[0x%x]\n", ino, x_nid);
807 FIX_MSG("ino[0x%x] recover i_extra_isize "
819 FIX_MSG("ino[0x%x] remove F2FS_EXTRA_ATTR "
839 FIX_MSG("ino[0x%x] recover inline xattr size "
857 FIX_MSG("ino[0x%x] clear casefold flag", nid);
904 DBG(3, "ino[0x%x] has inline data!\n", nid);
912 DBG(3, "ino[0x%x] has inline dentry!\n", nid);
1042 ASSERT_MSG("ino: 0x%x has wrong ext: [pgofs:%u, blk:%u, len:%u]",
1049 ASSERT_MSG("ino: 0x%x has i_blocks: %08"PRIx64", "
1076 ASSERT_MSG("ino: 0x%x has i_namelen: 0x%x, "
1093 le32_to_cpu(node_blk->footer.ino),
1098 le32_to_cpu(node_blk->footer.ino),
1103 le32_to_cpu(node_blk->footer.ino), en,
1108 ASSERT_MSG("ino: 0x%x i_links: %u, real links: %u",
1119 ASSERT_MSG("ino: 0x%x dots: %u",
1139 le32_to_cpu(node_blk->footer.ino), en,
1161 ASSERT_MSG("ino: 0x%x is orphan inode, but has i_links: %u",
1166 FIX_MSG("ino: 0x%x orphan_inode, i_links= 0x%x -> 0",
1183 ASSERT_MSG("ino: 0x%x chksum:0x%x, but calculated one is: 0x%x",
1189 FIX_MSG("ino: 0x%x recover, i_inode_checksum= 0x%x -> 0x%x",
1444 if (dump_node(sbi, le32_to_cpu(dentry[idx].ino), 0))
1450 printf("%c-- %s <ino = 0x%x>, <encrypted (%d)>\n",
1452 new, le32_to_cpu(dentry[idx].ino),
1532 if (le32_to_cpu(dentry->ino) != child->p_ino) {
1534 le32_to_cpu(dentry->ino), child->p_ino);
1535 dentry->ino = cpu_to_le32(child->p_ino);
1542 if (le32_to_cpu(dentry->ino) != F2FS_ROOT_INO(sbi)) {
1544 le32_to_cpu(dentry->ino));
1545 dentry->ino = cpu_to_le32(F2FS_ROOT_INO(sbi));
1548 } else if (le32_to_cpu(dentry->ino) != child->pp_ino) {
1549 ASSERT_MSG("Bad inode number[0x%x] for '..', parent parent ino is [0x%x]\n",
1550 le32_to_cpu(dentry->ino), child->pp_ino);
1551 dentry->ino = cpu_to_le32(child->pp_ino);
1596 u32 ino;
1601 ino = le32_to_cpu(dentry[i].ino);
1603 if (IS_VALID_NID(sbi, ino)) {
1606 get_node_info(sbi, ino, &ni);
1621 if (!IS_VALID_NID(sbi, le32_to_cpu(dentry[i].ino))) {
1622 ASSERT_MSG("Bad dentry 0x%x with invalid NID/ino 0x%x",
1623 i, le32_to_cpu(dentry[i].ino));
1625 FIX_MSG("Clear bad dentry 0x%x with bad ino 0x%x",
1626 i, le32_to_cpu(dentry[i].ino));
1637 le32_to_cpu(dentry[i].ino), ftype);
1718 DBG(1, "[%3u]-[0x%x] name[%s] len[0x%x] ino[0x%x] type[0x%x]\n",
1720 le32_to_cpu(dentry[i].ino),
1731 NULL, le32_to_cpu(dentry[i].ino),
1740 le32_to_cpu(dentry[i].ino),
1924 nid_t ino = le32_to_cpu(orphan_blk->ino[j]);
1925 DBG(1, "[%3d] ino [0x%x]\n", i, ino);
1932 get_node_info(sbi, ino, &ni);
1933 if (!IS_VALID_NID(sbi, ino) ||
1943 ret = fsck_chk_node_blk(sbi, NULL, ino,
1947 new_blk->ino[new_entry_count++] =
1948 orphan_blk->ino[j];
1950 FIX_MSG("[0x%x] remove from orphan list", ino);
1952 ASSERT_MSG("[0x%x] wrong orphan inode", ino);
1981 nid_t ino = QUOTA_INO(sb, qtype);
1984 DBG(1, "qtype [%d] ino [0x%x]\n", qtype, ino);
1990 get_node_info(sbi, ino, &ni);
1991 if (!IS_VALID_NID(sbi, ino) ||
1996 ret = fsck_chk_node_blk(sbi, NULL, ino,
2000 ASSERT_MSG("wrong quota inode, qtype [%d] ino [0x%x]",
2001 qtype, ino);
2016 f2fs_ino_t ino;
2025 ino = sb->qf_ino[qtype];
2026 if (!ino)
2029 DBG(1, "Checking Quota file ([%3d] ino [0x%x])\n", qtype, ino);
2040 DBG(0, "Fixing Quota file ([%3d] ino [0x%x])\n",
2041 qtype, ino);
2042 f2fs_filesize_update(sbi, ino, 0);
2122 nid_t ino = le32_to_cpu(fsck->entries[i].ino);
2126 * skip entry whose ino is 0, otherwise, we will
2132 MSG(0, "\tError: nat entry[ino %u block_addr 0x%x]"
2134 ino, blk);
2139 MSG(0, "\tError: nat entry[ino %u block_addr 0x%x]"
2141 ino, blk);
2145 if (!IS_VALID_NID(sbi, ino)) {
2146 MSG(0, "\tError: nat_entry->ino %u exceeds the range"
2148 ino, fsck->nr_nat_entries);
2152 if (!f2fs_test_bit(ino, fsck->nat_area_bitmap)) {
2153 MSG(0, "\tError: nat_entry->ino %u is not set in"
2154 " nat_area_bitmap\n", ino);
2678 get_node_info(sbi, de.ino, &ni);
2682 de.ino, ni.blk_addr);
2685 c.lpf_ino = le32_to_cpu(node->footer.ino);
2698 nid_t ino = le32_to_cpu(fnode->footer.ino);
2702 namelen = snprintf(name, 80, "%u", ino);
2712 get_node_info(sbi, le32_to_cpu(lpf->footer.ino), &ni);
2715 ino, ftype, ni.blk_addr, 0);
2717 ASSERT_MSG("Failed to add inode [0x%x] to lost+found", ino);
2725 get_node_info(sbi, le32_to_cpu(fnode->footer.ino), &ni);
2729 DBG(1, "Reconnect inode [0x%x] to lost+found\n", ino);
2831 static void fsck_failed_reconnect_file(struct f2fs_sb_info *sbi, nid_t ino)
2842 get_node_info(sbi, ino, &ni);
2937 if (node->footer.ino != node->footer.nid) {