Lines Matching refs:dn

131 int f2fs_convert_inline_page(struct dnode_of_data *dn, struct page *page)  in f2fs_convert_inline_page()  argument
134 .sbi = F2FS_I_SB(dn->inode), in f2fs_convert_inline_page()
135 .ino = dn->inode->i_ino, in f2fs_convert_inline_page()
146 if (!f2fs_exist_data(dn->inode)) in f2fs_convert_inline_page()
149 err = f2fs_reserve_block(dn, 0); in f2fs_convert_inline_page()
153 err = f2fs_get_node_info(fio.sbi, dn->nid, &ni, false); in f2fs_convert_inline_page()
155 f2fs_truncate_data_blocks_range(dn, 1); in f2fs_convert_inline_page()
156 f2fs_put_dnode(dn); in f2fs_convert_inline_page()
162 if (unlikely(dn->data_blkaddr != NEW_ADDR)) { in f2fs_convert_inline_page()
163 f2fs_put_dnode(dn); in f2fs_convert_inline_page()
166 __func__, dn->inode->i_ino, dn->data_blkaddr); in f2fs_convert_inline_page()
172 f2fs_do_read_inline_data(page, dn->inode_page); in f2fs_convert_inline_page()
181 fio.old_blkaddr = dn->data_blkaddr; in f2fs_convert_inline_page()
182 set_inode_flag(dn->inode, FI_HOT_DATA); in f2fs_convert_inline_page()
183 f2fs_outplace_write_data(dn, &fio); in f2fs_convert_inline_page()
186 inode_dec_dirty_pages(dn->inode); in f2fs_convert_inline_page()
187 f2fs_remove_dirty_inode(dn->inode); in f2fs_convert_inline_page()
191 set_inode_flag(dn->inode, FI_APPEND_WRITE); in f2fs_convert_inline_page()
194 f2fs_truncate_inline_inode(dn->inode, dn->inode_page, 0); in f2fs_convert_inline_page()
195 clear_page_private_inline(dn->inode_page); in f2fs_convert_inline_page()
197 stat_dec_inline_inode(dn->inode); in f2fs_convert_inline_page()
198 clear_inode_flag(dn->inode, FI_INLINE_DATA); in f2fs_convert_inline_page()
199 f2fs_put_dnode(dn); in f2fs_convert_inline_page()
206 struct dnode_of_data dn; in f2fs_convert_inline_inode() local
230 set_new_dnode(&dn, inode, ipage, ipage, 0); in f2fs_convert_inline_inode()
233 err = f2fs_convert_inline_page(&dn, page); in f2fs_convert_inline_inode()
235 f2fs_put_dnode(&dn); in f2fs_convert_inline_inode()
242 f2fs_balance_fs(sbi, dn.node_changed); in f2fs_convert_inline_inode()
250 struct dnode_of_data dn; in f2fs_write_inline_data() local
253 set_new_dnode(&dn, inode, NULL, NULL, 0); in f2fs_write_inline_data()
254 err = f2fs_get_dnode_of_data(&dn, 0, LOOKUP_NODE); in f2fs_write_inline_data()
259 f2fs_put_dnode(&dn); in f2fs_write_inline_data()
265 f2fs_wait_on_page_writeback(dn.inode_page, NODE, true, true); in f2fs_write_inline_data()
267 dst_addr = inline_data_addr(inode, dn.inode_page); in f2fs_write_inline_data()
270 set_page_dirty(dn.inode_page); in f2fs_write_inline_data()
277 clear_page_private_inline(dn.inode_page); in f2fs_write_inline_data()
278 f2fs_put_dnode(&dn); in f2fs_write_inline_data()
401 struct dnode_of_data dn; in f2fs_move_inline_dirents() local
412 set_new_dnode(&dn, dir, ipage, NULL, 0); in f2fs_move_inline_dirents()
413 err = f2fs_reserve_block(&dn, 0); in f2fs_move_inline_dirents()
417 if (unlikely(dn.data_blkaddr != NEW_ADDR)) { in f2fs_move_inline_dirents()
418 f2fs_put_dnode(&dn); in f2fs_move_inline_dirents()
421 __func__, dir->i_ino, dn.data_blkaddr); in f2fs_move_inline_dirents()