Lines Matching refs:wbc
2157 * @wbc: subtract the number of written pages from *@wbc->nr_to_write
2165 * the call was made get new I/O started against them. If wbc->sync_mode is
2186 struct writeback_control *wbc, writepage_t writepage,
2201 if (wbc->range_cyclic) {
2205 index = wbc->range_start >> PAGE_SHIFT;
2206 end = wbc->range_end >> PAGE_SHIFT;
2207 if (wbc->range_start == 0 && wbc->range_end == LLONG_MAX)
2210 if (wbc->sync_mode == WB_SYNC_ALL || wbc->tagged_writepages) {
2252 if (wbc->sync_mode != WB_SYNC_NONE)
2262 trace_wbc_writepage(wbc, inode_to_bdi(mapping->host));
2263 error = (*writepage)(page, wbc, data);
2280 } else if (wbc->sync_mode != WB_SYNC_ALL) {
2296 if (--wbc->nr_to_write <= 0 &&
2297 wbc->sync_mode == WB_SYNC_NONE) {
2311 if (wbc->range_cyclic && !done)
2313 if (wbc->range_cyclic || (range_whole && wbc->nr_to_write > 0))
2324 static int __writepage(struct page *page, struct writeback_control *wbc,
2328 int ret = mapping->a_ops->writepage(page, wbc);
2336 * @wbc: subtract the number of written pages from *@wbc->nr_to_write
2344 struct writeback_control *wbc)
2354 ret = write_cache_pages(mapping, wbc, __writepage, mapping);
2361 int do_writepages(struct address_space *mapping, struct writeback_control *wbc)
2365 if (wbc->nr_to_write <= 0)
2369 ret = mapping->a_ops->writepages(mapping, wbc);
2371 ret = generic_writepages(mapping, wbc);
2372 if ((ret != -ENOMEM) || (wbc->sync_mode != WB_SYNC_ALL))
2395 struct writeback_control wbc = {
2406 ret = mapping->a_ops->writepage(page, &wbc);
2552 int redirty_page_for_writepage(struct writeback_control *wbc, struct page *page)
2556 wbc->pages_skipped++;