Lines Matching refs:dn
145 int f2fs_convert_inline_page(struct dnode_of_data *dn, struct page *page) in f2fs_convert_inline_page() argument
148 .sbi = F2FS_I_SB(dn->inode), in f2fs_convert_inline_page()
149 .ino = dn->inode->i_ino, in f2fs_convert_inline_page()
160 if (!f2fs_exist_data(dn->inode)) in f2fs_convert_inline_page()
163 err = f2fs_reserve_block(dn, 0); in f2fs_convert_inline_page()
167 err = f2fs_get_node_info(fio.sbi, dn->nid, &ni, false); in f2fs_convert_inline_page()
169 f2fs_truncate_data_blocks_range(dn, 1); in f2fs_convert_inline_page()
170 f2fs_put_dnode(dn); in f2fs_convert_inline_page()
176 if (unlikely(dn->data_blkaddr != NEW_ADDR)) { in f2fs_convert_inline_page()
177 f2fs_put_dnode(dn); in f2fs_convert_inline_page()
180 __func__, dn->inode->i_ino, dn->data_blkaddr); in f2fs_convert_inline_page()
186 f2fs_do_read_inline_data(page, dn->inode_page); in f2fs_convert_inline_page()
195 fio.old_blkaddr = dn->data_blkaddr; in f2fs_convert_inline_page()
196 set_inode_flag(dn->inode, FI_HOT_DATA); in f2fs_convert_inline_page()
197 f2fs_outplace_write_data(dn, &fio); in f2fs_convert_inline_page()
200 inode_dec_dirty_pages(dn->inode); in f2fs_convert_inline_page()
201 f2fs_remove_dirty_inode(dn->inode); in f2fs_convert_inline_page()
205 set_inode_flag(dn->inode, FI_APPEND_WRITE); in f2fs_convert_inline_page()
208 f2fs_truncate_inline_inode(dn->inode, dn->inode_page, 0); in f2fs_convert_inline_page()
209 clear_page_private_inline(dn->inode_page); in f2fs_convert_inline_page()
211 stat_dec_inline_inode(dn->inode); in f2fs_convert_inline_page()
212 clear_inode_flag(dn->inode, FI_INLINE_DATA); in f2fs_convert_inline_page()
213 f2fs_put_dnode(dn); in f2fs_convert_inline_page()
220 struct dnode_of_data dn; in f2fs_convert_inline_inode() local
244 set_new_dnode(&dn, inode, ipage, ipage, 0); in f2fs_convert_inline_inode()
247 err = f2fs_convert_inline_page(&dn, page); in f2fs_convert_inline_inode()
249 f2fs_put_dnode(&dn); in f2fs_convert_inline_inode()
256 f2fs_balance_fs(sbi, dn.node_changed); in f2fs_convert_inline_inode()
263 struct dnode_of_data dn; in f2fs_write_inline_data() local
266 set_new_dnode(&dn, inode, NULL, NULL, 0); in f2fs_write_inline_data()
267 err = f2fs_get_dnode_of_data(&dn, 0, LOOKUP_NODE); in f2fs_write_inline_data()
272 f2fs_put_dnode(&dn); in f2fs_write_inline_data()
278 f2fs_wait_on_page_writeback(dn.inode_page, NODE, true, true); in f2fs_write_inline_data()
279 memcpy_from_page(inline_data_addr(inode, dn.inode_page), in f2fs_write_inline_data()
281 set_page_dirty(dn.inode_page); in f2fs_write_inline_data()
288 clear_page_private_inline(dn.inode_page); in f2fs_write_inline_data()
289 f2fs_put_dnode(&dn); in f2fs_write_inline_data()
412 struct dnode_of_data dn; in f2fs_move_inline_dirents() local
423 set_new_dnode(&dn, dir, ipage, NULL, 0); in f2fs_move_inline_dirents()
424 err = f2fs_reserve_block(&dn, 0); in f2fs_move_inline_dirents()
428 if (unlikely(dn.data_blkaddr != NEW_ADDR)) { in f2fs_move_inline_dirents()
429 f2fs_put_dnode(&dn); in f2fs_move_inline_dirents()
432 __func__, dir->i_ino, dn.data_blkaddr); in f2fs_move_inline_dirents()