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()
147 __func__, dn->inode->i_ino, dn->data_blkaddr); in f2fs_convert_inline_page()
153 f2fs_do_read_inline_data(page, dn->inode_page); in f2fs_convert_inline_page()
162 fio.old_blkaddr = dn->data_blkaddr; in f2fs_convert_inline_page()
163 set_inode_flag(dn->inode, FI_HOT_DATA); in f2fs_convert_inline_page()
164 f2fs_outplace_write_data(dn, &fio); in f2fs_convert_inline_page()
167 inode_dec_dirty_pages(dn->inode); in f2fs_convert_inline_page()
168 f2fs_remove_dirty_inode(dn->inode); in f2fs_convert_inline_page()
172 set_inode_flag(dn->inode, FI_APPEND_WRITE); in f2fs_convert_inline_page()
175 f2fs_truncate_inline_inode(dn->inode, dn->inode_page, 0); in f2fs_convert_inline_page()
176 clear_page_private_inline(dn->inode_page); in f2fs_convert_inline_page()
178 stat_dec_inline_inode(dn->inode); in f2fs_convert_inline_page()
179 clear_inode_flag(dn->inode, FI_INLINE_DATA); in f2fs_convert_inline_page()
180 f2fs_put_dnode(dn); in f2fs_convert_inline_page()
187 struct dnode_of_data dn; in f2fs_convert_inline_inode() local
211 set_new_dnode(&dn, inode, ipage, ipage, 0); in f2fs_convert_inline_inode()
214 err = f2fs_convert_inline_page(&dn, page); in f2fs_convert_inline_inode()
216 f2fs_put_dnode(&dn); in f2fs_convert_inline_inode()
223 f2fs_balance_fs(sbi, dn.node_changed); in f2fs_convert_inline_inode()
231 struct dnode_of_data dn; in f2fs_write_inline_data() local
234 set_new_dnode(&dn, inode, NULL, NULL, 0); in f2fs_write_inline_data()
235 err = f2fs_get_dnode_of_data(&dn, 0, LOOKUP_NODE); in f2fs_write_inline_data()
240 f2fs_put_dnode(&dn); in f2fs_write_inline_data()
246 f2fs_wait_on_page_writeback(dn.inode_page, NODE, true, true); in f2fs_write_inline_data()
248 dst_addr = inline_data_addr(inode, dn.inode_page); in f2fs_write_inline_data()
251 set_page_dirty(dn.inode_page); in f2fs_write_inline_data()
258 clear_page_private_inline(dn.inode_page); in f2fs_write_inline_data()
259 f2fs_put_dnode(&dn); in f2fs_write_inline_data()
382 struct dnode_of_data dn; in f2fs_move_inline_dirents() local
393 set_new_dnode(&dn, dir, ipage, NULL, 0); in f2fs_move_inline_dirents()
394 err = f2fs_reserve_block(&dn, 0); in f2fs_move_inline_dirents()
398 if (unlikely(dn.data_blkaddr != NEW_ADDR)) { in f2fs_move_inline_dirents()
399 f2fs_put_dnode(&dn); in f2fs_move_inline_dirents()
402 __func__, dir->i_ino, dn.data_blkaddr); in f2fs_move_inline_dirents()