• Home
  • Raw
  • Download

Lines Matching refs:blk_addr

76 				ret = dev_read_block(node_block, ni.blk_addr);  in nat_dump()
78 if (ni.blk_addr != 0x0) { in nat_dump()
86 ni.blk_addr, pack); in nat_dump()
93 if (ni.blk_addr == 0) in nat_dump()
96 ret = dev_read_block(node_block, ni.blk_addr); in nat_dump()
105 ni.blk_addr, pack); in nat_dump()
292 dev_read_block(node_blk, ni.blk_addr); in dump_node_blk()
406 dev_read_block(node_blk, ni.blk_addr); in dump_node()
409 DBG(1, "nat_entry.block_addr [0x%x]\n", ni.blk_addr); in dump_node()
413 if (ni.blk_addr == 0x0) in dump_node()
432 static void dump_node_from_blkaddr(u32 blk_addr) in dump_node_from_blkaddr() argument
440 ret = dev_read_block(node_blk, blk_addr); in dump_node_from_blkaddr()
451 static void dump_data_offset(u32 blk_addr, int ofs_in_node) in dump_data_offset() argument
462 ret = dev_read_block(node_blk, blk_addr); in dump_data_offset()
489 static void dump_node_offset(u32 blk_addr) in dump_node_offset() argument
497 ret = dev_read_block(node_blk, blk_addr); in dump_node_offset()
504 int dump_info_from_blkaddr(struct f2fs_sb_info *sbi, u32 blk_addr) in dump_info_from_blkaddr() argument
514 if (blk_addr < SM_I(sbi)->seg0_blkaddr) { in dump_info_from_blkaddr()
517 } else if (blk_addr < SIT_I(sbi)->sit_base_addr) { in dump_info_from_blkaddr()
520 } else if (blk_addr < NM_I(sbi)->nat_blkaddr) { in dump_info_from_blkaddr()
523 } else if (blk_addr < SM_I(sbi)->ssa_blkaddr) { in dump_info_from_blkaddr()
526 } else if (blk_addr < SM_I(sbi)->main_blkaddr) { in dump_info_from_blkaddr()
529 } else if (blk_addr > __end_block_addr(sbi)) { in dump_info_from_blkaddr()
541 type = get_sum_entry(sbi, blk_addr, &sum_entry); in dump_info_from_blkaddr()
547 DBG(1, "Block_addr [0x%x]\n", blk_addr); in dump_info_from_blkaddr()
548 DBG(1, " - Segno [0x%x]\n", GET_SEGNO(sbi, blk_addr)); in dump_info_from_blkaddr()
549 DBG(1, " - Offset [0x%x]\n", OFFSET_IN_SEG(sbi, blk_addr)); in dump_info_from_blkaddr()
556 DBG(1, "NAT.blkaddr [0x%x]\n", ni.blk_addr); in dump_info_from_blkaddr()
562 if (ni.blk_addr == NULL_ADDR || ino_ni.blk_addr == NULL_ADDR) { in dump_info_from_blkaddr()
564 blk_addr); in dump_info_from_blkaddr()
570 dump_node_from_blkaddr(ino_ni.blk_addr); in dump_info_from_blkaddr()
573 MSG(0, "FS Userdata Area: Data block from 0x%x\n", blk_addr); in dump_info_from_blkaddr()
575 nid, ni.blk_addr); in dump_info_from_blkaddr()
577 ni.ino, ino_ni.blk_addr); in dump_info_from_blkaddr()
578 dump_node_from_blkaddr(ino_ni.blk_addr); in dump_info_from_blkaddr()
579 dump_data_offset(ni.blk_addr, in dump_info_from_blkaddr()
582 MSG(0, "FS Userdata Area: Node block from 0x%x\n", blk_addr); in dump_info_from_blkaddr()
585 ni.ino, ino_ni.blk_addr); in dump_info_from_blkaddr()
586 dump_node_from_blkaddr(ino_ni.blk_addr); in dump_info_from_blkaddr()
589 nid, ni.blk_addr); in dump_info_from_blkaddr()
591 ni.ino, ino_ni.blk_addr); in dump_info_from_blkaddr()
592 dump_node_from_blkaddr(ino_ni.blk_addr); in dump_info_from_blkaddr()
593 dump_node_offset(ni.blk_addr); in dump_info_from_blkaddr()