Lines Matching refs:dn

112 int f2fs_convert_inline_page(struct dnode_of_data *dn, struct page *page)  in f2fs_convert_inline_page()  argument
115 .sbi = F2FS_I_SB(dn->inode), in f2fs_convert_inline_page()
116 .ino = dn->inode->i_ino, in f2fs_convert_inline_page()
127 if (!f2fs_exist_data(dn->inode)) in f2fs_convert_inline_page()
130 err = f2fs_reserve_block(dn, 0); in f2fs_convert_inline_page()
134 err = f2fs_get_node_info(fio.sbi, dn->nid, &ni); in f2fs_convert_inline_page()
136 f2fs_truncate_data_blocks_range(dn, 1); in f2fs_convert_inline_page()
137 f2fs_put_dnode(dn); in f2fs_convert_inline_page()
143 if (unlikely(dn->data_blkaddr != NEW_ADDR)) { in f2fs_convert_inline_page()
144 f2fs_put_dnode(dn); in f2fs_convert_inline_page()
149 __func__, dn->inode->i_ino, dn->data_blkaddr); in f2fs_convert_inline_page()
155 f2fs_do_read_inline_data(page, dn->inode_page); in f2fs_convert_inline_page()
164 fio.old_blkaddr = dn->data_blkaddr; in f2fs_convert_inline_page()
165 set_inode_flag(dn->inode, FI_HOT_DATA); in f2fs_convert_inline_page()
166 f2fs_outplace_write_data(dn, &fio); in f2fs_convert_inline_page()
169 inode_dec_dirty_pages(dn->inode); in f2fs_convert_inline_page()
170 f2fs_remove_dirty_inode(dn->inode); in f2fs_convert_inline_page()
174 set_inode_flag(dn->inode, FI_APPEND_WRITE); in f2fs_convert_inline_page()
177 f2fs_truncate_inline_inode(dn->inode, dn->inode_page, 0); in f2fs_convert_inline_page()
178 clear_inline_node(dn->inode_page); in f2fs_convert_inline_page()
180 stat_dec_inline_inode(dn->inode); in f2fs_convert_inline_page()
181 clear_inode_flag(dn->inode, FI_INLINE_DATA); in f2fs_convert_inline_page()
182 f2fs_put_dnode(dn); in f2fs_convert_inline_page()
189 struct dnode_of_data dn; in f2fs_convert_inline_inode() local
212 set_new_dnode(&dn, inode, ipage, ipage, 0); in f2fs_convert_inline_inode()
215 err = f2fs_convert_inline_page(&dn, page); in f2fs_convert_inline_inode()
217 f2fs_put_dnode(&dn); in f2fs_convert_inline_inode()
224 f2fs_balance_fs(sbi, dn.node_changed); in f2fs_convert_inline_inode()
232 struct dnode_of_data dn; in f2fs_write_inline_data() local
235 set_new_dnode(&dn, inode, NULL, NULL, 0); in f2fs_write_inline_data()
236 err = f2fs_get_dnode_of_data(&dn, 0, LOOKUP_NODE); in f2fs_write_inline_data()
241 f2fs_put_dnode(&dn); in f2fs_write_inline_data()
247 f2fs_wait_on_page_writeback(dn.inode_page, NODE, true); in f2fs_write_inline_data()
249 dst_addr = inline_data_addr(inode, dn.inode_page); in f2fs_write_inline_data()
252 set_page_dirty(dn.inode_page); in f2fs_write_inline_data()
259 clear_inline_node(dn.inode_page); in f2fs_write_inline_data()
260 f2fs_put_dnode(&dn); in f2fs_write_inline_data()
380 struct dnode_of_data dn; in f2fs_move_inline_dirents() local
391 set_new_dnode(&dn, dir, ipage, NULL, 0); in f2fs_move_inline_dirents()
392 err = f2fs_reserve_block(&dn, 0); in f2fs_move_inline_dirents()
396 if (unlikely(dn.data_blkaddr != NEW_ADDR)) { in f2fs_move_inline_dirents()
397 f2fs_put_dnode(&dn); in f2fs_move_inline_dirents()
402 __func__, dir->i_ino, dn.data_blkaddr); in f2fs_move_inline_dirents()