Lines Matching refs:dn

65 				struct dnode_of_data *dn, int type)  in new_data_block()  argument
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()
80 get_node_info(sbi, dn->nid, &ni); in new_data_block()
81 set_summary(&sum, dn->nid, dn->ofs_in_node, ni.version); in new_data_block()
82 reserve_new_block(sbi, &dn->data_blkaddr, &sum, type); in new_data_block()
85 inc_inode_blocks(dn); in new_data_block()
87 dn->idirty = 1; in new_data_block()
88 set_data_blkaddr(dn); in new_data_block()
95 struct dnode_of_data dn; in f2fs_read() local
107 memset(&dn, 0, sizeof(dn)); in f2fs_read()
131 set_new_dnode(&dn, inode, NULL, ino); in f2fs_read()
132 get_dnode_of_data(sbi, &dn, F2FS_BYTES_TO_BLK(offset), in f2fs_read()
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()
165 dn.ofs_in_node++; in f2fs_read()
178 struct dnode_of_data dn; in f2fs_write() local
206 set_new_dnode(&dn, inode, NULL, ino); in f2fs_write()
207 err = get_dnode_of_data(sbi, &dn, in f2fs_write()
211 idirty |= dn.idirty; in f2fs_write()
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()
223 &dn, CURSEG_WARM_DATA); in f2fs_write()
226 blkaddr = dn.data_blkaddr; in f2fs_write()
249 dn.ofs_in_node++; in f2fs_write()
250 if ((--remained_blkentries == 0 || count == 0) && (dn.ndirty)) in f2fs_write()
251 ASSERT(dev_write_block(dn.node_blk, dn.node_blkaddr) >= 0); in f2fs_write()
258 ASSERT(inode == dn.inode_blk); in f2fs_write()