Lines Matching refs:node_blk
254 struct f2fs_node *node_blk; in dump_node_blk() local
260 node_blk = calloc(BLOCK_SZ, 1); in dump_node_blk()
261 ASSERT(node_blk); in dump_node_blk()
263 dev_read_block(node_blk, ni.blk_addr); in dump_node_blk()
267 skip = idx = ADDRS_PER_BLOCK(&node_blk->i); in dump_node_blk()
271 skip = idx * ADDRS_PER_BLOCK(&node_blk->i); in dump_node_blk()
288 le32_to_cpu(node_blk->dn.addr[i])); in dump_node_blk()
292 le32_to_cpu(node_blk->in.nid[i]), ofs); in dump_node_blk()
296 le32_to_cpu(node_blk->in.nid[i]), ofs); in dump_node_blk()
300 free(node_blk); in dump_node_blk()
304 static void dump_xattr(struct f2fs_sb_info *sbi, struct f2fs_node *node_blk) in dump_xattr() argument
311 xattr = read_all_xattrs(sbi, node_blk); in dump_xattr()
367 struct f2fs_node *UNUSED(node_blk)) in dump_xattr() argument
374 struct f2fs_node *node_blk) in dump_inode_blk() argument
379 if((node_blk->i.i_inline & F2FS_INLINE_DATA)) { in dump_inode_blk()
382 dev_write_dump(((unsigned char *)node_blk) + INLINE_DATA_OFFSET, in dump_inode_blk()
383 0, MAX_INLINE_DATA(node_blk)); in dump_inode_blk()
388 for (i = 0; i < ADDRS_PER_INODE(&node_blk->i); i++, ofs++) in dump_inode_blk()
390 node_blk->i.i_addr[get_extra_isize(node_blk) + i])); in dump_inode_blk()
396 le32_to_cpu(node_blk->i.i_nid[i]), &ofs); in dump_inode_blk()
399 le32_to_cpu(node_blk->i.i_nid[i]), &ofs); in dump_inode_blk()
402 le32_to_cpu(node_blk->i.i_nid[i]), &ofs); in dump_inode_blk()
407 dump_xattr(sbi, node_blk); in dump_inode_blk()
411 struct f2fs_node *node_blk, int force) in dump_file() argument
413 struct f2fs_inode *inode = &node_blk->i; in dump_file()
453 dump_inode_blk(sbi, ni->ino, node_blk); in dump_file()
478 struct f2fs_node *node_blk; in dump_node() local
482 node_blk = calloc(BLOCK_SZ, 1); in dump_node()
483 ASSERT(node_blk); in dump_node()
495 dev_read_block(node_blk, ni.blk_addr); in dump_node()
502 DBG(1, "node_blk.footer.ino [0x%x]\n", le32_to_cpu(node_blk->footer.ino)); in dump_node()
503 DBG(1, "node_blk.footer.nid [0x%x]\n", le32_to_cpu(node_blk->footer.nid)); in dump_node()
505 if (le32_to_cpu(node_blk->footer.ino) == ni.ino && in dump_node()
506 le32_to_cpu(node_blk->footer.nid) == ni.nid) { in dump_node()
507 print_node_info(sbi, node_blk, force); in dump_node()
510 dump_file(sbi, &ni, node_blk, force); in dump_node()
512 print_node_info(sbi, node_blk, force); in dump_node()
516 free(node_blk); in dump_node()
521 struct f2fs_node *node_blk; in dump_node_from_blkaddr() local
524 node_blk = calloc(BLOCK_SZ, 1); in dump_node_from_blkaddr()
525 ASSERT(node_blk); in dump_node_from_blkaddr()
527 ret = dev_read_block(node_blk, blk_addr); in dump_node_from_blkaddr()
531 print_node_info(sbi, node_blk, 0); in dump_node_from_blkaddr()
533 print_inode_info(sbi, node_blk, 1); in dump_node_from_blkaddr()
535 free(node_blk); in dump_node_from_blkaddr()
539 struct f2fs_node *node_blk) in start_bidx_of_node() argument
556 return bidx * ADDRS_PER_BLOCK(&node_blk->i) + in start_bidx_of_node()
557 ADDRS_PER_INODE(&node_blk->i); in start_bidx_of_node()
562 struct f2fs_node *node_blk; in dump_data_offset() local
567 node_blk = calloc(BLOCK_SZ, 1); in dump_data_offset()
568 ASSERT(node_blk); in dump_data_offset()
570 ret = dev_read_block(node_blk, blk_addr); in dump_data_offset()
573 node_ofs = ofs_of_node(node_blk); in dump_data_offset()
575 bidx = start_bidx_of_node(node_ofs, node_blk); in dump_data_offset()
581 free(node_blk); in dump_data_offset()
586 struct f2fs_node *node_blk; in dump_node_offset() local
589 node_blk = calloc(BLOCK_SZ, 1); in dump_node_offset()
590 ASSERT(node_blk); in dump_node_offset()
592 ret = dev_read_block(node_blk, blk_addr); in dump_node_offset()
595 MSG(0, " - Node offset : 0x%x\n", ofs_of_node(node_blk)); in dump_node_offset()
596 free(node_blk); in dump_node_offset()
601 struct f2fs_node *node_blk; in has_dirent() local
604 node_blk = calloc(BLOCK_SZ, 1); in has_dirent()
605 ASSERT(node_blk); in has_dirent()
607 ret = dev_read_block(node_blk, blk_addr); in has_dirent()
610 if (IS_INODE(node_blk) && S_ISDIR(le16_to_cpu(node_blk->i.i_mode))) in has_dirent()
613 if (is_inline && !(node_blk->i.i_inline & F2FS_INLINE_DENTRY)) in has_dirent()
616 *enc_name = file_is_encrypt(&node_blk->i); in has_dirent()
618 free(node_blk); in has_dirent()