• Home
  • Raw
  • Download

Lines Matching refs:dn

102 				struct dnode_of_data *dn, int type)  in new_data_block()  argument
106 unsigned int blkaddr = datablock_addr(dn->node_blk, dn->ofs_in_node); in new_data_block()
109 ASSERT(dn->node_blk); in new_data_block()
112 get_node_info(sbi, dn->nid, &ni); in new_data_block()
113 set_summary(&sum, dn->nid, dn->ofs_in_node, ni.version); in new_data_block()
114 ret = reserve_new_block(sbi, &dn->data_blkaddr, &sum, type, 0); in new_data_block()
121 inc_inode_blocks(dn); in new_data_block()
123 dn->idirty = 1; in new_data_block()
124 set_data_blkaddr(dn); in new_data_block()
150 struct dnode_of_data dn; in f2fs_read() local
162 memset(&dn, 0, sizeof(dn)); in f2fs_read()
186 set_new_dnode(&dn, inode, NULL, ino); in f2fs_read()
187 get_dnode_of_data(sbi, &dn, F2FS_BYTES_TO_BLK(offset), in f2fs_read()
191 index_node = (dn.node_blk == dn.inode_blk) ? in f2fs_read()
192 NULL : dn.node_blk; in f2fs_read()
194 dn.node_blk, dn.inode_blk); in f2fs_read()
198 blkaddr = datablock_addr(dn.node_blk, dn.ofs_in_node); in f2fs_read()
221 dn.ofs_in_node++; in f2fs_read()
234 struct dnode_of_data dn; in f2fs_write() local
262 set_new_dnode(&dn, inode, NULL, ino); in f2fs_write()
263 err = get_dnode_of_data(sbi, &dn, in f2fs_write()
267 idirty |= dn.idirty; in f2fs_write()
270 index_node = (dn.node_blk == dn.inode_blk) ? in f2fs_write()
271 NULL : dn.node_blk; in f2fs_write()
273 dn.node_blk, dn.inode_blk); in f2fs_write()
277 blkaddr = datablock_addr(dn.node_blk, dn.ofs_in_node); in f2fs_write()
280 &dn, CURSEG_WARM_DATA); in f2fs_write()
283 blkaddr = dn.data_blkaddr; in f2fs_write()
306 dn.ofs_in_node++; in f2fs_write()
307 if ((--remained_blkentries == 0 || count == 0) && (dn.ndirty)) in f2fs_write()
308 ASSERT(dev_write_block(dn.node_blk, dn.node_blkaddr) >= 0); in f2fs_write()
315 ASSERT(inode == dn.inode_blk); in f2fs_write()