/external/f2fs-tools/fsck/ |
D | dump.c | 169 dev_read_block(node_blk, ni.blk_addr); in dump_node_blk() 278 dev_read_block(node_blk, ni.blk_addr); in dump_node() 281 DBG(1, "nat_entry.block_addr [0x%x]\n", ni.blk_addr); in dump_node() 285 if (ni.blk_addr == 0x0) in dump_node() 302 static void dump_node_from_blkaddr(u32 blk_addr) in dump_node_from_blkaddr() argument 310 ret = dev_read_block(node_blk, blk_addr); in dump_node_from_blkaddr() 321 static void dump_data_offset(u32 blk_addr, int ofs_in_node) in dump_data_offset() argument 332 ret = dev_read_block(node_blk, blk_addr); in dump_data_offset() 359 static void dump_node_offset(u32 blk_addr) in dump_node_offset() argument 367 ret = dev_read_block(node_blk, blk_addr); in dump_node_offset() [all …]
|
D | fsck.c | 128 u32 blk_addr) in is_valid_ssa_node_blk() argument 133 ret = get_sum_entry(sbi, blk_addr, &sum_entry); in is_valid_ssa_node_blk() 142 DBG(0, "target blk_addr [0x%x]\n", blk_addr); in is_valid_ssa_node_blk() 145 GET_SEGNO(sbi, blk_addr))); in is_valid_ssa_node_blk() 147 GET_SEGNO(sbi, blk_addr), in is_valid_ssa_node_blk() 148 OFFSET_IN_SEG(sbi, blk_addr)); in is_valid_ssa_node_blk() 158 static int is_valid_ssa_data_blk(struct f2fs_sb_info *sbi, u32 blk_addr, in is_valid_ssa_data_blk() argument 164 ret = get_sum_entry(sbi, blk_addr, &sum_entry); in is_valid_ssa_data_blk() 185 DBG(0, "Target data block addr [0x%x]\n", blk_addr); in is_valid_ssa_data_blk() 206 if (ni->blk_addr == NEW_ADDR) { in sanity_check_nid() [all …]
|
D | f2fs.h | 48 u32 blk_addr; member 284 #define GET_SEGOFF_FROM_SEG0(sbi, blk_addr) \ argument 285 ((blk_addr) - SM_I(sbi)->seg0_blkaddr) 287 #define GET_SEGNO_FROM_SEG0(sbi, blk_addr) \ argument 288 (GET_SEGOFF_FROM_SEG0(sbi, blk_addr) >> sbi->log_blocks_per_seg) 290 #define GET_BLKOFF_FROM_SEG0(sbi, blk_addr) \ argument 291 (GET_SEGOFF_FROM_SEG0(sbi, blk_addr) & (sbi->blocks_per_seg - 1)) 358 static inline u64 BLKOFF_FROM_MAIN(struct f2fs_sb_info *sbi, u64 blk_addr) in BLKOFF_FROM_MAIN() argument 360 ASSERT(blk_addr >= SM_I(sbi)->main_blkaddr); in BLKOFF_FROM_MAIN() 361 return blk_addr - SM_I(sbi)->main_blkaddr; in BLKOFF_FROM_MAIN() [all …]
|
D | main.c | 81 .blk_addr = -1, in f2fs_parse_options() 115 &dump_opt.blk_addr); in f2fs_parse_options() 118 &dump_opt.blk_addr); in f2fs_parse_options() 173 if (opt->blk_addr != -1) { in do_dump() 174 dump_info_from_blkaddr(sbi, opt->blk_addr); in do_dump()
|
D | mount.c | 57 inode->i_ext.blk_addr, in print_inode_info() 650 block_t blk_addr = 0; in read_normal_summaries() local 656 blk_addr = sum_blk_addr(sbi, NR_CURSEG_TYPE, type); in read_normal_summaries() 658 blk_addr = sum_blk_addr(sbi, NR_CURSEG_DATA_TYPE, type); in read_normal_summaries() 663 blk_addr = sum_blk_addr(sbi, NR_CURSEG_NODE_TYPE, in read_normal_summaries() 666 blk_addr = GET_SUM_BLKADDR(sbi, segno); in read_normal_summaries() 670 ret = dev_read_block(sum_blk, blk_addr); in read_normal_summaries() 741 block_t blk_addr = sit_i->sit_base_addr + offset; in get_current_sit_page() local 749 blk_addr += sit_i->sit_blocks; in get_current_sit_page() 751 ret = dev_read_block(sit_blk, blk_addr); in get_current_sit_page() [all …]
|
D | fsck.h | 123 int32_t blk_addr; member
|
/external/f2fs-tools/lib/ |
D | libf2fs_io.c | 67 int dev_write_block(void *buf, __u64 blk_addr) in dev_write_block() argument 69 return dev_write(buf, blk_addr * F2FS_BLKSIZE, F2FS_BLKSIZE); in dev_write_block() 93 int dev_read_block(void *buf, __u64 blk_addr) in dev_read_block() argument 95 return dev_read(buf, blk_addr * F2FS_BLKSIZE, F2FS_BLKSIZE); in dev_read_block() 103 int dev_reada_block(__u64 blk_addr) in dev_reada_block() argument 105 return dev_readahead(blk_addr * F2FS_BLKSIZE, F2FS_BLKSIZE); in dev_reada_block()
|
/external/f2fs-tools/include/ |
D | f2fs_fs.h | 407 __le16 blk_addr; /* block index in current CP */ member 418 __le32 blk_addr; /* start block address of the extent */ member
|
/external/f2fs-tools/mkfs/ |
D | f2fs_format.c | 770 raw_node->i.i_ext.blk_addr = cpu_to_le32(data_blk_nor); in f2fs_write_root_inode()
|