Lines Matching refs:tree_page

1395 					   struct page *tree_page)  in try_to_merge_two_pages()  argument
1402 tree_page, page); in try_to_merge_two_pages()
1440 struct page *_tree_page, *tree_page = NULL; in stable_node_dup() local
1473 put_page(tree_page); in stable_node_dup()
1476 tree_page = _tree_page; in stable_node_dup()
1549 return tree_page; in stable_node_dup()
1613 struct page *tree_page; in chain() local
1615 tree_page = __stable_node_chain(s_n_d, &s_n, root, false); in chain()
1618 return tree_page; in chain()
1653 struct page *tree_page; in stable_tree_search() local
1659 tree_page = chain_prune(&stable_node_dup, &stable_node, root); in stable_tree_search()
1693 tree_page = get_ksm_page(stable_node_any, in stable_tree_search()
1697 if (!tree_page) { in stable_tree_search()
1710 ret = memcmp_pages(page, tree_page); in stable_tree_search()
1711 put_page(tree_page); in stable_tree_search()
1754 tree_page = get_ksm_page(stable_node_dup, in stable_tree_search()
1757 if (PTR_ERR(tree_page) == -EBUSY) in stable_tree_search()
1760 if (unlikely(!tree_page)) in stable_tree_search()
1766 unlock_page(tree_page); in stable_tree_search()
1770 put_page(tree_page); in stable_tree_search()
1773 return tree_page; in stable_tree_search()
1898 struct page *tree_page; in stable_tree_insert() local
1904 tree_page = chain(&stable_node_dup, stable_node, root); in stable_tree_insert()
1926 tree_page = get_ksm_page(stable_node_any, in stable_tree_insert()
1930 if (!tree_page) { in stable_tree_insert()
1943 ret = memcmp_pages(kpage, tree_page); in stable_tree_insert()
1944 put_page(tree_page); in stable_tree_insert()
2015 struct page *tree_page; in unstable_tree_search_insert() local
2020 tree_page = get_mergeable_page(tree_rmap_item); in unstable_tree_search_insert()
2021 if (!tree_page) in unstable_tree_search_insert()
2027 if (page == tree_page) { in unstable_tree_search_insert()
2028 put_page(tree_page); in unstable_tree_search_insert()
2032 ret = memcmp_pages(page, tree_page); in unstable_tree_search_insert()
2036 put_page(tree_page); in unstable_tree_search_insert()
2039 put_page(tree_page); in unstable_tree_search_insert()
2042 page_to_nid(tree_page) != nid) { in unstable_tree_search_insert()
2048 put_page(tree_page); in unstable_tree_search_insert()
2051 *tree_pagep = tree_page; in unstable_tree_search_insert()
2118 struct page *tree_page = NULL; in cmp_and_merge_page() local
2216 unstable_tree_search_insert(rmap_item, page, &tree_page); in cmp_and_merge_page()
2221 tree_rmap_item, tree_page); in cmp_and_merge_page()
2233 && compound_head(page) == compound_head(tree_page); in cmp_and_merge_page()
2234 put_page(tree_page); in cmp_and_merge_page()