Lines Matching defs:page
168 * successful, use it to fill the specified page with data and return 0.
176 int __cleancache_get_page(struct page *page)
187 VM_BUG_ON_PAGE(!PageLocked(page), page);
188 pool_id = page->mapping->host->i_sb->cleancache_poolid;
192 if (cleancache_get_key(page->mapping->host, &key) < 0)
195 ret = cleancache_ops->get_page(pool_id, key, page->index, page);
206 * "Put" data from a page to cleancache and associate it with the
207 * (previously-obtained per-filesystem) poolid and the page's,
208 * inode and page index. Page must be locked. Note that a put_page
215 void __cleancache_put_page(struct page *page)
225 VM_BUG_ON_PAGE(!PageLocked(page), page);
226 pool_id = page->mapping->host->i_sb->cleancache_poolid;
228 cleancache_get_key(page->mapping->host, &key) >= 0) {
229 cleancache_ops->put_page(pool_id, key, page->index, page);
237 * page's inode and page index so that a subsequent "get" will fail.
244 struct page *page)
246 /* careful... page->mapping is NULL sometimes when this is called */
254 VM_BUG_ON_PAGE(!PageLocked(page), page);
257 key, page->index);