Lines Matching refs:node_page
279 static bool sanity_check_inode(struct inode *inode, struct page *node_page) in sanity_check_inode() argument
283 struct f2fs_inode *ri = F2FS_INODE(node_page); in sanity_check_inode()
286 iblocks = le64_to_cpu(F2FS_INODE(node_page)->i_blocks); in sanity_check_inode()
293 if (ino_of_node(node_page) != nid_of_node(node_page)) { in sanity_check_inode()
296 ino_of_node(node_page), nid_of_node(node_page)); in sanity_check_inode()
398 struct page *node_page; in do_read_inode() local
407 node_page = f2fs_get_node_page(sbi, inode->i_ino); in do_read_inode()
408 if (IS_ERR(node_page)) in do_read_inode()
409 return PTR_ERR(node_page); in do_read_inode()
411 ri = F2FS_INODE(node_page); in do_read_inode()
462 if (!sanity_check_inode(inode, node_page)) { in do_read_inode()
463 f2fs_put_page(node_page, 1); in do_read_inode()
471 __recover_inline_status(inode, node_page); in do_read_inode()
474 if (!S_ISDIR(inode->i_mode) && !is_cold_node(node_page)) { in do_read_inode()
475 f2fs_wait_on_page_writeback(node_page, NODE, true, true); in do_read_inode()
476 set_cold_node(node_page, false); in do_read_inode()
477 set_page_dirty(node_page); in do_read_inode()
486 f2fs_put_page(node_page, 1); in do_read_inode()
535 f2fs_init_read_extent_tree(inode, node_page); in do_read_inode()
539 f2fs_put_page(node_page, 1); in do_read_inode()
544 f2fs_put_page(node_page, 1); in do_read_inode()
669 void f2fs_update_inode(struct inode *inode, struct page *node_page) in f2fs_update_inode() argument
674 f2fs_wait_on_page_writeback(node_page, NODE, true, true); in f2fs_update_inode()
675 set_page_dirty(node_page); in f2fs_update_inode()
679 ri = F2FS_INODE(node_page); in f2fs_update_inode()
768 clear_page_private_inline(node_page); in f2fs_update_inode()
772 f2fs_inode_chksum_set(F2FS_I_SB(inode), node_page); in f2fs_update_inode()
779 struct page *node_page; in f2fs_update_inode_page() local
782 node_page = f2fs_get_node_page(sbi, inode->i_ino); in f2fs_update_inode_page()
783 if (IS_ERR(node_page)) { in f2fs_update_inode_page()
784 int err = PTR_ERR(node_page); in f2fs_update_inode_page()
795 f2fs_update_inode(inode, node_page); in f2fs_update_inode_page()
796 f2fs_put_page(node_page, 1); in f2fs_update_inode_page()