Home
last modified time | relevance | path

Searched refs:node_page (Results 1 – 9 of 9) sorted by relevance

/linux-4.19.296/fs/f2fs/
Dinode.c198 static bool sanity_check_inode(struct inode *inode, struct page *node_page) in sanity_check_inode() argument
204 iblocks = le64_to_cpu(F2FS_INODE(node_page)->i_blocks); in sanity_check_inode()
214 if (ino_of_node(node_page) != nid_of_node(node_page)) { in sanity_check_inode()
220 ino_of_node(node_page), nid_of_node(node_page)); in sanity_check_inode()
297 struct page *node_page; in do_read_inode() local
306 node_page = f2fs_get_node_page(sbi, inode->i_ino); in do_read_inode()
307 if (IS_ERR(node_page)) in do_read_inode()
308 return PTR_ERR(node_page); in do_read_inode()
310 ri = F2FS_INODE(node_page); in do_read_inode()
339 set_page_dirty(node_page); in do_read_inode()
[all …]
Dnode.h239 static inline nid_t ino_of_node(struct page *node_page) in ino_of_node() argument
241 struct f2fs_node *rn = F2FS_NODE(node_page); in ino_of_node()
245 static inline nid_t nid_of_node(struct page *node_page) in nid_of_node() argument
247 struct f2fs_node *rn = F2FS_NODE(node_page); in nid_of_node()
251 static inline unsigned int ofs_of_node(struct page *node_page) in ofs_of_node() argument
253 struct f2fs_node *rn = F2FS_NODE(node_page); in ofs_of_node()
258 static inline __u64 cpver_of_node(struct page *node_page) in cpver_of_node() argument
260 struct f2fs_node *rn = F2FS_NODE(node_page); in cpver_of_node()
264 static inline block_t next_blkaddr_of_node(struct page *node_page) in next_blkaddr_of_node() argument
266 struct f2fs_node *rn = F2FS_NODE(node_page); in next_blkaddr_of_node()
[all …]
Drecovery.c364 struct page *sum_page, *node_page; in check_index_in_prev_nodes() local
396 tdn.node_page = dn->inode_page; in check_index_in_prev_nodes()
405 node_page = f2fs_get_node_page(sbi, nid); in check_index_in_prev_nodes()
406 if (IS_ERR(node_page)) in check_index_in_prev_nodes()
407 return PTR_ERR(node_page); in check_index_in_prev_nodes()
409 offset = ofs_of_node(node_page); in check_index_in_prev_nodes()
410 ino = ino_of_node(node_page); in check_index_in_prev_nodes()
411 f2fs_put_page(node_page, 1); in check_index_in_prev_nodes()
456 if (datablock_addr(tdn.inode, tdn.node_page, in check_index_in_prev_nodes()
507 f2fs_wait_on_page_writeback(dn.node_page, NODE, true); in do_recover_data()
[all …]
Dgc.c485 struct page *node_page; in gc_node_segment() local
507 node_page = f2fs_get_node_page(sbi, nid); in gc_node_segment()
508 if (IS_ERR(node_page)) in gc_node_segment()
513 f2fs_put_page(node_page, 1); in gc_node_segment()
518 f2fs_put_page(node_page, 1); in gc_node_segment()
523 f2fs_put_page(node_page, 1); in gc_node_segment()
527 f2fs_move_node_page(node_page, gc_type); in gc_node_segment()
568 struct page *node_page; in is_alive() local
576 node_page = f2fs_get_node_page(sbi, nid); in is_alive()
577 if (IS_ERR(node_page)) in is_alive()
[all …]
Dnode.c805 dn->node_page = npage[level]; in f2fs_get_dnode_of_data()
807 dn->node_page, dn->ofs_in_node); in f2fs_get_dnode_of_data()
816 dn->node_page = NULL; in f2fs_get_dnode_of_data()
847 clear_node_page_dirty(dn->node_page); in truncate_node()
850 index = dn->node_page->index; in truncate_node()
851 f2fs_put_page(dn->node_page, 1); in truncate_node()
856 dn->node_page = NULL; in truncate_node()
878 dn->node_page = page; in truncate_dnode()
950 dn->node_page = page; in truncate_nodes()
1009 dn->node_page = pages[idx]; in truncate_partial_nodes()
[all …]
Dfile.c415 end_offset = ADDRS_PER_PAGE(dn.node_page, inode); in f2fs_seek_block()
424 dn.node_page, dn.ofs_in_node); in f2fs_seek_block()
513 if (IS_INODE(dn->node_page) && f2fs_has_extra_attr(dn->inode)) in f2fs_truncate_data_blocks_range()
516 raw_node = F2FS_NODE(dn->node_page); in f2fs_truncate_data_blocks_range()
533 if (dn->ofs_in_node == 0 && IS_INODE(dn->node_page)) in f2fs_truncate_data_blocks_range()
544 fofs = f2fs_start_bidx_of_node(ofs_of_node(dn->node_page), in f2fs_truncate_data_blocks_range()
635 count = ADDRS_PER_PAGE(dn.node_page, inode); in f2fs_truncate_blocks()
640 if (dn.ofs_in_node || IS_INODE(dn.node_page)) { in f2fs_truncate_blocks()
912 end_offset = ADDRS_PER_PAGE(dn.node_page, inode); in f2fs_truncate_hole()
1006 done = min((pgoff_t)ADDRS_PER_PAGE(dn.node_page, inode) - in __read_out_blkaddrs()
[all …]
Ddata.c608 struct f2fs_node *rn = F2FS_NODE(dn->node_page); in __set_data_blkaddr()
612 if (IS_INODE(dn->node_page) && f2fs_has_extra_attr(dn->inode)) in __set_data_blkaddr()
628 f2fs_wait_on_page_writeback(dn->node_page, NODE, true); in f2fs_set_data_blkaddr()
630 if (set_page_dirty(dn->node_page)) in f2fs_set_data_blkaddr()
658 f2fs_wait_on_page_writeback(dn->node_page, NODE, true); in f2fs_reserve_new_blocks()
662 dn->node_page, dn->ofs_in_node); in f2fs_reserve_new_blocks()
670 if (set_page_dirty(dn->node_page)) in f2fs_reserve_new_blocks()
903 dn->node_page, dn->ofs_in_node); in __allocate_data_block()
1066 end_offset = ADDRS_PER_PAGE(dn.node_page, inode); in f2fs_map_blocks()
1069 blkaddr = datablock_addr(dn.inode, dn.node_page, dn.ofs_in_node); in f2fs_map_blocks()
Df2fs.h826 struct page *node_page; /* cached direct node page */ member
842 dn->node_page = npage; in set_new_dnode()
2071 if (dn->node_page) in f2fs_put_dnode()
2072 f2fs_put_page(dn->node_page, 1); in f2fs_put_dnode()
2073 if (dn->inode_page && dn->node_page != dn->inode_page) in f2fs_put_dnode()
2075 dn->node_page = NULL; in f2fs_put_dnode()
2145 struct page *node_page, unsigned int offset) in datablock_addr() argument
2150 bool is_inode = IS_INODE(node_page); in datablock_addr()
2152 raw_node = F2FS_NODE(node_page); in datablock_addr()
2803 void f2fs_update_inode(struct inode *inode, struct page *node_page);
[all …]
Dextent_cache.c789 fofs = f2fs_start_bidx_of_node(ofs_of_node(dn->node_page), dn->inode) + in f2fs_update_extent_cache()