Lines Matching refs:node_blk
69 unsigned int blkaddr = datablock_addr(dn->node_blk, dn->ofs_in_node); in new_data_block()
77 ASSERT(dn->node_blk); in new_data_block()
136 index_node = (dn.node_blk == dn.inode_blk) ? in f2fs_read()
137 NULL : dn.node_blk; in f2fs_read()
138 remained_blkentries = ADDRS_PER_PAGE(dn.node_blk); in f2fs_read()
142 blkaddr = datablock_addr(dn.node_blk, dn.ofs_in_node); in f2fs_read()
214 index_node = (dn.node_blk == dn.inode_blk) ? in f2fs_write()
215 NULL : dn.node_blk; in f2fs_write()
216 remained_blkentries = ADDRS_PER_PAGE(dn.node_blk); in f2fs_write()
220 blkaddr = datablock_addr(dn.node_blk, dn.ofs_in_node); in f2fs_write()
251 ASSERT(dev_write_block(dn.node_blk, dn.node_blkaddr) >= 0); in f2fs_write()
306 struct f2fs_node *node_blk; in f2fs_build_file() local
311 node_blk = calloc(BLOCK_SZ, 1); in f2fs_build_file()
312 ASSERT(node_blk); in f2fs_build_file()
314 ret = dev_read_block(node_blk, ni.blk_addr); in f2fs_build_file()
317 node_blk->i.i_inline |= F2FS_INLINE_DATA; in f2fs_build_file()
318 node_blk->i.i_inline |= F2FS_DATA_EXIST; in f2fs_build_file()
321 node_blk->i.i_inline |= F2FS_EXTRA_ATTR; in f2fs_build_file()
322 node_blk->i.i_extra_isize = in f2fs_build_file()
327 memcpy(inline_data_addr(node_blk), buffer, de->size); in f2fs_build_file()
328 node_blk->i.i_size = cpu_to_le64(de->size); in f2fs_build_file()
329 write_inode(ni.blk_addr, node_blk); in f2fs_build_file()
330 free(node_blk); in f2fs_build_file()