• Home
  • Raw
  • Download

Lines Matching refs:blk_addr

66 			ret = dev_read_block(node_block, ni.blk_addr);  in nat_dump()
68 if (ni.blk_addr != 0x0) { in nat_dump()
76 ni.blk_addr, pack); in nat_dump()
85 if (ni.blk_addr == 0) in nat_dump()
88 ret = dev_read_block(node_block, ni.blk_addr); in nat_dump()
97 ni.blk_addr, pack); in nat_dump()
326 dev_read_block(node_blk, ni.blk_addr); in dump_node_blk()
530 static bool is_sit_bitmap_set(struct f2fs_sb_info *sbi, u32 blk_addr) in is_sit_bitmap_set() argument
535 se = get_seg_entry(sbi, GET_SEGNO(sbi, blk_addr)); in is_sit_bitmap_set()
536 offset = OFFSET_IN_SEG(sbi, blk_addr); in is_sit_bitmap_set()
554 DBG(1, "nat_entry.block_addr [0x%x]\n", ni.blk_addr); in dump_node()
558 if (!IS_VALID_BLK_ADDR(sbi, ni.blk_addr)) { in dump_node()
559 MSG(force, "Invalid node blkaddr: %u\n\n", ni.blk_addr); in dump_node()
563 dev_read_block(node_blk, ni.blk_addr); in dump_node()
565 if (ni.blk_addr == 0x0) in dump_node()
567 else if (!is_sit_bitmap_set(sbi, ni.blk_addr)) in dump_node()
568 MSG(force, "Invalid sit bitmap, %u\n\n", ni.blk_addr); in dump_node()
589 static void dump_node_from_blkaddr(struct f2fs_sb_info *sbi, u32 blk_addr) in dump_node_from_blkaddr() argument
597 ret = dev_read_block(node_blk, blk_addr); in dump_node_from_blkaddr()
630 static void dump_data_offset(u32 blk_addr, int ofs_in_node) in dump_data_offset() argument
640 ret = dev_read_block(node_blk, blk_addr); in dump_data_offset()
654 static void dump_node_offset(u32 blk_addr) in dump_node_offset() argument
662 ret = dev_read_block(node_blk, blk_addr); in dump_node_offset()
669 static int has_dirent(u32 blk_addr, int is_inline, int *enc_name) in has_dirent() argument
677 ret = dev_read_block(node_blk, blk_addr); in has_dirent()
693 static void dump_dirent(u32 blk_addr, int is_inline, int enc_name) in dump_dirent() argument
702 ret = dev_read_block(blk, blk_addr); in dump_dirent()
758 int dump_info_from_blkaddr(struct f2fs_sb_info *sbi, u32 blk_addr) in dump_info_from_blkaddr() argument
769 if (blk_addr < SM_I(sbi)->seg0_blkaddr) { in dump_info_from_blkaddr()
772 } else if (blk_addr < SIT_I(sbi)->sit_base_addr) { in dump_info_from_blkaddr()
775 } else if (blk_addr < NM_I(sbi)->nat_blkaddr) { in dump_info_from_blkaddr()
778 } else if (blk_addr < SM_I(sbi)->ssa_blkaddr) { in dump_info_from_blkaddr()
781 } else if (blk_addr < SM_I(sbi)->main_blkaddr) { in dump_info_from_blkaddr()
784 } else if (blk_addr > __end_block_addr(sbi)) { in dump_info_from_blkaddr()
796 if (!is_sit_bitmap_set(sbi, blk_addr)) in dump_info_from_blkaddr()
799 type = get_sum_entry(sbi, blk_addr, &sum_entry); in dump_info_from_blkaddr()
805 DBG(1, "Block_addr [0x%x]\n", blk_addr); in dump_info_from_blkaddr()
806 DBG(1, " - Segno [0x%x]\n", GET_SEGNO(sbi, blk_addr)); in dump_info_from_blkaddr()
807 DBG(1, " - Offset [0x%x]\n", OFFSET_IN_SEG(sbi, blk_addr)); in dump_info_from_blkaddr()
814 DBG(1, "NAT.blkaddr [0x%x]\n", ni.blk_addr); in dump_info_from_blkaddr()
820 if (ni.blk_addr == NULL_ADDR || ino_ni.blk_addr == NULL_ADDR) { in dump_info_from_blkaddr()
822 blk_addr); in dump_info_from_blkaddr()
828 dump_node_from_blkaddr(sbi, ino_ni.blk_addr); in dump_info_from_blkaddr()
831 MSG(0, "FS Userdata Area: Data block from 0x%x\n", blk_addr); in dump_info_from_blkaddr()
833 nid, ni.blk_addr); in dump_info_from_blkaddr()
835 ni.ino, ino_ni.blk_addr); in dump_info_from_blkaddr()
836 dump_node_from_blkaddr(sbi, ino_ni.blk_addr); in dump_info_from_blkaddr()
837 dump_data_offset(ni.blk_addr, in dump_info_from_blkaddr()
840 if (has_dirent(ino_ni.blk_addr, 0, &enc_name)) in dump_info_from_blkaddr()
841 dump_dirent(blk_addr, 0, enc_name); in dump_info_from_blkaddr()
843 MSG(0, "FS Userdata Area: Node block from 0x%x\n", blk_addr); in dump_info_from_blkaddr()
846 ni.ino, ino_ni.blk_addr); in dump_info_from_blkaddr()
847 dump_node_from_blkaddr(sbi, ino_ni.blk_addr); in dump_info_from_blkaddr()
849 if (has_dirent(ino_ni.blk_addr, 1, &enc_name)) in dump_info_from_blkaddr()
850 dump_dirent(blk_addr, 1, enc_name); in dump_info_from_blkaddr()
853 nid, ni.blk_addr); in dump_info_from_blkaddr()
855 ni.ino, ino_ni.blk_addr); in dump_info_from_blkaddr()
856 dump_node_from_blkaddr(sbi, ino_ni.blk_addr); in dump_info_from_blkaddr()
857 dump_node_offset(ni.blk_addr); in dump_info_from_blkaddr()