/external/f2fs-tools/fsck/ |
fsck.c | 93 static int is_valid_ssa_node_blk(struct f2fs_sb_info *sbi, u32 nid, u32 blk_addr) 98 ret = get_sum_entry(sbi, blk_addr, &sum_entry); 106 DBG(0, "target blk_addr [0x%x]\n", blk_addr); 107 DBG(0, "summary blk_addr [0x%x]\n", 108 GET_SUM_BLKADDR(sbi, GET_SEGNO(sbi, blk_addr))); 110 GET_SEGNO(sbi, blk_addr), OFFSET_IN_SEG(sbi, blk_addr)); 124 static int is_valid_ssa_data_blk(struct f2fs_sb_info *sbi, u32 blk_addr, 130 ret = get_sum_entry(sbi, blk_addr, &sum_entry) [all...] |
dump.c | 126 dev_read_block(node_blk, ni.blk_addr); 129 DBG(1, "nat_entry.block_addr [0x%x]\n", ni.blk_addr); 133 if (ni.blk_addr == 0x0) { 151 int dump_inode_from_blkaddr(struct f2fs_sb_info *sbi, u32 blk_addr) 159 type = get_sum_entry(sbi, blk_addr, &sum_entry); 166 DBG(1, "Block_addr [0x%x]\n", blk_addr); 167 DBG(1, " - Segno [0x%x]\n", GET_SEGNO(sbi, blk_addr)); 168 DBG(1, " - Offset [0x%x]\n", OFFSET_IN_SEG(sbi, blk_addr)); 173 DBG(1, "NAT.blkaddr [0x%x]\n", ni.blk_addr); 179 dev_read_block(node_blk, blk_addr); [all...] |
f2fs.h | 45 u32 blk_addr; member in struct:node_info 262 #define GET_SEGOFF_FROM_SEG0(sbi, blk_addr) \ 263 ((blk_addr) - SM_I(sbi)->seg0_blkaddr) 265 #define GET_SEGNO_FROM_SEG0(sbi, blk_addr) \ 266 (GET_SEGOFF_FROM_SEG0(sbi, blk_addr) >> sbi->log_blocks_per_seg) 322 static inline u64 BLKOFF_FROM_MAIN(struct f2fs_sb_info *sbi, u64 blk_addr) 324 ASSERT(blk_addr >= SM_I(sbi)->main_blkaddr); 325 return blk_addr - SM_I(sbi)->main_blkaddr; 328 static inline u32 GET_SEGNO(struct f2fs_sb_info *sbi, u64 blk_addr) 330 return (u32)(BLKOFF_FROM_MAIN(sbi, blk_addr) [all...] |
fsck.h | 117 u32 blk_addr, 127 u32 blk_addr, 136 extern int get_sum_entry(struct f2fs_sb_info *sbi, u32 blk_addr, struct f2fs_summary *sum_entry); 153 int32_t blk_addr; member in struct:dump_option 159 extern int dump_inode_from_blkaddr(struct f2fs_sb_info *sbi, u32 blk_addr);
|
main.c | 34 MSG(0, " -b blk_addr (in 4KB)\n"); 71 .blk_addr = -1, 95 sscanf(optarg, "%d", &dump_opt.blk_addr); 97 sscanf(optarg, "%x", &dump_opt.blk_addr); 165 if (opt->blk_addr != -1) { 166 dump_inode_from_blkaddr(sbi, opt->blk_addr);
|
mount.c | 46 inode->i_ext.blk_addr, 596 block_t blk_addr = 0; local 603 blk_addr = sum_blk_addr(sbi, NR_CURSEG_TYPE, type); 605 blk_addr = sum_blk_addr(sbi, NR_CURSEG_DATA_TYPE, type); 611 blk_addr = sum_blk_addr(sbi, NR_CURSEG_NODE_TYPE, type - CURSEG_HOT_NODE); 613 blk_addr = GET_SUM_BLKADDR(sbi, segno); 617 dev_read_block(sum_blk, blk_addr); 695 block_t blk_addr = sit_i->sit_base_addr + offset; local 702 blk_addr += sit_i->sit_blocks; 704 dev_read_block(sit_blk, blk_addr); [all...] |
/external/f2fs-tools/lib/ |
libf2fs_io.c | 61 int dev_read_block(void *buf, __u64 blk_addr) 63 return dev_read(buf, blk_addr * F2FS_BLKSIZE, F2FS_BLKSIZE);
|
/system/extras/f2fs_utils/ |
f2fs_ioutils.c | 177 int dev_read_block(void *buf, __u64 blk_addr)
|
f2fs_sparseblock.c | 362 u64 blk_addr; local 364 blk_addr = sum_blk_addr(cp, info, NR_CURSEG_TYPE, CURSEG_COLD_DATA); 366 blk_addr = sum_blk_addr(cp, info, NR_CURSEG_DATA_TYPE, CURSEG_COLD_DATA); 368 if (read_structure_blk(fd, blk_addr, buffer, 1))
|
/external/f2fs-tools/include/ |
f2fs_fs.h | 330 __le16 blk_addr; /* block index in current CP */ member in struct:f2fs_orphan_block 341 __le32 blk_addr; /* start block address of the extent */ member in struct:f2fs_extent
|
/external/f2fs-tools/mkfs/ |
f2fs_format.c | 695 raw_node->i.i_ext.blk_addr = cpu_to_le32(data_blk_nor);
|