Lines Matching defs: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];
1029 if (cc->rpages[i])
1030 set_page_writeback(cc->rpages[i]);
1039 if (cc->rpages[i]) {
1040 set_page_dirty(cc->rpages[i]);
1041 set_page_private_gcing(cc->rpages[i]);
1098 f2fs_bug_on(sbi, cc->rpages[i]);
1119 *fsdata = cc->rpages;
1120 *pagep = cc->rpages[offset_in_cluster(cc, index)];
1140 .rpages = NULL,
1155 .rpages = fsdata,
1157 bool first_index = (index == cc.rpages[0]->index);
1196 struct page **rpages = fsdata;
1201 loff_t start = rpages[i]->index << PAGE_SHIFT;
1204 zero_user_segment(rpages[i], 0, PAGE_SIZE);
1206 zero_user_segment(rpages[i], from - start,
1252 mapping_set_error(cc->rpages[0]->mapping, -EIO);
1279 psize = (loff_t)(cc->rpages[last_index]->index + 1) << PAGE_SHIFT;
1294 cic->rpages = page_array_alloc(cc->inode, cc->cluster_size);
1295 if (!cic->rpages)
1302 cc->rpages[i + 1]->index, cic);
1312 fio.page = cc->rpages[i + 1];
1323 cic->rpages[i] = cc->rpages[i];
1329 fio.page = cc->rpages[i];
1393 page_array_free(cc->inode, cic->rpages, cc->cluster_size);
1436 WARN_ON(!cic->rpages[i]);
1437 clear_page_private_gcing(cic->rpages[i]);
1438 end_page_writeback(cic->rpages[i]);
1441 page_array_free(cic->inode, cic->rpages, cic->nr_rpages);
1458 if (!cc->rpages[i])
1461 redirty_page_for_writepage(wbc, cc->rpages[i]);
1462 unlock_page(cc->rpages[i]);
1473 if (!cc->rpages[i])
1476 lock_page(cc->rpages[i]);
1478 if (cc->rpages[i]->mapping != mapping) {
1480 unlock_page(cc->rpages[i]);
1484 if (!PageDirty(cc->rpages[i]))
1487 if (PageWriteback(cc->rpages[i])) {
1490 f2fs_wait_on_page_writeback(cc->rpages[i], DATA, true, true);
1493 if (!clear_page_dirty_for_io(cc->rpages[i]))
1496 ret = f2fs_write_single_data_page(cc->rpages[i], &submitted,
1501 unlock_page(cc->rpages[i]);
1584 if (dic->rpages[i]) {
1585 dic->tpages[i] = dic->rpages[i];
1639 dic->rpages = page_array_alloc(cc->inode, cc->cluster_size);
1640 if (!dic->rpages) {
1657 dic->rpages[i] = cc->rpages[i];
1695 if (dic->rpages[i])
1713 page_array_free(dic->inode, dic->rpages, dic->nr_rpages);
1746 struct page *rpage = dic->rpages[i];
1784 struct page *rpage = dic->rpages[i];