/linux-6.6.21/include/linux/ |
D | writeback.h | 94 static inline blk_opf_t wbc_to_write_flags(struct writeback_control *wbc) in wbc_to_write_flags() argument 98 if (wbc->sync_mode == WB_SYNC_ALL) in wbc_to_write_flags() 100 else if (wbc->for_kupdate || wbc->for_background) in wbc_to_write_flags() 107 #define wbc_blkcg_css(wbc) \ argument 108 ((wbc)->wb ? (wbc)->wb->blkcg_css : blkcg_root_css) 110 #define wbc_blkcg_css(wbc) (blkcg_root_css) argument 206 void wbc_attach_and_unlock_inode(struct writeback_control *wbc, 209 void wbc_detach_inode(struct writeback_control *wbc); 210 void wbc_account_cgroup_owner(struct writeback_control *wbc, struct page *page, 256 static inline void wbc_attach_fdatawrite_inode(struct writeback_control *wbc, in wbc_attach_fdatawrite_inode() argument [all …]
|
D | backing-dev.h | 262 struct writeback_control *wbc) in inode_to_wb_wbc() argument 268 return wbc->wb ? wbc->wb : &inode_to_bdi(inode)->wb; in inode_to_wb_wbc() 346 struct writeback_control *wbc) in inode_to_wb_wbc() argument
|
/linux-6.6.21/fs/gfs2/ |
D | aops.c | 93 struct writeback_control *wbc) in gfs2_write_jdata_folio() argument 111 wbc, end_buffer_async_write); in gfs2_write_jdata_folio() 125 struct writeback_control *wbc) in __gfs2_jdata_write_folio() argument 139 return gfs2_write_jdata_folio(folio, wbc); in __gfs2_jdata_write_folio() 151 static int gfs2_jdata_writepage(struct page *page, struct writeback_control *wbc) in gfs2_jdata_writepage() argument 162 return __gfs2_jdata_write_folio(folio, wbc); in gfs2_jdata_writepage() 165 folio_redirty_for_writepage(wbc, folio); 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() 192 if (ret == 0 && wbc->nr_to_write > 0) in gfs2_writepages() [all …]
|
D | log.c | 83 static int __gfs2_writepage(struct folio *folio, struct writeback_control *wbc, in __gfs2_writepage() argument 87 int ret = mapping->a_ops->writepage(&folio->page, wbc); in __gfs2_writepage() 101 struct writeback_control *wbc, in gfs2_ail1_start_one() argument 143 ret = write_cache_pages(mapping, wbc, __gfs2_writepage, mapping); in gfs2_ail1_start_one() 152 if (ret || wbc->nr_to_write <= 0) in gfs2_ail1_start_one() 201 void gfs2_ail1_flush(struct gfs2_sbd *sdp, struct writeback_control *wbc) in gfs2_ail1_flush() argument 209 trace_gfs2_ail_flush(sdp, wbc, 1); in gfs2_ail1_flush() 221 if (wbc->nr_to_write <= 0) in gfs2_ail1_flush() 223 ret = gfs2_ail1_start_one(sdp, wbc, tr, &plug); in gfs2_ail1_flush() 237 trace_gfs2_ail_flush(sdp, wbc, 0); in gfs2_ail1_flush() [all …]
|
/linux-6.6.21/fs/ |
D | fs-writeback.c | 710 void wbc_attach_and_unlock_inode(struct writeback_control *wbc, in wbc_attach_and_unlock_inode() argument 718 wbc->wb = inode_to_wb(inode); in wbc_attach_and_unlock_inode() 719 wbc->inode = inode; in wbc_attach_and_unlock_inode() 721 wbc->wb_id = wbc->wb->memcg_css->id; in wbc_attach_and_unlock_inode() 722 wbc->wb_lcand_id = inode->i_wb_frn_winner; in wbc_attach_and_unlock_inode() 723 wbc->wb_tcand_id = 0; in wbc_attach_and_unlock_inode() 724 wbc->wb_bytes = 0; in wbc_attach_and_unlock_inode() 725 wbc->wb_lcand_bytes = 0; in wbc_attach_and_unlock_inode() 726 wbc->wb_tcand_bytes = 0; in wbc_attach_and_unlock_inode() 728 wb_get(wbc->wb); in wbc_attach_and_unlock_inode() [all …]
|
D | mpage.c | 469 static int __mpage_writepage(struct folio *folio, struct writeback_control *wbc, in __mpage_writepage() argument 611 REQ_OP_WRITE | wbc_to_write_flags(wbc), in __mpage_writepage() 614 wbc_init_bio(wbc, bio); in __mpage_writepage() 622 wbc_account_cgroup_owner(wbc, &folio->page, folio_size(folio)); in __mpage_writepage() 652 ret = block_write_full_page(&folio->page, mpd->get_block, wbc); in __mpage_writepage() 670 struct writeback_control *wbc, get_block_t get_block) in mpage_writepages() argument 679 ret = write_cache_pages(mapping, wbc, __mpage_writepage, &mpd); in mpage_writepages()
|
/linux-6.6.21/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-6.6.21/fs/afs/ |
D | write.c | 18 struct writeback_control *wbc, 53 struct writeback_control wbc = { in afs_flush_conflicting_write() local 61 return afs_writepages_region(mapping, &wbc, folio_pos(folio), LLONG_MAX, in afs_flush_conflicting_write() 257 static void afs_redirty_pages(struct writeback_control *wbc, in afs_redirty_pages() argument 279 folio_redirty_for_writepage(wbc, folio); in afs_redirty_pages() 582 struct writeback_control *wbc, in afs_write_back_from_locked_folio() argument 593 long count = wbc->nr_to_write; in afs_write_back_from_locked_folio() 659 wbc->nr_to_write = count; in afs_write_back_from_locked_folio() 673 afs_redirty_pages(wbc, mapping, start, len); in afs_write_back_from_locked_folio() 679 afs_redirty_pages(wbc, mapping, start, len); in afs_write_back_from_locked_folio() [all …]
|
/linux-6.6.21/mm/ |
D | page_io.c | 179 int swap_writepage(struct page *page, struct writeback_control *wbc) in swap_writepage() argument 204 __swap_writepage(&folio->page, wbc); in swap_writepage() 292 static void swap_writepage_fs(struct page *page, struct writeback_control *wbc) in swap_writepage_fs() argument 301 if (wbc->swap_plug) in swap_writepage_fs() 302 sio = *wbc->swap_plug; in swap_writepage_fs() 321 if (sio->pages == ARRAY_SIZE(sio->bvec) || !wbc->swap_plug) { in swap_writepage_fs() 325 if (wbc->swap_plug) in swap_writepage_fs() 326 *wbc->swap_plug = sio; in swap_writepage_fs() 330 struct writeback_control *wbc, struct swap_info_struct *sis) in swap_writepage_bdev_sync() argument 337 REQ_OP_WRITE | REQ_SWAP | wbc_to_write_flags(wbc)); in swap_writepage_bdev_sync() [all …]
|
D | page-writeback.c | 2395 struct writeback_control *wbc, writepage_t writepage, in write_cache_pages() argument 2410 if (wbc->range_cyclic) { in write_cache_pages() 2414 index = wbc->range_start >> PAGE_SHIFT; in write_cache_pages() 2415 end = wbc->range_end >> PAGE_SHIFT; in write_cache_pages() 2416 if (wbc->range_start == 0 && wbc->range_end == LLONG_MAX) in write_cache_pages() 2419 if (wbc->sync_mode == WB_SYNC_ALL || wbc->tagged_writepages) { in write_cache_pages() 2463 if (wbc->sync_mode != WB_SYNC_NONE) in write_cache_pages() 2473 trace_wbc_writepage(wbc, inode_to_bdi(mapping->host)); in write_cache_pages() 2474 error = writepage(folio, wbc, data); in write_cache_pages() 2492 } else if (wbc->sync_mode != WB_SYNC_ALL) { in write_cache_pages() [all …]
|
D | swap.h | 19 int swap_writepage(struct page *page, struct writeback_control *wbc); 20 void __swap_writepage(struct page *page, struct writeback_control *wbc); 95 static inline int swap_writepage(struct page *p, struct writeback_control *wbc) in swap_writepage() argument
|
D | folio-compat.c | 73 bool redirty_page_for_writepage(struct writeback_control *wbc, in redirty_page_for_writepage() argument 76 return folio_redirty_for_writepage(wbc, page_folio(page)); in redirty_page_for_writepage()
|
/linux-6.6.21/fs/nfs/ |
D | write.c | 392 static int wb_priority(struct writeback_control *wbc) in wb_priority() argument 396 if (wbc->sync_mode == WB_SYNC_ALL) in wb_priority() 609 struct writeback_control *wbc, in nfs_page_async_flush() argument 638 if (wbc->sync_mode == WB_SYNC_NONE) in nfs_page_async_flush() 640 folio_redirty_for_writepage(wbc, folio); in nfs_page_async_flush() 653 static int nfs_do_writepage(struct folio *folio, struct writeback_control *wbc, in nfs_do_writepage() argument 657 return nfs_page_async_flush(folio, wbc, pgio); in nfs_do_writepage() 664 struct writeback_control *wbc) in nfs_writepage_locked() argument 670 if (wbc->sync_mode == WB_SYNC_NONE && in nfs_writepage_locked() 672 folio_redirty_for_writepage(wbc, folio); 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-6.6.21/fs/btrfs/ |
D | extent_io.c | 105 struct writeback_control *wbc; member 759 if (bio_ctrl->wbc) { in alloc_new_bio() 777 wbc_init_bio(bio_ctrl->wbc, &bbio->bio); in alloc_new_bio() 828 if (bio_ctrl->wbc) in submit_extent_page() 829 wbc_account_cgroup_owner(bio_ctrl->wbc, page, len); in submit_extent_page() 1173 struct page *page, struct writeback_control *wbc) in writepage_delalloc() argument 1191 delalloc_end, wbc); in writepage_delalloc() 1210 wbc->nr_to_write -= delalloc_to_write; in writepage_delalloc() 1214 if (wbc->nr_to_write < delalloc_to_write) { in writepage_delalloc() 1219 wbc->nr_to_write = min_t(u64, delalloc_to_write, in writepage_delalloc() [all …]
|
D | extent_io.h | 97 struct writeback_control *wbc; member 188 u64 start, u64 end, struct writeback_control *wbc, 191 struct writeback_control *wbc); 193 struct writeback_control *wbc);
|
/linux-6.6.21/fs/ceph/ |
D | addr.c | 656 static int writepage_nounlock(struct page *page, struct writeback_control *wbc) in writepage_nounlock() argument 691 redirty_page_for_writepage(wbc, page); in writepage_nounlock() 721 redirty_page_for_writepage(wbc, page); in writepage_nounlock() 738 redirty_page_for_writepage(wbc, page); in writepage_nounlock() 766 if (!wbc) in writepage_nounlock() 767 wbc = &tmp_wbc; in writepage_nounlock() 771 redirty_page_for_writepage(wbc, page); in writepage_nounlock() 780 wbc->pages_skipped++; in writepage_nounlock() 798 static int ceph_writepage(struct page *page, struct writeback_control *wbc) in ceph_writepage() argument 805 if (wbc->sync_mode == WB_SYNC_NONE && 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-6.6.21/fs/f2fs/ |
D | data.c | 2824 struct writeback_control *wbc, in f2fs_write_single_data_page() argument 2844 .op_flags = wbc_to_write_flags(wbc), in f2fs_write_single_data_page() 2853 .io_wbc = wbc, in f2fs_write_single_data_page() 2917 if (!wbc->for_reclaim) in f2fs_write_single_data_page() 2959 if (wbc->for_reclaim) { in f2fs_write_single_data_page() 2983 redirty_page_for_writepage(wbc, page); in f2fs_write_single_data_page() 2990 if (!err || wbc->for_reclaim) in f2fs_write_single_data_page() 2997 struct writeback_control *wbc) in f2fs_write_data_page() argument 3007 redirty_page_for_writepage(wbc, page); in f2fs_write_data_page() 3015 wbc, FS_DATA_IO, 0, true); in f2fs_write_data_page() [all …]
|
D | checkpoint.c | 328 struct writeback_control *wbc, in __f2fs_write_meta_page() argument 346 if (wbc->for_reclaim && page->index < GET_SUM_BLOCK(sbi, 0)) in __f2fs_write_meta_page() 352 if (wbc->for_reclaim) in __f2fs_write_meta_page() 363 redirty_page_for_writepage(wbc, page); in __f2fs_write_meta_page() 368 struct writeback_control *wbc) in f2fs_write_meta_page() argument 370 return __f2fs_write_meta_page(page, wbc, FS_META_IO); in f2fs_write_meta_page() 374 struct writeback_control *wbc) in f2fs_write_meta_pages() argument 383 if (wbc->sync_mode != WB_SYNC_ALL && in f2fs_write_meta_pages() 392 trace_f2fs_writepages(mapping->host, wbc, META); in f2fs_write_meta_pages() 393 diff = nr_pages_to_write(sbi, META, wbc); in f2fs_write_meta_pages() [all …]
|
D | node.c | 1589 struct writeback_control *wbc, bool do_balance, in __write_node_page() argument 1600 .op_flags = wbc_to_write_flags(wbc), in __write_node_page() 1605 .io_wbc = wbc, in __write_node_page() 1625 wbc->sync_mode == WB_SYNC_NONE && in __write_node_page() 1636 if (wbc->for_reclaim) { in __write_node_page() 1677 if (wbc->for_reclaim) { in __write_node_page() 1696 redirty_page_for_writepage(wbc, page); in __write_node_page() 1705 struct writeback_control wbc = { in f2fs_move_node_page() local 1721 &wbc, false, FS_GC_NODE_IO, NULL)) { in f2fs_move_node_page() 1739 struct writeback_control *wbc) in f2fs_write_node_page() argument [all …]
|
/linux-6.6.21/fs/orangefs/ |
D | inode.c | 20 struct writeback_control *wbc) in orangefs_writepage_locked() argument 68 static int orangefs_writepage(struct page *page, struct writeback_control *wbc) in orangefs_writepage() argument 71 ret = orangefs_writepage_locked(page, wbc); in orangefs_writepage() 89 struct writeback_control *wbc) in orangefs_writepages_work() argument 152 struct writeback_control *wbc, void *data) in orangefs_writepages_callback() argument 177 orangefs_writepages_work(ow, wbc); in orangefs_writepages_callback() 191 orangefs_writepages_work(ow, wbc); in orangefs_writepages_callback() 194 ret = orangefs_writepage_locked(&folio->page, wbc); in orangefs_writepages_callback() 200 orangefs_writepages_work(ow, wbc); in orangefs_writepages_callback() 208 struct writeback_control *wbc) in orangefs_writepages() argument [all …]
|
/linux-6.6.21/fs/9p/ |
D | vfs_super.c | 290 struct writeback_control *wbc) in v9fs_write_inode() argument 301 fscache_unpin_writeback(wbc, v9fs_inode_cookie(v9inode)); in v9fs_write_inode() 307 struct writeback_control *wbc) in v9fs_write_inode_dotl() argument 314 fscache_unpin_writeback(wbc, v9fs_inode_cookie(v9inode)); in v9fs_write_inode_dotl()
|
/linux-6.6.21/fs/ext4/ |
D | page-io.c | 384 struct writeback_control *wbc) in ext4_io_submit_init() argument 386 io->io_wbc = wbc; in ext4_io_submit_init() 438 struct writeback_control *wbc = io->io_wbc; in ext4_bio_write_folio() local 488 folio_redirty_for_writepage(wbc, folio); in ext4_bio_write_folio() 531 (io->io_bio || wbc->sync_mode == WB_SYNC_ALL)) { in ext4_bio_write_folio() 543 folio_redirty_for_writepage(wbc, folio); in ext4_bio_write_folio()
|
/linux-6.6.21/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()
|