Lines Matching refs:wbc
1687 struct writeback_control *wbc; member
2136 struct writeback_control *wbc) in ext4_writepage() argument
2180 redirty_page_for_writepage(wbc, page); in ext4_writepage()
2203 ext4_io_submit_init(&io_submit, wbc); in ext4_writepage()
2206 redirty_page_for_writepage(wbc, page); in ext4_writepage()
2210 ret = ext4_bio_write_page(&io_submit, page, len, wbc, keep_towrite); in ext4_writepage()
2244 err = ext4_bio_write_page(&mpd->io_submit, page, len, mpd->wbc, false); in mpage_submit_page()
2246 mpd->wbc->nr_to_write--; in mpage_submit_page()
2649 long left = mpd->wbc->nr_to_write; in mpage_prepare_extent_to_map()
2658 if (mpd->wbc->sync_mode == WB_SYNC_ALL || mpd->wbc->tagged_writepages) in mpage_prepare_extent_to_map()
2683 if (mpd->wbc->sync_mode == WB_SYNC_NONE && left <= 0) in mpage_prepare_extent_to_map()
2700 (mpd->wbc->sync_mode == WB_SYNC_NONE)) || in mpage_prepare_extent_to_map()
2732 struct writeback_control *wbc) in ext4_writepages() argument
2735 long nr_to_write = wbc->nr_to_write; in ext4_writepages()
2751 trace_ext4_writepages(inode, wbc); in ext4_writepages()
2762 ret = generic_writepages(mapping, wbc); in ext4_writepages()
2809 if (wbc->range_start == 0 && wbc->range_end == LLONG_MAX) in ext4_writepages()
2812 if (wbc->range_cyclic) { in ext4_writepages()
2819 mpd.first_page = wbc->range_start >> PAGE_SHIFT; in ext4_writepages()
2820 mpd.last_page = wbc->range_end >> PAGE_SHIFT; in ext4_writepages()
2824 mpd.wbc = wbc; in ext4_writepages()
2825 ext4_io_submit_init(&mpd.io_submit, wbc); in ext4_writepages()
2827 if (wbc->sync_mode == WB_SYNC_ALL || wbc->tagged_writepages) in ext4_writepages()
2879 wbc->nr_to_write, inode->i_ino, ret); in ext4_writepages()
2887 trace_ext4_da_write_pages(inode, mpd.first_page, mpd.wbc); in ext4_writepages()
2953 if (!ret && !cycled && wbc->nr_to_write > 0) { in ext4_writepages()
2961 if (wbc->range_cyclic || (range_whole && wbc->nr_to_write > 0)) in ext4_writepages()
2969 trace_ext4_writepages_result(inode, wbc, ret, in ext4_writepages()
2970 nr_to_write - wbc->nr_to_write); in ext4_writepages()
2976 struct writeback_control *wbc) in ext4_dax_writepages() argument
2979 long nr_to_write = wbc->nr_to_write; in ext4_dax_writepages()
2987 trace_ext4_writepages(inode, wbc); in ext4_dax_writepages()
2989 ret = dax_writeback_mapping_range(mapping, inode->i_sb->s_bdev, wbc); in ext4_dax_writepages()
2990 trace_ext4_writepages_result(inode, wbc, ret, in ext4_dax_writepages()
2991 nr_to_write - wbc->nr_to_write); in ext4_dax_writepages()
5466 int ext4_write_inode(struct inode *inode, struct writeback_control *wbc) in ext4_write_inode() argument
5489 if (wbc->sync_mode != WB_SYNC_ALL || wbc->for_sync) in ext4_write_inode()
5504 if (wbc->sync_mode == WB_SYNC_ALL && !wbc->for_sync) in ext4_write_inode()