• Home
  • Raw
  • Download

Lines Matching refs:node_blk

1822 	struct f2fs_node *node_blk;  in restore_node_summary()  local
1828 node_blk = malloc(F2FS_BLKSIZE); in restore_node_summary()
1829 ASSERT(node_blk); in restore_node_summary()
1836 ret = dev_read_block(node_blk, addr); in restore_node_summary()
1838 sum_entry->nid = node_blk->footer.nid; in restore_node_summary()
1841 free(node_blk); in restore_node_summary()
2198 struct f2fs_node *node_blk = NULL; in update_data_blkaddr() local
2203 node_blk = (struct f2fs_node *)calloc(BLOCK_SZ, 1); in update_data_blkaddr()
2204 ASSERT(node_blk); in update_data_blkaddr()
2209 ret = dev_read_block(node_blk, ni.blk_addr); in update_data_blkaddr()
2213 if (node_blk->footer.nid == node_blk->footer.ino) { in update_data_blkaddr()
2214 int ofs = get_extra_isize(node_blk); in update_data_blkaddr()
2216 oldaddr = le32_to_cpu(node_blk->i.i_addr[ofs + ofs_in_node]); in update_data_blkaddr()
2217 node_blk->i.i_addr[ofs + ofs_in_node] = cpu_to_le32(newaddr); in update_data_blkaddr()
2218 ret = write_inode(node_blk, ni.blk_addr); in update_data_blkaddr()
2221 oldaddr = le32_to_cpu(node_blk->dn.addr[ofs_in_node]); in update_data_blkaddr()
2222 node_blk->dn.addr[ofs_in_node] = cpu_to_le32(newaddr); in update_data_blkaddr()
2223 ret = dev_write_block(node_blk, ni.blk_addr); in update_data_blkaddr()
2228 if (node_blk->footer.nid != node_blk->footer.ino) { in update_data_blkaddr()
2229 get_node_info(sbi, le32_to_cpu(node_blk->footer.ino), &ni); in update_data_blkaddr()
2232 ret = dev_read_block(node_blk, ni.blk_addr); in update_data_blkaddr()
2236 startaddr = le32_to_cpu(node_blk->i.i_ext.blk_addr); in update_data_blkaddr()
2237 endaddr = startaddr + le32_to_cpu(node_blk->i.i_ext.len); in update_data_blkaddr()
2239 node_blk->i.i_ext.len = 0; in update_data_blkaddr()
2242 ASSERT(write_inode(node_blk, ni.blk_addr) >= 0); in update_data_blkaddr()
2244 free(node_blk); in update_data_blkaddr()
3275 struct f2fs_node *node_blk; in find_fsync_inode() local
3286 node_blk = calloc(F2FS_BLKSIZE, 1); in find_fsync_inode()
3287 ASSERT(node_blk); in find_fsync_inode()
3295 err = dev_read_block(node_blk, blkaddr); in find_fsync_inode()
3299 if (!is_recoverable_dnode(sbi, node_blk)) in find_fsync_inode()
3302 if (!is_fsync_dnode(node_blk)) in find_fsync_inode()
3305 entry = get_fsync_inode(head, ino_of_node(node_blk)); in find_fsync_inode()
3307 entry = add_fsync_inode(head, ino_of_node(node_blk)); in find_fsync_inode()
3315 if (IS_INODE(node_blk) && is_dent_dnode(node_blk)) in find_fsync_inode()
3320 blkaddr == next_blkaddr_of_node(node_blk)) { in find_fsync_inode()
3323 next_blkaddr_of_node(node_blk)); in find_fsync_inode()
3328 blkaddr = next_blkaddr_of_node(node_blk); in find_fsync_inode()
3331 free(node_blk); in find_fsync_inode()
3336 struct f2fs_node *node_blk, in do_record_fsync_data() argument
3365 ino_of_node(node_blk), ofs_of_node(node_blk), blkaddr); in do_record_fsync_data()
3368 if (IS_INODE(node_blk) && (node_blk->i.i_inline & F2FS_INLINE_DATA)) in do_record_fsync_data()
3371 if (ofs_of_node(node_blk) == XATTR_NODE_OFFSET) in do_record_fsync_data()
3375 start = start_bidx_of_node(ofs_of_node(node_blk), node_blk); in do_record_fsync_data()
3376 end = start + ADDRS_PER_PAGE(sbi, node_blk, NULL); in do_record_fsync_data()
3379 blkaddr = datablock_addr(node_blk, ofs_in_node); in do_record_fsync_data()
3405 ino_of_node(node_blk), ofs_of_node(node_blk), blkaddr); in do_record_fsync_data()
3411 ino_of_node(node_blk), ofs_of_node(node_blk), in do_record_fsync_data()
3420 struct f2fs_node *node_blk; in traverse_dnodes() local
3428 node_blk = calloc(F2FS_BLKSIZE, 1); in traverse_dnodes()
3429 ASSERT(node_blk); in traverse_dnodes()
3437 err = dev_read_block(node_blk, blkaddr); in traverse_dnodes()
3441 if (!is_recoverable_dnode(sbi, node_blk)) in traverse_dnodes()
3445 ino_of_node(node_blk)); in traverse_dnodes()
3449 err = do_record_fsync_data(sbi, node_blk, blkaddr); in traverse_dnodes()
3456 blkaddr = next_blkaddr_of_node(node_blk); in traverse_dnodes()
3459 free(node_blk); in traverse_dnodes()