Lines Matching refs:rpages

107 		if (!cc->rpages[i])
110 unlock_page(cc->rpages[i]);
112 put_page(cc->rpages[i]);
132 if (!cc->rpages[i])
135 redirty_page_for_writepage(wbc, cc->rpages[i]);
136 f2fs_put_page(cc->rpages[i], unlock);
142 return ((struct compress_io_ctx *)page_private(page))->rpages[0];
147 if (cc->rpages)
150 cc->rpages = page_array_alloc(cc->inode, cc->cluster_size);
151 return cc->rpages ? 0 : -ENOMEM;
156 page_array_free(cc->inode, cc->rpages, cc->cluster_size);
157 cc->rpages = NULL;
172 cc->rpages[cluster_ofs] = page;
620 cc->rbuf = f2fs_vmap(cc->rpages, cc->cluster_size);
740 if (dic->rpages[i]) {
741 dic->tpages[i] = dic->rpages[i];
789 f2fs_decompress_end_io(dic->rpages, dic->cluster_size,
830 struct page *page = cc->rpages[i];
927 if (cc->rpages[i])
928 set_page_writeback(cc->rpages[i]);
937 if (cc->rpages[i])
938 set_page_dirty(cc->rpages[i]);
999 f2fs_bug_on(sbi, cc->rpages[i]);
1039 *fsdata = cc->rpages;
1040 *pagep = cc->rpages[offset_in_cluster(cc, index)];
1060 .rpages = NULL,
1075 .rpages = fsdata,
1077 bool first_index = (index == cc.rpages[0]->index);
1116 struct page **rpages = fsdata;
1121 loff_t start = rpages[i]->index << PAGE_SHIFT;
1124 zero_user_segment(rpages[i], 0, PAGE_SIZE);
1126 zero_user_segment(rpages[i], from - start,
1191 psize = (loff_t)(cc->rpages[last_index]->index + 1) << PAGE_SHIFT;
1206 cic->rpages = page_array_alloc(cc->inode, cc->cluster_size);
1207 if (!cic->rpages)
1214 cc->rpages[i + 1]->index, cic);
1224 fio.page = cc->rpages[i + 1];
1235 cic->rpages[i] = cc->rpages[i];
1241 fio.page = cc->rpages[i];
1306 page_array_free(cc->inode, cic->rpages, cc->cluster_size);
1349 WARN_ON(!cic->rpages[i]);
1350 clear_cold_data(cic->rpages[i]);
1351 end_page_writeback(cic->rpages[i]);
1354 page_array_free(cic->inode, cic->rpages, cic->nr_rpages);
1369 if (!cc->rpages[i])
1372 redirty_page_for_writepage(wbc, cc->rpages[i]);
1373 unlock_page(cc->rpages[i]);
1380 if (!cc->rpages[i])
1383 lock_page(cc->rpages[i]);
1385 if (cc->rpages[i]->mapping != mapping) {
1387 unlock_page(cc->rpages[i]);
1391 if (!PageDirty(cc->rpages[i]))
1394 if (PageWriteback(cc->rpages[i])) {
1397 f2fs_wait_on_page_writeback(cc->rpages[i], DATA, true, true);
1400 if (!clear_page_dirty_for_io(cc->rpages[i]))
1403 ret = f2fs_write_single_data_page(cc->rpages[i], &_submitted,
1408 unlock_page(cc->rpages[i]);
1478 dic->rpages = page_array_alloc(cc->inode, cc->cluster_size);
1479 if (!dic->rpages) {
1494 dic->rpages[i] = cc->rpages[i];
1526 if (dic->rpages[i])
1544 page_array_free(dic->inode, dic->rpages, dic->nr_rpages);
1548 void f2fs_decompress_end_io(struct page **rpages,
1554 struct page *rpage = rpages[i];