/Linux-v6.1/include/linux/ |
D | writeback.h | 96 static inline blk_opf_t wbc_to_write_flags(struct writeback_control *wbc) in wbc_to_write_flags() argument 100 if (wbc->punt_to_cgroup) in wbc_to_write_flags() 103 if (wbc->sync_mode == WB_SYNC_ALL) in wbc_to_write_flags() 105 else if (wbc->for_kupdate || wbc->for_background) in wbc_to_write_flags() 112 #define wbc_blkcg_css(wbc) \ argument 113 ((wbc)->wb ? (wbc)->wb->blkcg_css : blkcg_root_css) 115 #define wbc_blkcg_css(wbc) (blkcg_root_css) argument 211 void wbc_attach_and_unlock_inode(struct writeback_control *wbc, 214 void wbc_detach_inode(struct writeback_control *wbc); 215 void wbc_account_cgroup_owner(struct writeback_control *wbc, struct page *page, [all …]
|
D | backing-dev.h | 253 struct writeback_control *wbc) in inode_to_wb_wbc() argument 259 return wbc->wb ? wbc->wb : &inode_to_bdi(inode)->wb; in inode_to_wb_wbc() 337 struct writeback_control *wbc) in inode_to_wb_wbc() argument
|
/Linux-v6.1/fs/ |
D | fs-writeback.c | 691 void wbc_attach_and_unlock_inode(struct writeback_control *wbc, in wbc_attach_and_unlock_inode() argument 699 wbc->wb = inode_to_wb(inode); in wbc_attach_and_unlock_inode() 700 wbc->inode = inode; in wbc_attach_and_unlock_inode() 702 wbc->wb_id = wbc->wb->memcg_css->id; in wbc_attach_and_unlock_inode() 703 wbc->wb_lcand_id = inode->i_wb_frn_winner; in wbc_attach_and_unlock_inode() 704 wbc->wb_tcand_id = 0; in wbc_attach_and_unlock_inode() 705 wbc->wb_bytes = 0; in wbc_attach_and_unlock_inode() 706 wbc->wb_lcand_bytes = 0; in wbc_attach_and_unlock_inode() 707 wbc->wb_tcand_bytes = 0; in wbc_attach_and_unlock_inode() 709 wb_get(wbc->wb); in wbc_attach_and_unlock_inode() [all …]
|
D | mpage.c | 448 static int __mpage_writepage(struct page *page, struct writeback_control *wbc, in __mpage_writepage() argument 584 page, wbc)) in __mpage_writepage() 588 REQ_OP_WRITE | wbc_to_write_flags(wbc), in __mpage_writepage() 591 wbc_init_bio(wbc, bio); in __mpage_writepage() 599 wbc_account_cgroup_owner(wbc, page, PAGE_SIZE); in __mpage_writepage() 629 ret = block_write_full_page(page, mpd->get_block, wbc); in __mpage_writepage() 655 struct writeback_control *wbc, get_block_t get_block) in mpage_writepages() argument 664 ret = write_cache_pages(mapping, wbc, __mpage_writepage, &mpd); in mpage_writepages()
|
/Linux-v6.1/fs/gfs2/ |
D | aops.c | 93 struct writeback_control *wbc) in gfs2_write_jdata_page() argument 111 return __block_write_full_page(inode, page, gfs2_get_block_noalloc, wbc, in gfs2_write_jdata_page() 126 static int __gfs2_jdata_writepage(struct page *page, struct writeback_control *wbc) in __gfs2_jdata_writepage() argument 140 return gfs2_write_jdata_page(page, wbc); in __gfs2_jdata_writepage() 152 static int gfs2_jdata_writepage(struct page *page, struct writeback_control *wbc) in gfs2_jdata_writepage() argument 162 return __gfs2_jdata_writepage(page, wbc); in gfs2_jdata_writepage() 165 redirty_page_for_writepage(wbc, page); in gfs2_jdata_writepage() 179 struct writeback_control *wbc) in gfs2_writepages() argument 191 ret = iomap_writepages(mapping, wbc, &wpc, &gfs2_writeback_ops); in gfs2_writepages() 209 struct writeback_control *wbc, in gfs2_write_jdata_pagevec() argument [all …]
|
/Linux-v6.1/include/trace/events/ |
D | writeback.h | 156 static inline ino_t __trace_wbc_assign_cgroup(struct writeback_control *wbc) in __trace_wbc_assign_cgroup() argument 158 if (wbc->wb) in __trace_wbc_assign_cgroup() 159 return __trace_wb_assign_cgroup(wbc->wb); in __trace_wbc_assign_cgroup() 170 static inline ino_t __trace_wbc_assign_cgroup(struct writeback_control *wbc) in __trace_wbc_assign_cgroup() argument 181 TP_PROTO(struct inode *inode, struct writeback_control *wbc, 184 TP_ARGS(inode, wbc, history), 196 __entry->cgroup_ino = __trace_wbc_assign_cgroup(wbc); 306 TP_PROTO(struct inode *inode, struct writeback_control *wbc), 308 TP_ARGS(inode, wbc), 321 __entry->sync_mode = wbc->sync_mode; [all …]
|
/Linux-v6.1/fs/afs/ |
D | write.c | 225 static void afs_redirty_pages(struct writeback_control *wbc, in afs_redirty_pages() argument 247 folio_redirty_for_writepage(wbc, folio); in afs_redirty_pages() 548 struct writeback_control *wbc, in afs_write_back_from_locked_folio() argument 559 long count = wbc->nr_to_write; in afs_write_back_from_locked_folio() 625 wbc->nr_to_write = count; in afs_write_back_from_locked_folio() 639 afs_redirty_pages(wbc, mapping, start, len); in afs_write_back_from_locked_folio() 645 afs_redirty_pages(wbc, mapping, start, len); in afs_write_back_from_locked_folio() 670 int afs_writepage(struct page *subpage, struct writeback_control *wbc) in afs_writepage() argument 683 ret = afs_write_back_from_locked_folio(folio_mapping(folio), wbc, in afs_writepage() 698 struct writeback_control *wbc, in afs_writepages_region() argument [all …]
|
/Linux-v6.1/mm/ |
D | page_io.c | 181 int swap_writepage(struct page *page, struct writeback_control *wbc) in swap_writepage() argument 206 ret = __swap_writepage(&folio->page, wbc); in swap_writepage() 295 static int swap_writepage_fs(struct page *page, struct writeback_control *wbc) in swap_writepage_fs() argument 304 if (wbc->swap_plug) in swap_writepage_fs() 305 sio = *wbc->swap_plug; in swap_writepage_fs() 326 if (sio->pages == ARRAY_SIZE(sio->bvec) || !wbc->swap_plug) { in swap_writepage_fs() 330 if (wbc->swap_plug) in swap_writepage_fs() 331 *wbc->swap_plug = sio; in swap_writepage_fs() 336 int __swap_writepage(struct page *page, struct writeback_control *wbc) in __swap_writepage() argument 349 return swap_writepage_fs(page, wbc); in __swap_writepage() [all …]
|
D | page-writeback.c | 2283 struct writeback_control *wbc, writepage_t writepage, in write_cache_pages() argument 2298 if (wbc->range_cyclic) { in write_cache_pages() 2302 index = wbc->range_start >> PAGE_SHIFT; in write_cache_pages() 2303 end = wbc->range_end >> PAGE_SHIFT; in write_cache_pages() 2304 if (wbc->range_start == 0 && wbc->range_end == LLONG_MAX) in write_cache_pages() 2307 if (wbc->sync_mode == WB_SYNC_ALL || wbc->tagged_writepages) { in write_cache_pages() 2349 if (wbc->sync_mode != WB_SYNC_NONE) in write_cache_pages() 2359 trace_wbc_writepage(wbc, inode_to_bdi(mapping->host)); in write_cache_pages() 2360 error = (*writepage)(page, wbc, data); in write_cache_pages() 2377 } else if (wbc->sync_mode != WB_SYNC_ALL) { in write_cache_pages() [all …]
|
D | swap.h | 20 int swap_writepage(struct page *page, struct writeback_control *wbc); 21 int __swap_writepage(struct page *page, struct writeback_control *wbc); 96 static inline int swap_writepage(struct page *p, struct writeback_control *wbc) in swap_writepage() argument
|
/Linux-v6.1/fs/nfs/ |
D | write.c | 390 static int wb_priority(struct writeback_control *wbc) in wb_priority() argument 394 if (wbc->sync_mode == WB_SYNC_ALL) in wb_priority() 608 struct writeback_control *wbc, in nfs_page_async_flush() argument 637 if (wbc->sync_mode == WB_SYNC_NONE) in nfs_page_async_flush() 639 redirty_page_for_writepage(wbc, page); in nfs_page_async_flush() 652 static int nfs_do_writepage(struct page *page, struct writeback_control *wbc, in nfs_do_writepage() argument 656 return nfs_page_async_flush(page, wbc, pgio); in nfs_do_writepage() 663 struct writeback_control *wbc) in nfs_writepage_locked() argument 669 if (wbc->sync_mode == WB_SYNC_NONE && in nfs_writepage_locked() 676 err = nfs_do_writepage(page, wbc, &pgio); in nfs_writepage_locked() [all …]
|
D | nfs4super.c | 21 static int nfs4_write_inode(struct inode *inode, struct writeback_control *wbc); 47 static int nfs4_write_inode(struct inode *inode, struct writeback_control *wbc) in nfs4_write_inode() argument 49 int ret = nfs_write_inode(inode, wbc); in nfs4_write_inode() 53 wbc->sync_mode == WB_SYNC_ALL); in nfs4_write_inode()
|
/Linux-v6.1/fs/btrfs/ |
D | extent_io.c | 1478 struct writeback_control *wbc, in alloc_new_bio() argument 1504 if (wbc) { in alloc_new_bio() 1531 wbc_init_bio(wbc, bio); in alloc_new_bio() 1558 struct writeback_control *wbc, in submit_extent_page() argument 1585 ret = alloc_new_bio(inode, bio_ctrl, wbc, opf, in submit_extent_page() 1610 if (wbc && added) in submit_extent_page() 1611 wbc_account_cgroup_owner(wbc, page, added); in submit_extent_page() 1947 struct page *page, struct writeback_control *wbc) in writepage_delalloc() argument 1969 delalloc_end, &page_started, &nr_written, wbc); in writepage_delalloc() 1983 if (wbc->nr_to_write < delalloc_to_write) { in writepage_delalloc() [all …]
|
/Linux-v6.1/fs/ceph/ |
D | addr.c | 549 static int writepage_nounlock(struct page *page, struct writeback_control *wbc) in writepage_nounlock() argument 579 redirty_page_for_writepage(wbc, page); in writepage_nounlock() 607 redirty_page_for_writepage(wbc, page); in writepage_nounlock() 634 if (!wbc) in writepage_nounlock() 635 wbc = &tmp_wbc; in writepage_nounlock() 639 redirty_page_for_writepage(wbc, page); in writepage_nounlock() 648 wbc->pages_skipped++; in writepage_nounlock() 666 static int ceph_writepage(struct page *page, struct writeback_control *wbc) in ceph_writepage() argument 673 if (wbc->sync_mode == WB_SYNC_NONE && in ceph_writepage() 679 err = writepage_nounlock(page, wbc); in ceph_writepage() [all …]
|
D | cache.h | 47 struct writeback_control *wbc) in ceph_fscache_unpin_writeback() argument 49 fscache_unpin_writeback(wbc, ceph_fscache_cookie(ceph_inode(inode))); in ceph_fscache_unpin_writeback() 123 struct writeback_control *wbc) in ceph_fscache_unpin_writeback() argument
|
/Linux-v6.1/fs/jfs/ |
D | inode.c | 115 int jfs_write_inode(struct inode *inode, struct writeback_control *wbc) in jfs_write_inode() argument 117 int wait = wbc->sync_mode == WB_SYNC_ALL; in jfs_write_inode() 267 static int jfs_writepage(struct page *page, struct writeback_control *wbc) in jfs_writepage() argument 269 return block_write_full_page(page, jfs_get_block, wbc); in jfs_writepage() 273 struct writeback_control *wbc) in jfs_writepages() argument 275 return mpage_writepages(mapping, wbc, jfs_get_block); in jfs_writepages()
|
/Linux-v6.1/fs/f2fs/ |
D | data.c | 2743 struct writeback_control *wbc, in f2fs_write_single_data_page() argument 2762 .op_flags = wbc_to_write_flags(wbc), in f2fs_write_single_data_page() 2771 .io_wbc = wbc, in f2fs_write_single_data_page() 2830 if (!wbc->for_reclaim) in f2fs_write_single_data_page() 2872 if (wbc->for_reclaim) { in f2fs_write_single_data_page() 2895 redirty_page_for_writepage(wbc, page); in f2fs_write_single_data_page() 2902 if (!err || wbc->for_reclaim) in f2fs_write_single_data_page() 2909 struct writeback_control *wbc) in f2fs_write_data_page() argument 2919 redirty_page_for_writepage(wbc, page); in f2fs_write_data_page() 2927 wbc, FS_DATA_IO, 0, true); in f2fs_write_data_page() [all …]
|
D | checkpoint.c | 318 struct writeback_control *wbc, in __f2fs_write_meta_page() argument 329 if (wbc->for_reclaim && page->index < GET_SUM_BLOCK(sbi, 0)) in __f2fs_write_meta_page() 335 if (wbc->for_reclaim) in __f2fs_write_meta_page() 346 redirty_page_for_writepage(wbc, page); in __f2fs_write_meta_page() 351 struct writeback_control *wbc) in f2fs_write_meta_page() argument 353 return __f2fs_write_meta_page(page, wbc, FS_META_IO); in f2fs_write_meta_page() 357 struct writeback_control *wbc) in f2fs_write_meta_pages() argument 366 if (wbc->sync_mode != WB_SYNC_ALL && in f2fs_write_meta_pages() 375 trace_f2fs_writepages(mapping->host, wbc, META); in f2fs_write_meta_pages() 376 diff = nr_pages_to_write(sbi, META, wbc); in f2fs_write_meta_pages() [all …]
|
D | node.c | 1572 struct writeback_control *wbc, bool do_balance, in __write_node_page() argument 1583 .op_flags = wbc_to_write_flags(wbc), in __write_node_page() 1588 .io_wbc = wbc, in __write_node_page() 1605 wbc->sync_mode == WB_SYNC_NONE && in __write_node_page() 1616 if (wbc->for_reclaim) { in __write_node_page() 1658 if (wbc->for_reclaim) { in __write_node_page() 1677 redirty_page_for_writepage(wbc, page); in __write_node_page() 1686 struct writeback_control wbc = { in f2fs_move_node_page() local 1702 &wbc, false, FS_GC_NODE_IO, NULL)) { in f2fs_move_node_page() 1720 struct writeback_control *wbc) in f2fs_write_node_page() argument [all …]
|
/Linux-v6.1/fs/orangefs/ |
D | inode.c | 20 struct writeback_control *wbc) in orangefs_writepage_locked() argument 70 static int orangefs_writepage(struct page *page, struct writeback_control *wbc) in orangefs_writepage() argument 73 ret = orangefs_writepage_locked(page, wbc); in orangefs_writepage() 91 struct writeback_control *wbc) in orangefs_writepages_work() argument 158 struct writeback_control *wbc, void *data) in orangefs_writepages_callback() argument 184 orangefs_writepages_work(ow, wbc); in orangefs_writepages_callback() 198 orangefs_writepages_work(ow, wbc); in orangefs_writepages_callback() 201 ret = orangefs_writepage_locked(page, wbc); in orangefs_writepages_callback() 207 orangefs_writepages_work(ow, wbc); in orangefs_writepages_callback() 215 struct writeback_control *wbc) in orangefs_writepages() argument [all …]
|
/Linux-v6.1/fs/9p/ |
D | vfs_super.c | 293 struct writeback_control *wbc) in v9fs_write_inode() argument 313 fscache_unpin_writeback(wbc, v9fs_inode_cookie(v9inode)); in v9fs_write_inode() 318 struct writeback_control *wbc) in v9fs_write_inode_dotl() argument 337 fscache_unpin_writeback(wbc, v9fs_inode_cookie(v9inode)); in v9fs_write_inode_dotl()
|
/Linux-v6.1/fs/hpfs/ |
D | file.c | 166 static int hpfs_writepage(struct page *page, struct writeback_control *wbc) in hpfs_writepage() argument 168 return block_write_full_page(page, hpfs_get_block, wbc); in hpfs_writepage() 177 struct writeback_control *wbc) in hpfs_writepages() argument 179 return mpage_writepages(mapping, wbc, hpfs_get_block); in hpfs_writepages()
|
/Linux-v6.1/fs/adfs/ |
D | inode.c | 36 static int adfs_writepage(struct page *page, struct writeback_control *wbc) in adfs_writepage() argument 38 return block_write_full_page(page, adfs_get_block, wbc); in adfs_writepage() 355 int adfs_write_inode(struct inode *inode, struct writeback_control *wbc) in adfs_write_inode() argument 368 return adfs_dir_update(sb, &obj, wbc->sync_mode == WB_SYNC_ALL); in adfs_write_inode()
|
/Linux-v6.1/fs/omfs/ |
D | file.c | 297 static int omfs_writepage(struct page *page, struct writeback_control *wbc) in omfs_writepage() argument 299 return block_write_full_page(page, omfs_get_block, wbc); in omfs_writepage() 303 omfs_writepages(struct address_space *mapping, struct writeback_control *wbc) in omfs_writepages() argument 305 return mpage_writepages(mapping, wbc, omfs_get_block); in omfs_writepages()
|
/Linux-v6.1/fs/ext4/ |
D | inode.c | 1547 struct writeback_control *wbc; member 2003 struct writeback_control *wbc) in ext4_writepage() argument 2057 redirty_page_for_writepage(wbc, page); in ext4_writepage() 2080 ext4_io_submit_init(&io_submit, wbc); in ext4_writepage() 2083 redirty_page_for_writepage(wbc, page); in ext4_writepage() 2123 mpd->wbc->nr_to_write--; in mpage_submit_page() 2577 long left = mpd->wbc->nr_to_write; in mpage_prepare_extent_to_map() 2586 if (mpd->wbc->sync_mode == WB_SYNC_ALL || mpd->wbc->tagged_writepages) in mpage_prepare_extent_to_map() 2611 if (mpd->wbc->sync_mode == WB_SYNC_NONE && left <= 0) in mpage_prepare_extent_to_map() 2628 (mpd->wbc->sync_mode == WB_SYNC_NONE)) || in mpage_prepare_extent_to_map() [all …]
|