Lines Matching refs:page

174 	struct page *page = bvec->bv_page;
177 bh = page_buffers(page);
206 struct page *page;
220 page = bvec->bv_page;
221 if (page_has_buffers(page))
224 mempool_free(page, gfs2_page_pool);
318 * @page: the page to write
320 * @offset: the offset within the page
323 * Try and add the page segment to the current bio. If that fails,
325 * then add the page segment to that.
329 struct page *page, unsigned size, unsigned offset,
337 ret = bio_add_page(bio, page, size, offset);
341 ret = bio_add_page(bio, page, size, offset);
367 * gfs2_log_write_page - write one block stored in a page, into the log
369 * @page: The struct page
371 * This writes the first block-sized part of the page into the log. Note
372 * that the page must have been allocated from the gfs2_page_pool mempool
374 * the page may be freed at any time.
377 static void gfs2_log_write_page(struct gfs2_sbd *sdp, struct page *page)
384 gfs2_log_write(sdp, sdp->sd_jdesc, page, sb->s_blocksize, 0, dblock);
397 struct page *page;
402 page = bvec->bv_page;
406 SetPageError(page);
407 mapping_set_error(page->mapping, err);
409 unlock_page(page);
416 * gfs2_jhead_pg_srch - Look for the journal head in a given page.
419 * @page: The page to look in
426 struct page *page)
434 kaddr = kmap_local_page(page);
450 * gfs2_jhead_process_page - Search/cleanup a page
452 * @index: Index of the page to look into
458 * folio so the page cache can reclaim it. We grabbed a
482 *done = gfs2_jhead_pg_srch(jd, head, &folio->page);
524 struct page *page = NULL;
537 if (!page) {
538 page = grab_cache_page(mapping, block >> shift);
539 if (!page) {
551 sz = bio_add_page(bio, page, bsize, off);
572 sz = bio_add_page(bio, page, bsize, off);
577 page = NULL;
607 static struct page *gfs2_get_log_desc(struct gfs2_sbd *sdp, u32 ld_type,
610 struct page *page = mempool_alloc(gfs2_page_pool, GFP_NOIO);
611 struct gfs2_log_descriptor *ld = page_address(page);
620 return page;
657 struct page *page;
670 page = gfs2_get_log_desc(sdp,
673 ld = page_address(page);
689 gfs2_log_write_page(sdp, page);
701 page = mempool_alloc(gfs2_page_pool, GFP_NOIO);
702 p = page_address(page);
703 memcpy_from_page(p, page, bh_offset(bd2->bd_bh), bd2->bd_bh->b_size);
708 gfs2_log_write_page(sdp, page);
864 struct page *page;
872 page = gfs2_get_log_desc(sdp, GFS2_LOG_DESC_REVOKE, length, sdp->sd_log_num_revoke);
879 gfs2_log_write_page(sdp, page);
880 page = mempool_alloc(gfs2_page_pool, GFP_NOIO);
881 mh = page_address(page);
889 *(__be64 *)(page_address(page) + offset) = cpu_to_be64(bd->bd_blkno);
894 gfs2_log_write_page(sdp, page);