Lines Matching refs:page
3 * linux/fs/ext4/page-io.c
106 struct page *page = bvec->bv_page;
107 struct page *bounce_page = NULL;
114 if (!page)
117 if (fscrypt_is_bounce_page(page)) {
118 bounce_page = page;
119 page = fscrypt_pagecache_page(bounce_page);
123 SetPageError(page);
124 mapping_set_error(page->mapping, -EIO);
126 bh = head = page_buffers(page);
128 * We check all buffers in the page under b_uptodate_lock
148 end_page_writeback(page);
326 /* BIO completion function for page writeback */
419 struct page *pagecache_page,
420 struct page *bounce_page,
443 struct page *page,
448 struct page *bounce_page = NULL;
449 struct inode *inode = page->mapping->host;
456 BUG_ON(!PageLocked(page));
457 BUG_ON(PageWriteback(page));
460 set_page_writeback_keepwrite(page);
462 set_page_writeback(page);
463 ClearPageError(page);
468 * The page straddles i_size. It must be zeroed out on each and every
470 * in multiples of the page size. For a file that is not a multiple of
471 * the page size, the remaining memory is zeroed when mapped, and
475 zero_user_segment(page, len, PAGE_SIZE);
478 * mark all buffers in the page before submitting so that
483 bh = head = page_buffers(page);
506 bh = head = page_buffers(page);
510 * into a bounce page. For simplicity, just encrypt until the last
520 * Since bounce page allocation uses a mempool, we can only use
522 * first page of the bio. Otherwise it can deadlock.
527 bounce_page = fscrypt_encrypt_pagecache_blocks(page, enc_bytes,
543 redirty_page_for_writepage(wbc, page);
556 io_submit_add_bh(io, inode, page, bounce_page, bh);
562 unlock_page(page);
563 /* Nothing submitted - we have to end page writeback */
565 end_page_writeback(page);