Lines Matching refs:wbc
1664 struct writeback_control *wbc; member
1719 pages_skipped = mpd->wbc->pages_skipped; in mpage_da_submit_io()
1720 err = mapping->a_ops->writepage(page, mpd->wbc); in mpage_da_submit_io()
1721 if (!err && (pages_skipped == mpd->wbc->pages_skipped)) in mpage_da_submit_io()
2056 struct writeback_control *wbc, void *data) in __mpage_da_writepage() argument
2070 redirty_page_for_writepage(wbc, page); in __mpage_da_writepage()
2089 redirty_page_for_writepage(wbc, page); in __mpage_da_writepage()
2176 struct writeback_control *wbc, in mpage_da_writepages() argument
2182 return generic_writepages(mapping, wbc); in mpage_da_writepages()
2193 ret = write_cache_pages(mapping, wbc, __mpage_da_writepage, mpd); in mpage_da_writepages()
2204 wbc->nr_to_write -= mpd->pages_written; in mpage_da_writepages()
2328 struct writeback_control *wbc) in ext4_da_writepage() argument
2357 redirty_page_for_writepage(wbc, page); in ext4_da_writepage()
2382 redirty_page_for_writepage(wbc, page); in ext4_da_writepage()
2392 redirty_page_for_writepage(wbc, page); in ext4_da_writepage()
2401 ret = nobh_writepage(page, ext4_normal_get_block_write, wbc); in ext4_da_writepage()
2405 wbc); in ext4_da_writepage()
2436 struct writeback_control *wbc) in ext4_da_writepages() argument
2457 wbc->nr_to_write, wbc->pages_skipped, in ext4_da_writepages()
2458 (unsigned long long) wbc->range_start, in ext4_da_writepages()
2459 (unsigned long long) wbc->range_end, in ext4_da_writepages()
2460 wbc->nonblocking, wbc->for_kupdate, in ext4_da_writepages()
2461 wbc->for_reclaim, wbc->for_writepages, in ext4_da_writepages()
2462 wbc->range_cyclic); in ext4_da_writepages()
2491 if (wbc->nr_to_write < sbi->s_mb_stream_request) { in ext4_da_writepages()
2492 nr_to_writebump = sbi->s_mb_stream_request - wbc->nr_to_write; in ext4_da_writepages()
2493 wbc->nr_to_write = sbi->s_mb_stream_request; in ext4_da_writepages()
2495 if (wbc->range_start == 0 && wbc->range_end == LLONG_MAX) in ext4_da_writepages()
2498 range_cyclic = wbc->range_cyclic; in ext4_da_writepages()
2499 if (wbc->range_cyclic) { in ext4_da_writepages()
2503 wbc->range_start = index << PAGE_CACHE_SHIFT; in ext4_da_writepages()
2504 wbc->range_end = LLONG_MAX; in ext4_da_writepages()
2505 wbc->range_cyclic = 0; in ext4_da_writepages()
2507 index = wbc->range_start >> PAGE_CACHE_SHIFT; in ext4_da_writepages()
2509 mpd.wbc = wbc; in ext4_da_writepages()
2516 no_nrwrite_index_update = wbc->no_nrwrite_index_update; in ext4_da_writepages()
2517 wbc->no_nrwrite_index_update = 1; in ext4_da_writepages()
2518 pages_skipped = wbc->pages_skipped; in ext4_da_writepages()
2521 while (!ret && wbc->nr_to_write > 0) { in ext4_da_writepages()
2538 wbc->nr_to_write, inode->i_ino, ret); in ext4_da_writepages()
2543 ret = mpage_da_writepages(mapping, wbc, &mpd); in ext4_da_writepages()
2553 wbc->pages_skipped = pages_skipped; in ext4_da_writepages()
2561 wbc->pages_skipped = pages_skipped; in ext4_da_writepages()
2564 } else if (wbc->nr_to_write) in ext4_da_writepages()
2575 wbc->range_start = index << PAGE_CACHE_SHIFT; in ext4_da_writepages()
2576 wbc->range_end = mapping->writeback_index - 1; in ext4_da_writepages()
2579 if (pages_skipped != wbc->pages_skipped) in ext4_da_writepages()
2582 __func__, wbc->nr_to_write, ret); in ext4_da_writepages()
2586 wbc->range_cyclic = range_cyclic; in ext4_da_writepages()
2587 if (wbc->range_cyclic || (range_whole && wbc->nr_to_write > 0)) in ext4_da_writepages()
2596 wbc->no_nrwrite_index_update = 0; in ext4_da_writepages()
2597 wbc->nr_to_write -= nr_to_writebump; in ext4_da_writepages()
2603 pages_written, wbc->pages_skipped, in ext4_da_writepages()
2604 wbc->encountered_congestion, wbc->more_io, in ext4_da_writepages()
2605 wbc->no_nrwrite_index_update); in ext4_da_writepages()
2948 struct writeback_control *wbc) in __ext4_normal_writepage() argument
2954 ext4_normal_get_block_write, wbc); in __ext4_normal_writepage()
2958 wbc); in __ext4_normal_writepage()
2962 struct writeback_control *wbc) in ext4_normal_writepage() argument
2992 return __ext4_normal_writepage(page, wbc); in ext4_normal_writepage()
2994 redirty_page_for_writepage(wbc, page); in ext4_normal_writepage()
3000 struct writeback_control *wbc) in __ext4_journalled_writepage() argument
3050 struct writeback_control *wbc) in ext4_journalled_writepage() argument
3088 return __ext4_journalled_writepage(page, wbc); in ext4_journalled_writepage()
3097 wbc); in ext4_journalled_writepage()
3100 redirty_page_for_writepage(wbc, page); in ext4_journalled_writepage()