Searched refs:node_blk (Results 1 – 4 of 4) sorted by relevance
/external/f2fs-tools/fsck/ |
D | dump.c | 143 struct f2fs_node *node_blk; in dump_node_blk() local 168 node_blk = calloc(BLOCK_SZ, 1); in dump_node_blk() 169 dev_read_block(node_blk, ni.blk_addr); in dump_node_blk() 175 le32_to_cpu(node_blk->dn.addr[i])); in dump_node_blk() 179 le32_to_cpu(node_blk->in.nid[i]), ofs); in dump_node_blk() 183 le32_to_cpu(node_blk->in.nid[i]), ofs); in dump_node_blk() 187 free(node_blk); in dump_node_blk() 191 struct f2fs_node *node_blk) in dump_inode_blk() argument 198 if((node_blk->i.i_inline & F2FS_INLINE_DATA)){ in dump_inode_blk() 201 dev_write_dump(((unsigned char *)node_blk) + INLINE_DATA_OFFSET, in dump_inode_blk() [all …]
|
D | fsck.c | 193 struct f2fs_node *node_blk, in sanity_check_nid() argument 221 ret = dev_read_block(node_blk, ni->blk_addr); in sanity_check_nid() 225 node_blk->footer.nid != node_blk->footer.ino) { in sanity_check_nid() 227 nid, le32_to_cpu(node_blk->footer.nid), in sanity_check_nid() 228 le32_to_cpu(node_blk->footer.ino)); in sanity_check_nid() 232 node_blk->footer.nid == node_blk->footer.ino) { in sanity_check_nid() 234 nid, le32_to_cpu(node_blk->footer.nid), in sanity_check_nid() 235 le32_to_cpu(node_blk->footer.ino)); in sanity_check_nid() 239 if (le32_to_cpu(node_blk->footer.nid) != nid) { in sanity_check_nid() 242 le32_to_cpu(node_blk->footer.nid)); in sanity_check_nid() [all …]
|
D | f2fs.h | 195 static inline void *inline_data_addr(struct f2fs_node *node_blk) in inline_data_addr() argument 197 return (void *)&(node_blk->i.i_addr[1]); in inline_data_addr() 200 static inline unsigned int ofs_of_node(struct f2fs_node *node_blk) in ofs_of_node() argument 202 unsigned flag = le32_to_cpu(node_blk->footer.flag); in ofs_of_node()
|
D | mount.c | 622 struct f2fs_node *node_blk; in restore_node_summary() local 628 node_blk = malloc(F2FS_BLKSIZE); in restore_node_summary() 629 ASSERT(node_blk); in restore_node_summary() 636 ret = dev_read_block(node_blk, addr); in restore_node_summary() 638 sum_entry->nid = node_blk->footer.nid; in restore_node_summary() 641 free(node_blk); in restore_node_summary()
|