• Home
  • Raw
  • Download

Lines Matching refs:node_blk

110 	unsigned int blkaddr = datablock_addr(dn->node_blk, dn->ofs_in_node);  in new_data_block()
117 ASSERT(dn->node_blk); in new_data_block()
201 index_node = (dn.node_blk == dn.inode_blk) ? in f2fs_read()
202 NULL : dn.node_blk; in f2fs_read()
204 dn.node_blk, dn.inode_blk); in f2fs_read()
208 blkaddr = datablock_addr(dn.node_blk, dn.ofs_in_node); in f2fs_read()
298 index_node = (dn.node_blk == dn.inode_blk) ? in f2fs_write_ex()
299 NULL : dn.node_blk; in f2fs_write_ex()
301 dn.node_blk, dn.inode_blk) - in f2fs_write_ex()
311 ASSERT(dev_write_block(dn.node_blk, in f2fs_write_ex()
317 blkaddr = datablock_addr(dn.node_blk, dn.ofs_in_node); in f2fs_write_ex()
349 ASSERT(dev_write_block(dn.node_blk, dn.node_blkaddr) in f2fs_write_ex()
510 index_node = (dn.node_blk == dn.inode_blk) ? in update_largest_extent()
511 NULL : dn.node_blk; in update_largest_extent()
513 dn.node_blk, dn.inode_blk); in update_largest_extent()
517 blkaddr = datablock_addr(dn.node_blk, dn.ofs_in_node); in update_largest_extent()
561 struct f2fs_node *node_blk; in f2fs_build_file() local
589 node_blk = calloc(BLOCK_SZ, 1); in f2fs_build_file()
590 ASSERT(node_blk); in f2fs_build_file()
592 ret = dev_read_block(node_blk, ni.blk_addr); in f2fs_build_file()
595 node_blk->i.i_inline |= F2FS_INLINE_DATA; in f2fs_build_file()
596 node_blk->i.i_inline |= F2FS_DATA_EXIST; in f2fs_build_file()
599 node_blk->i.i_inline |= F2FS_EXTRA_ATTR; in f2fs_build_file()
600 node_blk->i.i_extra_isize = in f2fs_build_file()
605 memcpy(inline_data_addr(node_blk), buffer, de->size); in f2fs_build_file()
606 node_blk->i.i_size = cpu_to_le64(de->size); in f2fs_build_file()
607 ASSERT(write_inode(node_blk, ni.blk_addr) >= 0); in f2fs_build_file()
608 free(node_blk); in f2fs_build_file()
616 node_blk = calloc(BLOCK_SZ, 1); in f2fs_build_file()
617 ASSERT(node_blk); in f2fs_build_file()
621 ASSERT(dev_read_block(node_blk, ni.blk_addr) >= 0); in f2fs_build_file()
623 node_blk->i.i_compress_algrithm = c.compress.alg; in f2fs_build_file()
624 node_blk->i.i_log_cluster_size = in f2fs_build_file()
626 node_blk->i.i_flags = cpu_to_le32(F2FS_COMPR_FL); in f2fs_build_file()
628 node_blk->i.i_inline |= F2FS_COMPRESS_RELEASED; in f2fs_build_file()
629 ASSERT(write_inode(node_blk, ni.blk_addr) >= 0); in f2fs_build_file()
670 ASSERT(dev_read_block(node_blk, ni.blk_addr) >= 0); in f2fs_build_file()
672 node_blk->i.i_size = cpu_to_le64(off); in f2fs_build_file()
674 node_blk->i.i_compr_blocks = cpu_to_le64(cblocks); in f2fs_build_file()
675 node_blk->i.i_blocks += cpu_to_le64(cblocks); in f2fs_build_file()
677 ASSERT(write_inode(node_blk, ni.blk_addr) >= 0); in f2fs_build_file()
678 free(node_blk); in f2fs_build_file()