Lines Matching refs:wbc
1557 struct writeback_control *wbc; member
2011 struct writeback_control *wbc) in ext4_writepage() argument
2064 redirty_page_for_writepage(wbc, page); in ext4_writepage()
2087 ext4_io_submit_init(&io_submit, wbc); in ext4_writepage()
2090 redirty_page_for_writepage(wbc, page); in ext4_writepage()
2094 ret = ext4_bio_write_page(&io_submit, page, len, wbc, keep_towrite); in ext4_writepage()
2128 err = ext4_bio_write_page(&mpd->io_submit, page, len, mpd->wbc, false); in mpage_submit_page()
2130 mpd->wbc->nr_to_write--; in mpage_submit_page()
2587 long left = mpd->wbc->nr_to_write; in mpage_prepare_extent_to_map()
2596 if (mpd->wbc->sync_mode == WB_SYNC_ALL || mpd->wbc->tagged_writepages) in mpage_prepare_extent_to_map()
2621 if (mpd->wbc->sync_mode == WB_SYNC_NONE && left <= 0) in mpage_prepare_extent_to_map()
2638 (mpd->wbc->sync_mode == WB_SYNC_NONE)) || in mpage_prepare_extent_to_map()
2687 struct writeback_control *wbc) in ext4_writepages() argument
2690 long nr_to_write = wbc->nr_to_write; in ext4_writepages()
2705 trace_ext4_writepages(inode, wbc); in ext4_writepages()
2716 ret = generic_writepages(mapping, wbc); in ext4_writepages()
2763 if (wbc->range_start == 0 && wbc->range_end == LLONG_MAX) in ext4_writepages()
2766 if (wbc->range_cyclic) { in ext4_writepages()
2773 mpd.first_page = wbc->range_start >> PAGE_SHIFT; in ext4_writepages()
2774 mpd.last_page = wbc->range_end >> PAGE_SHIFT; in ext4_writepages()
2778 mpd.wbc = wbc; in ext4_writepages()
2779 ext4_io_submit_init(&mpd.io_submit, wbc); in ext4_writepages()
2781 if (wbc->sync_mode == WB_SYNC_ALL || wbc->tagged_writepages) in ext4_writepages()
2808 while (!mpd.scanned_until_end && wbc->nr_to_write > 0) { in ext4_writepages()
2833 wbc->nr_to_write, inode->i_ino, ret); in ext4_writepages()
2841 trace_ext4_da_write_pages(inode, mpd.first_page, mpd.wbc); in ext4_writepages()
2896 if (!ret && !cycled && wbc->nr_to_write > 0) { in ext4_writepages()
2904 if (wbc->range_cyclic || (range_whole && wbc->nr_to_write > 0)) in ext4_writepages()
2912 trace_ext4_writepages_result(inode, wbc, ret, in ext4_writepages()
2913 nr_to_write - wbc->nr_to_write); in ext4_writepages()
2919 struct writeback_control *wbc) in ext4_dax_writepages() argument
2922 long nr_to_write = wbc->nr_to_write; in ext4_dax_writepages()
2930 trace_ext4_writepages(inode, wbc); in ext4_dax_writepages()
2932 ret = dax_writeback_mapping_range(mapping, sbi->s_daxdev, wbc); in ext4_dax_writepages()
2933 trace_ext4_writepages_result(inode, wbc, ret, in ext4_dax_writepages()
2934 nr_to_write - wbc->nr_to_write); in ext4_dax_writepages()
5314 int ext4_write_inode(struct inode *inode, struct writeback_control *wbc) in ext4_write_inode() argument
5337 if (wbc->sync_mode != WB_SYNC_ALL || wbc->for_sync) in ext4_write_inode()
5352 if (wbc->sync_mode == WB_SYNC_ALL && !wbc->for_sync) in ext4_write_inode()