• Home
  • Raw
  • Download

Lines Matching refs:node_blk

1455 	struct f2fs_node *node_blk;  in restore_node_summary()  local
1461 node_blk = malloc(F2FS_BLKSIZE); in restore_node_summary()
1462 ASSERT(node_blk); in restore_node_summary()
1469 ret = dev_read_block(node_blk, addr); in restore_node_summary()
1471 sum_entry->nid = node_blk->footer.nid; in restore_node_summary()
1474 free(node_blk); in restore_node_summary()
1797 struct f2fs_node *node_blk = NULL; in update_data_blkaddr() local
1802 node_blk = (struct f2fs_node *)calloc(BLOCK_SZ, 1); in update_data_blkaddr()
1803 ASSERT(node_blk); in update_data_blkaddr()
1808 ret = dev_read_block(node_blk, ni.blk_addr); in update_data_blkaddr()
1812 if (node_blk->footer.nid == node_blk->footer.ino) { in update_data_blkaddr()
1813 int ofs = get_extra_isize(node_blk); in update_data_blkaddr()
1815 oldaddr = le32_to_cpu(node_blk->i.i_addr[ofs + ofs_in_node]); in update_data_blkaddr()
1816 node_blk->i.i_addr[ofs + ofs_in_node] = cpu_to_le32(newaddr); in update_data_blkaddr()
1818 oldaddr = le32_to_cpu(node_blk->dn.addr[ofs_in_node]); in update_data_blkaddr()
1819 node_blk->dn.addr[ofs_in_node] = cpu_to_le32(newaddr); in update_data_blkaddr()
1822 ret = dev_write_block(node_blk, ni.blk_addr); in update_data_blkaddr()
1826 if (node_blk->footer.nid != node_blk->footer.ino) { in update_data_blkaddr()
1827 get_node_info(sbi, le32_to_cpu(node_blk->footer.ino), &ni); in update_data_blkaddr()
1830 ret = dev_read_block(node_blk, ni.blk_addr); in update_data_blkaddr()
1834 startaddr = le32_to_cpu(node_blk->i.i_ext.blk_addr); in update_data_blkaddr()
1835 endaddr = startaddr + le32_to_cpu(node_blk->i.i_ext.len); in update_data_blkaddr()
1837 node_blk->i.i_ext.len = 0; in update_data_blkaddr()
1840 ret = dev_write_block(node_blk, ni.blk_addr); in update_data_blkaddr()
1843 free(node_blk); in update_data_blkaddr()