Lines Matching refs:cpage
1845 struct page *cpage; in f2fs_cache_compressed_page() local
1857 cpage = find_get_page(COMPRESS_MAPPING(sbi), blkaddr); in f2fs_cache_compressed_page()
1858 if (cpage) { in f2fs_cache_compressed_page()
1859 f2fs_put_page(cpage, 0); in f2fs_cache_compressed_page()
1863 cpage = alloc_page(__GFP_NOWARN | __GFP_IO); in f2fs_cache_compressed_page()
1864 if (!cpage) in f2fs_cache_compressed_page()
1867 ret = add_to_page_cache_lru(cpage, COMPRESS_MAPPING(sbi), in f2fs_cache_compressed_page()
1870 f2fs_put_page(cpage, 0); in f2fs_cache_compressed_page()
1874 set_page_private_data(cpage, ino); in f2fs_cache_compressed_page()
1879 memcpy(page_address(cpage), page_address(page), PAGE_SIZE); in f2fs_cache_compressed_page()
1880 SetPageUptodate(cpage); in f2fs_cache_compressed_page()
1882 f2fs_put_page(cpage, 1); in f2fs_cache_compressed_page()
1888 struct page *cpage; in f2fs_load_compressed_page() local
1894 cpage = f2fs_pagecache_get_page(COMPRESS_MAPPING(sbi), in f2fs_load_compressed_page()
1896 if (cpage) { in f2fs_load_compressed_page()
1897 if (PageUptodate(cpage)) { in f2fs_load_compressed_page()
1900 page_address(cpage), PAGE_SIZE); in f2fs_load_compressed_page()
1903 f2fs_put_page(cpage, 1); in f2fs_load_compressed_page()