Lines Matching refs:wbc

105 	struct writeback_control *wbc;
759 if (bio_ctrl->wbc) {
777 wbc_init_bio(bio_ctrl->wbc, &bbio->bio);
828 if (bio_ctrl->wbc)
829 wbc_account_cgroup_owner(bio_ctrl->wbc, page, len);
1173 struct page *page, struct writeback_control *wbc)
1191 delalloc_end, wbc);
1210 wbc->nr_to_write -= delalloc_to_write;
1214 if (wbc->nr_to_write < delalloc_to_write) {
1219 wbc->nr_to_write = min_t(u64, delalloc_to_write,
1304 redirty_page_for_writepage(bio_ctrl->wbc, page);
1422 trace___extent_writepage(page, inode, bio_ctrl->wbc);
1441 ret = writepage_delalloc(BTRFS_I(inode), page, bio_ctrl->wbc);
1451 bio_ctrl->wbc->nr_to_write--;
1483 struct writeback_control *wbc)
1491 if (wbc->sync_mode != WB_SYNC_ALL)
1668 struct writeback_control *wbc)
1676 REQ_OP_WRITE | REQ_META | wbc_to_write_flags(wbc),
1680 wbc_init_bio(wbc, &bbio->bio);
1691 wbc->nr_to_write--;
1694 wbc_account_cgroup_owner(wbc, p, eb->len);
1704 wbc_account_cgroup_owner(wbc, p, PAGE_SIZE);
1705 wbc->nr_to_write--;
1726 static int submit_eb_subpage(struct page *page, struct writeback_control *wbc)
1778 if (lock_extent_buffer_for_io(eb, wbc)) {
1779 write_one_eb(eb, wbc);
1809 struct writeback_control *wbc = ctx->wbc;
1818 return submit_eb_subpage(page, wbc);
1856 if (!lock_extent_buffer_for_io(eb, wbc)) {
1866 write_one_eb(eb, wbc);
1872 struct writeback_control *wbc)
1874 struct btrfs_eb_write_context ctx = { .wbc = wbc };
1887 if (wbc->range_cyclic) {
1896 index = wbc->range_start >> PAGE_SHIFT;
1897 end = wbc->range_end >> PAGE_SHIFT;
1900 if (wbc->sync_mode == WB_SYNC_ALL)
1906 if (wbc->sync_mode == WB_SYNC_ALL)
1929 nr_to_write_done = wbc->nr_to_write <= 0;
1988 * @wbc: subtract the number of written pages from *@wbc->nr_to_write
1995 * the call was made get new I/O started against them. If wbc->sync_mode is
2002 struct writeback_control *wbc = bio_ctrl->wbc;
2029 if (wbc->range_cyclic) {
2038 index = wbc->range_start >> PAGE_SHIFT;
2039 end = wbc->range_end >> PAGE_SHIFT;
2040 if (wbc->range_start == 0 && wbc->range_end == LLONG_MAX)
2052 if (range_whole && wbc->nr_to_write == LONG_MAX &&
2055 wbc->tagged_writepages = 1;
2057 if (wbc->sync_mode == WB_SYNC_ALL || wbc->tagged_writepages)
2062 if (wbc->sync_mode == WB_SYNC_ALL || wbc->tagged_writepages)
2097 if (wbc->sync_mode != WB_SYNC_NONE) {
2120 nr_to_write_done = (wbc->sync_mode == WB_SYNC_NONE &&
2121 wbc->nr_to_write <= 0);
2144 if (wbc->range_cyclic || (wbc->nr_to_write > 0 && range_whole))
2157 u64 start, u64 end, struct writeback_control *wbc,
2168 .wbc = wbc,
2169 .opf = REQ_OP_WRITE | wbc_to_write_flags(wbc),
2172 if (wbc->no_cgroup_owner)
2217 struct writeback_control *wbc)
2222 .wbc = wbc,
2223 .opf = REQ_OP_WRITE | wbc_to_write_flags(wbc),