Lines Matching refs:wbc

105 	struct writeback_control *wbc;  member
749 if (bio_ctrl->wbc) { in alloc_new_bio()
767 wbc_init_bio(bio_ctrl->wbc, &bbio->bio); in alloc_new_bio()
818 if (bio_ctrl->wbc) in submit_extent_page()
819 wbc_account_cgroup_owner(bio_ctrl->wbc, page, len); in submit_extent_page()
1163 struct page *page, struct writeback_control *wbc) in writepage_delalloc() argument
1181 delalloc_end, wbc); in writepage_delalloc()
1200 wbc->nr_to_write -= delalloc_to_write; in writepage_delalloc()
1204 if (wbc->nr_to_write < delalloc_to_write) { in writepage_delalloc()
1209 wbc->nr_to_write = min_t(u64, delalloc_to_write, in writepage_delalloc()
1294 redirty_page_for_writepage(bio_ctrl->wbc, page); in __extent_writepage_io()
1412 trace___extent_writepage(page, inode, bio_ctrl->wbc); in __extent_writepage()
1431 ret = writepage_delalloc(BTRFS_I(inode), page, bio_ctrl->wbc); in __extent_writepage()
1441 bio_ctrl->wbc->nr_to_write--; in __extent_writepage()
1473 struct writeback_control *wbc) in lock_extent_buffer_for_io() argument
1481 if (wbc->sync_mode != WB_SYNC_ALL) in lock_extent_buffer_for_io()
1658 struct writeback_control *wbc) in write_one_eb() argument
1666 REQ_OP_WRITE | REQ_META | wbc_to_write_flags(wbc), in write_one_eb()
1670 wbc_init_bio(wbc, &bbio->bio); in write_one_eb()
1681 wbc->nr_to_write--; in write_one_eb()
1684 wbc_account_cgroup_owner(wbc, p, eb->len); in write_one_eb()
1694 wbc_account_cgroup_owner(wbc, p, PAGE_SIZE); in write_one_eb()
1695 wbc->nr_to_write--; in write_one_eb()
1716 static int submit_eb_subpage(struct page *page, struct writeback_control *wbc) in submit_eb_subpage() argument
1768 if (lock_extent_buffer_for_io(eb, wbc)) { in submit_eb_subpage()
1769 write_one_eb(eb, wbc); in submit_eb_subpage()
1799 struct writeback_control *wbc = ctx->wbc; in submit_eb_page() local
1808 return submit_eb_subpage(page, wbc); in submit_eb_page()
1846 if (!lock_extent_buffer_for_io(eb, wbc)) { in submit_eb_page()
1856 write_one_eb(eb, wbc); in submit_eb_page()
1862 struct writeback_control *wbc) in btree_write_cache_pages() argument
1864 struct btrfs_eb_write_context ctx = { .wbc = wbc }; in btree_write_cache_pages()
1877 if (wbc->range_cyclic) { in btree_write_cache_pages()
1886 index = wbc->range_start >> PAGE_SHIFT; in btree_write_cache_pages()
1887 end = wbc->range_end >> PAGE_SHIFT; in btree_write_cache_pages()
1890 if (wbc->sync_mode == WB_SYNC_ALL) in btree_write_cache_pages()
1896 if (wbc->sync_mode == WB_SYNC_ALL) in btree_write_cache_pages()
1919 nr_to_write_done = wbc->nr_to_write <= 0; in btree_write_cache_pages()
1992 struct writeback_control *wbc = bio_ctrl->wbc; in extent_write_cache_pages() local
2019 if (wbc->range_cyclic) { in extent_write_cache_pages()
2028 index = wbc->range_start >> PAGE_SHIFT; in extent_write_cache_pages()
2029 end = wbc->range_end >> PAGE_SHIFT; in extent_write_cache_pages()
2030 if (wbc->range_start == 0 && wbc->range_end == LLONG_MAX) in extent_write_cache_pages()
2042 if (range_whole && wbc->nr_to_write == LONG_MAX && in extent_write_cache_pages()
2045 wbc->tagged_writepages = 1; in extent_write_cache_pages()
2047 if (wbc->sync_mode == WB_SYNC_ALL || wbc->tagged_writepages) in extent_write_cache_pages()
2052 if (wbc->sync_mode == WB_SYNC_ALL || wbc->tagged_writepages) in extent_write_cache_pages()
2087 if (wbc->sync_mode != WB_SYNC_NONE) { in extent_write_cache_pages()
2110 nr_to_write_done = (wbc->sync_mode == WB_SYNC_NONE && in extent_write_cache_pages()
2111 wbc->nr_to_write <= 0); in extent_write_cache_pages()
2134 if (wbc->range_cyclic || (wbc->nr_to_write > 0 && range_whole)) in extent_write_cache_pages()
2147 u64 start, u64 end, struct writeback_control *wbc, in extent_write_locked_range() argument
2158 .wbc = wbc, in extent_write_locked_range()
2159 .opf = REQ_OP_WRITE | wbc_to_write_flags(wbc), in extent_write_locked_range()
2162 if (wbc->no_cgroup_owner) in extent_write_locked_range()
2205 struct writeback_control *wbc) in extent_writepages() argument
2210 .wbc = wbc, in extent_writepages()
2211 .opf = REQ_OP_WRITE | wbc_to_write_flags(wbc), in extent_writepages()