• Home
  • Raw
  • Download

Lines Matching refs:wbc

1488 			 struct writeback_control *wbc,  in alloc_new_bio()  argument
1514 if (wbc) { in alloc_new_bio()
1541 wbc_init_bio(wbc, bio); in alloc_new_bio()
1568 struct writeback_control *wbc, in submit_extent_page() argument
1595 ret = alloc_new_bio(inode, bio_ctrl, wbc, opf, in submit_extent_page()
1620 if (wbc && added) in submit_extent_page()
1621 wbc_account_cgroup_owner(wbc, page, added); in submit_extent_page()
1966 struct page *page, struct writeback_control *wbc) in writepage_delalloc() argument
1988 delalloc_end, &page_started, &nr_written, wbc); in writepage_delalloc()
2002 if (wbc->nr_to_write < delalloc_to_write) { in writepage_delalloc()
2007 wbc->nr_to_write = min_t(u64, delalloc_to_write, in writepage_delalloc()
2017 wbc->nr_to_write -= nr_written; in writepage_delalloc()
2086 struct writeback_control *wbc, in __extent_writepage_io() argument
2101 const blk_opf_t write_flags = wbc_to_write_flags(wbc); in __extent_writepage_io()
2108 redirty_page_for_writepage(wbc, page); in __extent_writepage_io()
2117 wbc->nr_to_write--; in __extent_writepage_io()
2212 ret = submit_extent_page(op | write_flags, wbc, in __extent_writepage_io()
2252 static int __extent_writepage(struct page *page, struct writeback_control *wbc, in __extent_writepage() argument
2266 trace___extent_writepage(page, inode, wbc); in __extent_writepage()
2291 ret = writepage_delalloc(BTRFS_I(inode), page, wbc); in __extent_writepage()
2298 ret = __extent_writepage_io(BTRFS_I(inode), page, wbc, epd, i_size, in __extent_writepage()
2349 ASSERT(wbc); in __extent_writepage()
2350 btrfs_page_unlock_writer(fs_info, page, wbc->range_start, in __extent_writepage()
2351 wbc->range_end + 1 - wbc->range_start); in __extent_writepage()
2687 struct writeback_control *wbc, in write_one_subpage_eb() argument
2692 blk_opf_t write_flags = wbc_to_write_flags(wbc); in write_one_subpage_eb()
2710 ret = submit_extent_page(REQ_OP_WRITE | write_flags, wbc, in write_one_subpage_eb()
2728 wbc->nr_to_write--; in write_one_subpage_eb()
2733 struct writeback_control *wbc, in write_one_eb() argument
2738 blk_opf_t write_flags = wbc_to_write_flags(wbc); in write_one_eb()
2751 ret = submit_extent_page(REQ_OP_WRITE | write_flags, wbc, in write_one_eb()
2764 wbc->nr_to_write--; in write_one_eb()
2794 struct writeback_control *wbc, in submit_eb_subpage() argument
2857 ret = write_one_subpage_eb(eb, wbc, epd); in submit_eb_subpage()
2891 static int submit_eb_page(struct page *page, struct writeback_control *wbc, in submit_eb_page() argument
2904 return submit_eb_subpage(page, wbc, epd); in submit_eb_page()
2937 if (wbc->sync_mode == WB_SYNC_ALL && !wbc->for_sync) in submit_eb_page()
2962 ret = write_one_eb(eb, wbc, epd); in submit_eb_page()
2970 struct writeback_control *wbc) in btree_write_cache_pages() argument
2976 .sync_io = wbc->sync_mode == WB_SYNC_ALL, in btree_write_cache_pages()
2990 if (wbc->range_cyclic) { in btree_write_cache_pages()
2999 index = wbc->range_start >> PAGE_SHIFT; in btree_write_cache_pages()
3000 end = wbc->range_end >> PAGE_SHIFT; in btree_write_cache_pages()
3003 if (wbc->sync_mode == WB_SYNC_ALL) in btree_write_cache_pages()
3009 if (wbc->sync_mode == WB_SYNC_ALL) in btree_write_cache_pages()
3019 ret = submit_eb_page(page, wbc, &epd, &eb_context); in btree_write_cache_pages()
3032 nr_to_write_done = (wbc->sync_mode == WB_SYNC_NONE && in btree_write_cache_pages()
3033 wbc->nr_to_write <= 0); in btree_write_cache_pages()
3103 struct writeback_control *wbc, in extent_write_cache_pages() argument
3132 if (wbc->range_cyclic) { in extent_write_cache_pages()
3141 index = wbc->range_start >> PAGE_SHIFT; in extent_write_cache_pages()
3142 end = wbc->range_end >> PAGE_SHIFT; in extent_write_cache_pages()
3143 if (wbc->range_start == 0 && wbc->range_end == LLONG_MAX) in extent_write_cache_pages()
3155 if (range_whole && wbc->nr_to_write == LONG_MAX && in extent_write_cache_pages()
3158 wbc->tagged_writepages = 1; in extent_write_cache_pages()
3160 if (wbc->sync_mode == WB_SYNC_ALL || wbc->tagged_writepages) in extent_write_cache_pages()
3165 if (wbc->sync_mode == WB_SYNC_ALL || wbc->tagged_writepages) in extent_write_cache_pages()
3194 if (wbc->sync_mode != WB_SYNC_NONE) { in extent_write_cache_pages()
3206 ret = __extent_writepage(page, wbc, epd); in extent_write_cache_pages()
3217 nr_to_write_done = wbc->nr_to_write <= 0; in extent_write_cache_pages()
3240 if (wbc->range_cyclic || (wbc->nr_to_write > 0 && range_whole)) in extent_write_cache_pages()
3313 struct writeback_control *wbc) in extent_writepages() argument
3320 .sync_io = wbc->sync_mode == WB_SYNC_ALL, in extent_writepages()
3328 ret = extent_write_cache_pages(mapping, wbc, &epd); in extent_writepages()