Lines Matching refs:dn
43 void set_data_blkaddr(struct dnode_of_data *dn) in set_data_blkaddr() argument
46 struct f2fs_node *node_blk = dn->node_blk; in set_data_blkaddr()
47 unsigned int ofs_in_node = dn->ofs_in_node; in set_data_blkaddr()
50 addr_array[ofs_in_node] = cpu_to_le32(dn->data_blkaddr); in set_data_blkaddr()
51 if (dn->node_blk != dn->inode_blk) in set_data_blkaddr()
52 dn->ndirty = 1; in set_data_blkaddr()
54 dn->idirty = 1; in set_data_blkaddr()
62 struct dnode_of_data *dn, unsigned int ofs) in new_node_block() argument
73 f2fs_inode = dn->inode_blk; in new_node_block()
78 node_blk->footer.nid = cpu_to_le32(dn->nid); in new_node_block()
92 get_node_info(sbi, dn->nid, &ni); in new_node_block()
93 set_summary(&sum, dn->nid, 0, ni.version); in new_node_block()
102 dn->nid, blkaddr); in new_node_block()
104 dn->node_blk = node_blk; in new_node_block()
105 inc_inode_blocks(dn); in new_node_block()
191 int get_dnode_of_data(struct f2fs_sb_info *sbi, struct dnode_of_data *dn, in get_dnode_of_data() argument
203 level = get_node_path(dn->inode_blk, index, offset, noffset); in get_dnode_of_data()
205 nids[0] = dn->nid; in get_dnode_of_data()
206 parent = dn->inode_blk; in get_dnode_of_data()
210 dn->node_blk = dn->inode_blk; in get_dnode_of_data()
219 dn->nid = nids[i]; in get_dnode_of_data()
223 nblk[i] = new_node_block(sbi, dn, noffset[i]); in get_dnode_of_data()
236 dn->node_blk = calloc(BLOCK_SZ, 1); in get_dnode_of_data()
237 ASSERT(dn->node_blk); in get_dnode_of_data()
239 ret = dev_read_block(dn->node_blk, ni.blk_addr); in get_dnode_of_data()
254 parent = dn->node_blk; in get_dnode_of_data()
259 dn->nid = nids[level]; in get_dnode_of_data()
260 dn->ofs_in_node = offset[level]; in get_dnode_of_data()
261 dn->data_blkaddr = datablock_addr(dn->node_blk, dn->ofs_in_node); in get_dnode_of_data()
262 dn->node_blkaddr = nblk[level]; in get_dnode_of_data()