Lines Matching refs:rpages

105 		if (!cc->rpages[i])
108 unlock_page(cc->rpages[i]);
110 put_page(cc->rpages[i]);
130 if (!cc->rpages[i])
133 redirty_page_for_writepage(wbc, cc->rpages[i]);
134 f2fs_put_page(cc->rpages[i], unlock);
140 return ((struct compress_io_ctx *)page_private(page))->rpages[0];
145 if (cc->rpages)
148 cc->rpages = page_array_alloc(cc->inode, cc->cluster_size);
149 return cc->rpages ? 0 : -ENOMEM;
154 page_array_free(cc->inode, cc->rpages, cc->cluster_size);
155 cc->rpages = NULL;
171 cc->rpages[cluster_ofs] = page;
655 cc->rbuf = f2fs_vmap(cc->rpages, cc->cluster_size);
883 struct page *page = cc->rpages[i];
1022 if (cc->rpages[i])
1023 set_page_writeback(cc->rpages[i]);
1032 if (cc->rpages[i]) {
1033 set_page_dirty(cc->rpages[i]);
1034 set_page_private_gcing(cc->rpages[i]);
1091 f2fs_bug_on(sbi, cc->rpages[i]);
1112 *fsdata = cc->rpages;
1113 *pagep = cc->rpages[offset_in_cluster(cc, index)];
1133 .rpages = NULL,
1148 .rpages = fsdata,
1150 bool first_index = (index == cc.rpages[0]->index);
1189 struct page **rpages = fsdata;
1194 loff_t start = rpages[i]->index << PAGE_SHIFT;
1197 zero_user_segment(rpages[i], 0, PAGE_SIZE);
1199 zero_user_segment(rpages[i], from - start,
1245 mapping_set_error(cc->rpages[0]->mapping, -EIO);
1272 psize = (loff_t)(cc->rpages[last_index]->index + 1) << PAGE_SHIFT;
1287 cic->rpages = page_array_alloc(cc->inode, cc->cluster_size);
1288 if (!cic->rpages)
1295 cc->rpages[i + 1]->index, cic);
1305 fio.page = cc->rpages[i + 1];
1316 cic->rpages[i] = cc->rpages[i];
1322 fio.page = cc->rpages[i];
1386 page_array_free(cc->inode, cic->rpages, cc->cluster_size);
1429 WARN_ON(!cic->rpages[i]);
1430 clear_page_private_gcing(cic->rpages[i]);
1431 end_page_writeback(cic->rpages[i]);
1434 page_array_free(cic->inode, cic->rpages, cic->nr_rpages);
1451 if (!cc->rpages[i])
1454 redirty_page_for_writepage(wbc, cc->rpages[i]);
1455 unlock_page(cc->rpages[i]);
1466 if (!cc->rpages[i])
1469 lock_page(cc->rpages[i]);
1471 if (cc->rpages[i]->mapping != mapping) {
1473 unlock_page(cc->rpages[i]);
1477 if (!PageDirty(cc->rpages[i]))
1480 if (PageWriteback(cc->rpages[i])) {
1483 f2fs_wait_on_page_writeback(cc->rpages[i], DATA, true, true);
1486 if (!clear_page_dirty_for_io(cc->rpages[i]))
1489 ret = f2fs_write_single_data_page(cc->rpages[i], &submitted,
1494 unlock_page(cc->rpages[i]);
1577 if (dic->rpages[i]) {
1578 dic->tpages[i] = dic->rpages[i];
1632 dic->rpages = page_array_alloc(cc->inode, cc->cluster_size);
1633 if (!dic->rpages) {
1650 dic->rpages[i] = cc->rpages[i];
1688 if (dic->rpages[i])
1706 page_array_free(dic->inode, dic->rpages, dic->nr_rpages);
1739 struct page *rpage = dic->rpages[i];
1777 struct page *rpage = dic->rpages[i];