Lines Matching defs:node_blk
142 struct f2fs_node *node_blk;
167 node_blk = calloc(BLOCK_SZ, 1);
168 dev_read_block(node_blk, ni.blk_addr);
174 le32_to_cpu(node_blk->dn.addr[i]));
178 le32_to_cpu(node_blk->in.nid[i]), ofs);
182 le32_to_cpu(node_blk->in.nid[i]), ofs);
186 free(node_blk);
190 struct f2fs_node *node_blk)
197 if((node_blk->i.i_inline & F2FS_INLINE_DATA)){
200 dev_write_dump(((unsigned char *)node_blk) + INLINE_DATA_OFFSET,
206 for (i = 0; i < ADDRS_PER_INODE(&node_blk->i); i++, ofs++)
208 le32_to_cpu(node_blk->i.i_addr[i]));
214 node_blk->i.i_nid[i], &ofs);
217 node_blk->i.i_nid[i], &ofs);
220 node_blk->i.i_nid[i], &ofs);
227 struct f2fs_node *node_blk)
229 struct f2fs_inode *inode = &node_blk->i;
259 dump_inode_blk(sbi, ni->ino, node_blk);
272 struct f2fs_node *node_blk;
276 node_blk = calloc(BLOCK_SZ, 1);
277 dev_read_block(node_blk, ni.blk_addr);
287 DBG(1, "node_blk.footer.ino [0x%x]\n", le32_to_cpu(node_blk->footer.ino));
288 DBG(1, "node_blk.footer.nid [0x%x]\n", le32_to_cpu(node_blk->footer.nid));
290 if (le32_to_cpu(node_blk->footer.ino) == ni.ino &&
291 le32_to_cpu(node_blk->footer.nid) == ni.nid) {
292 print_node_info(node_blk);
293 dump_file(sbi, &ni, node_blk);
298 free(node_blk);
307 struct f2fs_node *node_blk;
325 node_blk = calloc(BLOCK_SZ, 1);
328 ret = dev_read_block(node_blk, blk_addr);
331 ino = le32_to_cpu(node_blk->footer.ino);
332 nid = le32_to_cpu(node_blk->footer.nid);
335 print_node_info(node_blk);
341 free(node_blk);