Lines Matching defs:page

615  * anything that could cause a page-fault.  If the request was already
658 struct page *pg;
672 /* Unmap and put previous page of userspace buffer */
697 struct page *page;
715 cs->pg = buf->page;
724 page = alloc_page(GFP_HIGHUSER);
725 if (!page)
728 buf->page = page;
733 cs->pg = page;
741 err = iov_iter_get_pages(cs->iter, &page, PAGE_SIZE, 1, &off);
747 cs->pg = page;
776 static int fuse_check_page(struct page *page)
778 if (page_mapcount(page) ||
779 page->mapping != NULL ||
780 (page->flags & PAGE_FLAGS_CHECK_AT_PREP &
789 dump_page(page, "fuse: trying to steal weird page");
795 static int fuse_try_move_page(struct fuse_copy_state *cs, struct page **pagep)
798 struct page *oldpage = *pagep;
799 struct page *newpage;
825 newpage = buf->page;
836 * This is a new and locked page, it shouldn't be mapped or
860 * Release while we have extra ref on stolen page. Otherwise
861 * anon_pipe_buf_release() might think the page can be reused.
893 cs->pg = buf->page;
903 static int fuse_ref_page(struct fuse_copy_state *cs, struct page *page,
912 get_page(page);
915 put_page(page);
922 buf->page = page;
934 * Copy a page in the request to/from the userspace buffer. Must be
937 static int fuse_copy_page(struct fuse_copy_state *cs, struct page **pagep,
941 struct page *page = *pagep;
943 if (page && zeroing && count < PAGE_SIZE)
944 clear_highpage(page);
947 if (cs->write && cs->pipebufs && page) {
957 return fuse_ref_page(cs, page, offset, count);
960 if (cs->move_pages && page &&
971 if (page) {
972 void *mapaddr = kmap_atomic(page);
979 if (page && !cs->write)
980 flush_dcache_page(page);
1424 put_page(bufs[page_nr].page);
1619 struct page *page;
1623 page = find_or_create_page(mapping, index,
1625 if (!page)
1629 err = fuse_copy_page(cs, &page, offset, this_num, 0);
1630 if (!PageUptodate(page) && !err && offset == 0 &&
1632 zero_user_segment(page, this_num, PAGE_SIZE);
1633 SetPageUptodate(page);
1635 unlock_page(page);
1636 put_page(page);
1721 struct page *page;
1724 page = find_get_page(mapping, index);
1725 if (!page)
1729 ap->pages[ap->num_pages] = page;