Lines Matching defs:page

107  * Drop all buffers & page cache for given bdev range. This function bails
646 static int blkdev_writepage(struct page *page, struct writeback_control *wbc)
648 return block_write_full_page(page, blkdev_get_block, wbc);
651 static int blkdev_readpage(struct file * file, struct page * page)
653 return block_read_full_page(page, blkdev_get_block);
663 struct page **pagep, void **fsdata)
671 struct page *page, void *fsdata)
674 ret = block_write_end(file, mapping, pos, len, copied, page, fsdata);
676 unlock_page(page);
677 put_page(page);
722 * bdev_read_page() - Start reading a page from a block device
723 * @bdev: The device to read the page from
724 * @sector: The offset on the device to read the page to (need not be aligned)
725 * @page: The page to read
727 * On entry, the page should be locked. It will be unlocked when the page
732 * queue full; callers should try a different route to read this page rather
738 struct page *page)
749 result = ops->rw_page(bdev, sector + get_start_sect(bdev), page,
756 * bdev_write_page() - Start writing a page to a block device
757 * @bdev: The device to write the page to
758 * @sector: The offset on the device to write the page to (need not be aligned)
759 * @page: The page to write
762 * On entry, the page should be locked and not currently under writeback.
763 * On exit, if the write started successfully, the page will be unlocked and
765 * queue the page to the device), the page will still be locked. If the
766 * caller is a ->writepage implementation, it will need to unlock the page.
769 * queue full; callers should try a different route to write this page rather
775 struct page *page, struct writeback_control *wbc)
786 set_page_writeback(page);
787 result = ops->rw_page(bdev, sector + get_start_sect(bdev), page,
790 end_page_writeback(page);
792 clean_page_buffers(page);
793 unlock_page(page);
2020 * Invalidate the page cache, including dirty pages, for valid
2056 * Invalidate the page cache again; if someone wandered in and dirtied
2057 * a page, we just discard it - userspace has no way of knowing whether