Lines Matching refs:dn
127 int f2fs_convert_inline_page(struct dnode_of_data *dn, struct page *page) in f2fs_convert_inline_page() argument
130 .sbi = F2FS_I_SB(dn->inode), in f2fs_convert_inline_page()
131 .ino = dn->inode->i_ino, in f2fs_convert_inline_page()
142 if (!f2fs_exist_data(dn->inode)) in f2fs_convert_inline_page()
145 err = f2fs_reserve_block(dn, 0); in f2fs_convert_inline_page()
149 err = f2fs_get_node_info(fio.sbi, dn->nid, &ni, false); in f2fs_convert_inline_page()
151 f2fs_truncate_data_blocks_range(dn, 1); in f2fs_convert_inline_page()
152 f2fs_put_dnode(dn); in f2fs_convert_inline_page()
158 if (unlikely(dn->data_blkaddr != NEW_ADDR)) { in f2fs_convert_inline_page()
159 f2fs_put_dnode(dn); in f2fs_convert_inline_page()
162 __func__, dn->inode->i_ino, dn->data_blkaddr); in f2fs_convert_inline_page()
169 f2fs_do_read_inline_data(page, dn->inode_page); in f2fs_convert_inline_page()
178 fio.old_blkaddr = dn->data_blkaddr; in f2fs_convert_inline_page()
179 set_inode_flag(dn->inode, FI_HOT_DATA); in f2fs_convert_inline_page()
180 f2fs_outplace_write_data(dn, &fio); in f2fs_convert_inline_page()
183 inode_dec_dirty_pages(dn->inode); in f2fs_convert_inline_page()
184 f2fs_remove_dirty_inode(dn->inode); in f2fs_convert_inline_page()
188 set_inode_flag(dn->inode, FI_APPEND_WRITE); in f2fs_convert_inline_page()
191 f2fs_truncate_inline_inode(dn->inode, dn->inode_page, 0); in f2fs_convert_inline_page()
192 clear_page_private_inline(dn->inode_page); in f2fs_convert_inline_page()
194 stat_dec_inline_inode(dn->inode); in f2fs_convert_inline_page()
195 clear_inode_flag(dn->inode, FI_INLINE_DATA); in f2fs_convert_inline_page()
196 f2fs_put_dnode(dn); in f2fs_convert_inline_page()
203 struct dnode_of_data dn; in f2fs_convert_inline_inode() local
227 set_new_dnode(&dn, inode, ipage, ipage, 0); in f2fs_convert_inline_inode()
230 err = f2fs_convert_inline_page(&dn, page); in f2fs_convert_inline_inode()
232 f2fs_put_dnode(&dn); in f2fs_convert_inline_inode()
239 f2fs_balance_fs(sbi, dn.node_changed); in f2fs_convert_inline_inode()
246 struct dnode_of_data dn; in f2fs_write_inline_data() local
249 set_new_dnode(&dn, inode, NULL, NULL, 0); in f2fs_write_inline_data()
250 err = f2fs_get_dnode_of_data(&dn, 0, LOOKUP_NODE); in f2fs_write_inline_data()
255 f2fs_put_dnode(&dn); in f2fs_write_inline_data()
261 f2fs_wait_on_page_writeback(dn.inode_page, NODE, true, true); in f2fs_write_inline_data()
262 memcpy_from_page(inline_data_addr(inode, dn.inode_page), in f2fs_write_inline_data()
264 set_page_dirty(dn.inode_page); in f2fs_write_inline_data()
271 clear_page_private_inline(dn.inode_page); in f2fs_write_inline_data()
272 f2fs_put_dnode(&dn); in f2fs_write_inline_data()
395 struct dnode_of_data dn; in f2fs_move_inline_dirents() local
406 set_new_dnode(&dn, dir, ipage, NULL, 0); in f2fs_move_inline_dirents()
407 err = f2fs_reserve_block(&dn, 0); in f2fs_move_inline_dirents()
411 if (unlikely(dn.data_blkaddr != NEW_ADDR)) { in f2fs_move_inline_dirents()
412 f2fs_put_dnode(&dn); in f2fs_move_inline_dirents()
415 __func__, dir->i_ino, dn.data_blkaddr); in f2fs_move_inline_dirents()