Lines Matching refs:dentry_page
198 struct page *dentry_page, in find_in_block() argument
205 dentry_blk = (struct f2fs_dentry_block *)page_address(dentry_page); in find_in_block()
340 struct page *dentry_page; in find_in_level() local
354 dentry_page = f2fs_find_data_page(dir, bidx); in find_in_level()
355 if (IS_ERR(dentry_page)) { in find_in_level()
356 if (PTR_ERR(dentry_page) == -ENOENT) { in find_in_level()
360 *res_page = dentry_page; in find_in_level()
365 de = find_in_block(dir, dentry_page, fname, &max_slots); in find_in_level()
371 *res_page = dentry_page; in find_in_level()
377 f2fs_put_page(dentry_page, 0); in find_in_level()
543 struct page *dentry_page; in make_empty_dir() local
550 dentry_page = f2fs_get_new_data_page(inode, page, 0, true); in make_empty_dir()
551 if (IS_ERR(dentry_page)) in make_empty_dir()
552 return PTR_ERR(dentry_page); in make_empty_dir()
554 dentry_blk = page_address(dentry_page); in make_empty_dir()
559 set_page_dirty(dentry_page); in make_empty_dir()
560 f2fs_put_page(dentry_page, 1); in make_empty_dir()
714 struct page *dentry_page = NULL; in f2fs_add_regular_entry() local
749 dentry_page = f2fs_get_new_data_page(dir, NULL, block, true); in f2fs_add_regular_entry()
750 if (IS_ERR(dentry_page)) in f2fs_add_regular_entry()
751 return PTR_ERR(dentry_page); in f2fs_add_regular_entry()
753 dentry_blk = page_address(dentry_page); in f2fs_add_regular_entry()
759 f2fs_put_page(dentry_page, 1); in f2fs_add_regular_entry()
766 f2fs_wait_on_page_writeback(dentry_page, DATA, true, true); in f2fs_add_regular_entry()
781 set_page_dirty(dentry_page); in f2fs_add_regular_entry()
798 f2fs_put_page(dentry_page, 1); in f2fs_add_regular_entry()
959 struct page *dentry_page; in f2fs_empty_dir() local
968 dentry_page = f2fs_get_lock_data_page(dir, bidx, false); in f2fs_empty_dir()
969 if (IS_ERR(dentry_page)) { in f2fs_empty_dir()
970 if (PTR_ERR(dentry_page) == -ENOENT) in f2fs_empty_dir()
976 dentry_blk = page_address(dentry_page); in f2fs_empty_dir()
985 f2fs_put_page(dentry_page, 1); in f2fs_empty_dir()
1082 struct page *dentry_page = NULL; in f2fs_readdir() local
1119 dentry_page = f2fs_find_data_page(inode, n); in f2fs_readdir()
1120 if (IS_ERR(dentry_page)) { in f2fs_readdir()
1121 err = PTR_ERR(dentry_page); in f2fs_readdir()
1130 dentry_blk = page_address(dentry_page); in f2fs_readdir()
1137 f2fs_put_page(dentry_page, 0); in f2fs_readdir()
1141 f2fs_put_page(dentry_page, 0); in f2fs_readdir()