Lines Matching refs:wbc
2366 * @wbc: subtract the number of written pages from *@wbc->nr_to_write
2374 * the call was made get new I/O started against them. If wbc->sync_mode is
2395 struct writeback_control *wbc, writepage_t writepage,
2410 if (wbc->range_cyclic) {
2414 index = wbc->range_start >> PAGE_SHIFT;
2415 end = wbc->range_end >> PAGE_SHIFT;
2416 if (wbc->range_start == 0 && wbc->range_end == LLONG_MAX)
2419 if (wbc->sync_mode == WB_SYNC_ALL || wbc->tagged_writepages) {
2463 if (wbc->sync_mode != WB_SYNC_NONE)
2473 trace_wbc_writepage(wbc, inode_to_bdi(mapping->host));
2474 error = writepage(folio, wbc, data);
2492 } else if (wbc->sync_mode != WB_SYNC_ALL) {
2508 wbc->nr_to_write -= nr;
2509 if (wbc->nr_to_write <= 0 &&
2510 wbc->sync_mode == WB_SYNC_NONE) {
2524 if (wbc->range_cyclic && !done)
2526 if (wbc->range_cyclic || (range_whole && wbc->nr_to_write > 0))
2533 static int writepage_cb(struct folio *folio, struct writeback_control *wbc,
2537 int ret = mapping->a_ops->writepage(&folio->page, wbc);
2542 int do_writepages(struct address_space *mapping, struct writeback_control *wbc)
2547 if (wbc->nr_to_write <= 0)
2549 wb = inode_to_wb_wbc(mapping->host, wbc);
2553 ret = mapping->a_ops->writepages(mapping, wbc);
2558 ret = write_cache_pages(mapping, wbc, writepage_cb,
2565 if (ret != -ENOMEM || wbc->sync_mode != WB_SYNC_ALL)
2716 * @wbc: The writeback control.
2726 bool folio_redirty_for_writepage(struct writeback_control *wbc,
2733 wbc->pages_skipped += nr;