Lines Matching refs:wbc

103 	struct writeback_control *wbc;
773 if (bio_ctrl->wbc) {
791 wbc_init_bio(bio_ctrl->wbc, &bbio->bio);
842 if (bio_ctrl->wbc)
843 wbc_account_cgroup_owner(bio_ctrl->wbc, page, len);
1196 struct page *page, struct writeback_control *wbc)
1214 delalloc_end, wbc);
1233 wbc->nr_to_write -= delalloc_to_write;
1237 if (wbc->nr_to_write < delalloc_to_write) {
1242 wbc->nr_to_write = min_t(u64, delalloc_to_write,
1328 redirty_page_for_writepage(bio_ctrl->wbc, page);
1446 trace___extent_writepage(page, inode, bio_ctrl->wbc);
1465 ret = writepage_delalloc(BTRFS_I(inode), page, bio_ctrl->wbc);
1475 bio_ctrl->wbc->nr_to_write--;
1507 struct writeback_control *wbc)
1515 if (wbc->sync_mode != WB_SYNC_ALL)
1691 struct writeback_control *wbc)
1699 REQ_OP_WRITE | REQ_META | wbc_to_write_flags(wbc),
1703 wbc_init_bio(wbc, &bbio->bio);
1715 wbc->nr_to_write--;
1720 wbc_account_cgroup_owner(wbc, folio_page(folio, 0), eb->len);
1734 wbc_account_cgroup_owner(wbc, folio_page(folio, 0),
1736 wbc->nr_to_write -= folio_nr_pages(folio);
1757 static int submit_eb_subpage(struct page *page, struct writeback_control *wbc)
1810 if (lock_extent_buffer_for_io(eb, wbc)) {
1811 write_one_eb(eb, wbc);
1841 struct writeback_control *wbc = ctx->wbc;
1851 return submit_eb_subpage(page, wbc);
1889 if (!lock_extent_buffer_for_io(eb, wbc)) {
1899 write_one_eb(eb, wbc);
1905 struct writeback_control *wbc)
1907 struct btrfs_eb_write_context ctx = { .wbc = wbc };
1920 if (wbc->range_cyclic) {
1929 index = wbc->range_start >> PAGE_SHIFT;
1930 end = wbc->range_end >> PAGE_SHIFT;
1933 if (wbc->sync_mode == WB_SYNC_ALL)
1939 if (wbc->sync_mode == WB_SYNC_ALL)
1962 nr_to_write_done = wbc->nr_to_write <= 0;
2021 * @wbc: subtract the number of written pages from *@wbc->nr_to_write
2028 * the call was made get new I/O started against them. If wbc->sync_mode is
2035 struct writeback_control *wbc = bio_ctrl->wbc;
2062 if (wbc->range_cyclic) {
2071 index = wbc->range_start >> PAGE_SHIFT;
2072 end = wbc->range_end >> PAGE_SHIFT;
2073 if (wbc->range_start == 0 && wbc->range_end == LLONG_MAX)
2085 if (range_whole && wbc->nr_to_write == LONG_MAX &&
2088 wbc->tagged_writepages = 1;
2090 if (wbc->sync_mode == WB_SYNC_ALL || wbc->tagged_writepages)
2095 if (wbc->sync_mode == WB_SYNC_ALL || wbc->tagged_writepages)
2130 if (wbc->sync_mode != WB_SYNC_NONE) {
2153 nr_to_write_done = (wbc->sync_mode == WB_SYNC_NONE &&
2154 wbc->nr_to_write <= 0);
2177 if (wbc->range_cyclic || (wbc->nr_to_write > 0 && range_whole))
2190 u64 start, u64 end, struct writeback_control *wbc,
2201 .wbc = wbc,
2202 .opf = REQ_OP_WRITE | wbc_to_write_flags(wbc),
2205 if (wbc->no_cgroup_owner)
2250 struct writeback_control *wbc)
2255 .wbc = wbc,
2256 .opf = REQ_OP_WRITE | wbc_to_write_flags(wbc),