/kernel/linux/linux-5.10/include/linux/ |
D | writeback.h | 97 static inline int wbc_to_write_flags(struct writeback_control *wbc) in wbc_to_write_flags() argument 101 if (wbc->punt_to_cgroup) in wbc_to_write_flags() 104 if (wbc->sync_mode == WB_SYNC_ALL) in wbc_to_write_flags() 106 else if (wbc->for_kupdate || wbc->for_background) in wbc_to_write_flags() 113 wbc_blkcg_css(struct writeback_control *wbc) in wbc_blkcg_css() argument 116 if (wbc->wb) in wbc_blkcg_css() 117 return wbc->wb->blkcg_css; in wbc_blkcg_css() 215 void wbc_attach_and_unlock_inode(struct writeback_control *wbc, 218 void wbc_detach_inode(struct writeback_control *wbc); 219 void wbc_account_cgroup_owner(struct writeback_control *wbc, struct page *page, [all …]
|
D | mpage.h | 21 struct writeback_control *wbc, get_block_t get_block); 23 struct writeback_control *wbc);
|
/kernel/linux/linux-5.10/fs/ |
D | fs-writeback.c | 564 void wbc_attach_and_unlock_inode(struct writeback_control *wbc, in wbc_attach_and_unlock_inode() argument 572 wbc->wb = inode_to_wb(inode); in wbc_attach_and_unlock_inode() 573 wbc->inode = inode; in wbc_attach_and_unlock_inode() 575 wbc->wb_id = wbc->wb->memcg_css->id; in wbc_attach_and_unlock_inode() 576 wbc->wb_lcand_id = inode->i_wb_frn_winner; in wbc_attach_and_unlock_inode() 577 wbc->wb_tcand_id = 0; in wbc_attach_and_unlock_inode() 578 wbc->wb_bytes = 0; in wbc_attach_and_unlock_inode() 579 wbc->wb_lcand_bytes = 0; in wbc_attach_and_unlock_inode() 580 wbc->wb_tcand_bytes = 0; in wbc_attach_and_unlock_inode() 582 wb_get(wbc->wb); in wbc_attach_and_unlock_inode() [all …]
|
D | mpage.c | 480 static int __mpage_writepage(struct page *page, struct writeback_control *wbc, in __mpage_writepage() argument 503 int op_flags = wbc_to_write_flags(wbc); in __mpage_writepage() 617 page, wbc)) in __mpage_writepage() 625 wbc_init_bio(wbc, bio); in __mpage_writepage() 634 wbc_account_cgroup_owner(wbc, page, PAGE_SIZE); in __mpage_writepage() 662 ret = mapping->a_ops->writepage(page, wbc); in __mpage_writepage() 697 struct writeback_control *wbc, get_block_t get_block) in mpage_writepages() argument 705 ret = generic_writepages(mapping, wbc); in mpage_writepages() 714 ret = write_cache_pages(mapping, wbc, __mpage_writepage, &mpd); in mpage_writepages() 716 int op_flags = (wbc->sync_mode == WB_SYNC_ALL ? in mpage_writepages() [all …]
|
/kernel/linux/linux-5.10/fs/gfs2/ |
D | aops.c | 89 static int gfs2_writepage(struct page *page, struct writeback_control *wbc) in gfs2_writepage() argument 100 return iomap_writepage(page, wbc, &wpc, &gfs2_writeback_ops); in gfs2_writepage() 103 redirty_page_for_writepage(wbc, page); in gfs2_writepage() 118 struct writeback_control *wbc) in gfs2_write_jdata_page() argument 136 return __block_write_full_page(inode, page, gfs2_get_block_noalloc, wbc, in gfs2_write_jdata_page() 151 static int __gfs2_jdata_writepage(struct page *page, struct writeback_control *wbc) in __gfs2_jdata_writepage() argument 165 return gfs2_write_jdata_page(page, wbc); in __gfs2_jdata_writepage() 177 static int gfs2_jdata_writepage(struct page *page, struct writeback_control *wbc) in gfs2_jdata_writepage() argument 187 return __gfs2_jdata_writepage(page, wbc); in gfs2_jdata_writepage() 190 redirty_page_for_writepage(wbc, page); in gfs2_jdata_writepage() [all …]
|
/kernel/linux/linux-5.10/include/trace/events/ |
D | writeback.h | 155 static inline ino_t __trace_wbc_assign_cgroup(struct writeback_control *wbc) in __trace_wbc_assign_cgroup() argument 157 if (wbc->wb) in __trace_wbc_assign_cgroup() 158 return __trace_wb_assign_cgroup(wbc->wb); in __trace_wbc_assign_cgroup() 169 static inline ino_t __trace_wbc_assign_cgroup(struct writeback_control *wbc) in __trace_wbc_assign_cgroup() argument 180 TP_PROTO(struct inode *inode, struct writeback_control *wbc, 183 TP_ARGS(inode, wbc, history), 195 __entry->cgroup_ino = __trace_wbc_assign_cgroup(wbc); 305 TP_PROTO(struct inode *inode, struct writeback_control *wbc), 307 TP_ARGS(inode, wbc), 320 __entry->sync_mode = wbc->sync_mode; [all …]
|
/kernel/linux/linux-5.10/fs/afs/ |
D | write.c | 280 static void afs_redirty_pages(struct writeback_control *wbc, in afs_redirty_pages() argument 305 redirty_page_for_writepage(wbc, page); in afs_redirty_pages() 495 struct writeback_control *wbc, in afs_write_back_from_locked_page() argument 627 afs_redirty_pages(wbc, mapping, first, last); in afs_write_back_from_locked_page() 633 afs_redirty_pages(wbc, mapping, first, last); in afs_write_back_from_locked_page() 658 int afs_writepage(struct page *page, struct writeback_control *wbc) in afs_writepage() argument 664 ret = afs_write_back_from_locked_page(page->mapping, wbc, page, in afs_writepage() 665 wbc->range_end >> PAGE_SHIFT); in afs_writepage() 671 wbc->nr_to_write -= ret; in afs_writepage() 681 struct writeback_control *wbc, in afs_writepages_region() argument [all …]
|
/kernel/linux/linux-5.10/mm/ |
D | page-writeback.c | 2164 struct writeback_control *wbc, writepage_t writepage, in write_cache_pages() argument 2179 if (wbc->range_cyclic) { in write_cache_pages() 2183 index = wbc->range_start >> PAGE_SHIFT; in write_cache_pages() 2184 end = wbc->range_end >> PAGE_SHIFT; in write_cache_pages() 2185 if (wbc->range_start == 0 && wbc->range_end == LLONG_MAX) in write_cache_pages() 2188 if (wbc->sync_mode == WB_SYNC_ALL || wbc->tagged_writepages) { in write_cache_pages() 2230 if (wbc->sync_mode != WB_SYNC_NONE) in write_cache_pages() 2240 trace_wbc_writepage(wbc, inode_to_bdi(mapping->host)); in write_cache_pages() 2241 error = (*writepage)(page, wbc, data); in write_cache_pages() 2258 } else if (wbc->sync_mode != WB_SYNC_ALL) { in write_cache_pages() [all …]
|
D | page_io.c | 198 int swap_writepage(struct page *page, struct writeback_control *wbc) in swap_writepage() argument 222 ret = __swap_writepage(page, wbc, end_swap_bio_write); in swap_writepage() 253 int __swap_writepage(struct page *page, struct writeback_control *wbc, in __swap_writepage() argument 302 ret = bdev_write_page(sis->bdev, swap_page_sector(page), page, wbc); in __swap_writepage() 314 bio->bi_opf = REQ_OP_WRITE | REQ_SWAP | wbc_to_write_flags(wbc); in __swap_writepage()
|
/kernel/linux/linux-5.10/fs/ceph/ |
D | addr.c | 591 static int writepage_nounlock(struct page *page, struct writeback_control *wbc) in writepage_nounlock() argument 619 redirty_page_for_writepage(wbc, page); in writepage_nounlock() 647 redirty_page_for_writepage(wbc, page); in writepage_nounlock() 671 if (!wbc) in writepage_nounlock() 672 wbc = &tmp_wbc; in writepage_nounlock() 676 redirty_page_for_writepage(wbc, page); in writepage_nounlock() 685 wbc->pages_skipped++; in writepage_nounlock() 703 static int ceph_writepage(struct page *page, struct writeback_control *wbc) in ceph_writepage() argument 709 err = writepage_nounlock(page, wbc); in ceph_writepage() 815 struct writeback_control *wbc) in ceph_writepages_start() argument [all …]
|
/kernel/linux/linux-5.10/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() 285 static int jfs_writepage(struct page *page, struct writeback_control *wbc) in jfs_writepage() argument 287 return block_write_full_page(page, jfs_get_block, wbc); in jfs_writepage() 291 struct writeback_control *wbc) in jfs_writepages() argument 293 return mpage_writepages(mapping, wbc, jfs_get_block); in jfs_writepages()
|
/kernel/linux/linux-5.10/fs/nfs/ |
D | write.c | 388 static int wb_priority(struct writeback_control *wbc) in wb_priority() argument 392 if (wbc->sync_mode == WB_SYNC_ALL) in wb_priority() 648 static int nfs_do_writepage(struct page *page, struct writeback_control *wbc, in nfs_do_writepage() argument 656 redirty_page_for_writepage(wbc, page); in nfs_do_writepage() 666 struct writeback_control *wbc) in nfs_writepage_locked() argument 675 err = nfs_do_writepage(page, wbc, &pgio); in nfs_writepage_locked() 681 int nfs_writepage(struct page *page, struct writeback_control *wbc) in nfs_writepage() argument 685 ret = nfs_writepage_locked(page, wbc); in nfs_writepage() 691 static int nfs_writepages_callback(struct page *page, struct writeback_control *wbc, void *data) in nfs_writepages_callback() argument 695 ret = nfs_do_writepage(page, wbc, data); in nfs_writepages_callback() [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()
|
/kernel/linux/linux-5.10/fs/btrfs/ |
D | extent_io.c | 3027 struct writeback_control *wbc, in submit_extent_page() argument 3068 if (wbc) in submit_extent_page() 3069 wbc_account_cgroup_owner(wbc, page, page_size); in submit_extent_page() 3080 if (wbc) { in submit_extent_page() 3085 wbc_init_bio(wbc, bio); in submit_extent_page() 3086 wbc_account_cgroup_owner(wbc, page, page_size); in submit_extent_page() 3365 static void update_nr_written(struct writeback_control *wbc, in update_nr_written() argument 3368 wbc->nr_to_write -= nr_written; in update_nr_written() 3382 struct page *page, struct writeback_control *wbc, in writepage_delalloc() argument 3402 delalloc_end, &page_started, nr_written, wbc); in writepage_delalloc() [all …]
|
/kernel/linux/linux-5.10/fs/f2fs/ |
D | data.c | 2778 struct writeback_control *wbc, in f2fs_write_single_data_page() argument 2797 .op_flags = wbc_to_write_flags(wbc), in f2fs_write_single_data_page() 2805 .io_wbc = wbc, in f2fs_write_single_data_page() 2846 (!wbc->for_reclaim && in f2fs_write_single_data_page() 2869 if (!wbc->for_reclaim) in f2fs_write_single_data_page() 2911 if (wbc->for_reclaim) { in f2fs_write_single_data_page() 2934 redirty_page_for_writepage(wbc, page); in f2fs_write_single_data_page() 2941 if (!err || wbc->for_reclaim) in f2fs_write_single_data_page() 2948 struct writeback_control *wbc) in f2fs_write_data_page() argument 2958 redirty_page_for_writepage(wbc, page); in f2fs_write_data_page() [all …]
|
D | checkpoint.c | 305 struct writeback_control *wbc, in __f2fs_write_meta_page() argument 316 if (wbc->for_reclaim && page->index < GET_SUM_BLOCK(sbi, 0)) in __f2fs_write_meta_page() 322 if (wbc->for_reclaim) in __f2fs_write_meta_page() 333 redirty_page_for_writepage(wbc, page); in __f2fs_write_meta_page() 338 struct writeback_control *wbc) in f2fs_write_meta_page() argument 340 return __f2fs_write_meta_page(page, wbc, FS_META_IO); in f2fs_write_meta_page() 344 struct writeback_control *wbc) in f2fs_write_meta_pages() argument 353 if (wbc->sync_mode != WB_SYNC_ALL && in f2fs_write_meta_pages() 362 trace_f2fs_writepages(mapping->host, wbc, META); in f2fs_write_meta_pages() 363 diff = nr_pages_to_write(sbi, META, wbc); in f2fs_write_meta_pages() [all …]
|
D | node.c | 1512 struct writeback_control *wbc, bool do_balance, in __write_node_page() argument 1523 .op_flags = wbc_to_write_flags(wbc), in __write_node_page() 1528 .io_wbc = wbc, in __write_node_page() 1548 wbc->sync_mode == WB_SYNC_NONE && in __write_node_page() 1559 if (wbc->for_reclaim) { in __write_node_page() 1601 if (wbc->for_reclaim) { in __write_node_page() 1620 redirty_page_for_writepage(wbc, page); in __write_node_page() 1629 struct writeback_control wbc = { in f2fs_move_node_page() local 1645 &wbc, false, FS_GC_NODE_IO, NULL)) { in f2fs_move_node_page() 1663 struct writeback_control *wbc) in f2fs_write_node_page() argument [all …]
|
/kernel/linux/linux-5.10/fs/orangefs/ |
D | inode.c | 19 struct writeback_control *wbc) in orangefs_writepage_locked() argument 69 static int orangefs_writepage(struct page *page, struct writeback_control *wbc) in orangefs_writepage() argument 72 ret = orangefs_writepage_locked(page, wbc); in orangefs_writepage() 90 struct writeback_control *wbc) in orangefs_writepages_work() argument 157 struct writeback_control *wbc, void *data) in orangefs_writepages_callback() argument 183 orangefs_writepages_work(ow, wbc); in orangefs_writepages_callback() 197 orangefs_writepages_work(ow, wbc); in orangefs_writepages_callback() 200 ret = orangefs_writepage_locked(page, wbc); in orangefs_writepages_callback() 206 orangefs_writepages_work(ow, wbc); in orangefs_writepages_callback() 214 struct writeback_control *wbc) in orangefs_writepages() argument [all …]
|
/kernel/linux/linux-5.10/fs/xfs/ |
D | xfs_aops.c | 576 struct writeback_control *wbc) in xfs_vm_writepage() argument 581 redirty_page_for_writepage(wbc, page); in xfs_vm_writepage() 586 return iomap_writepage(page, wbc, &wpc.ctx, &xfs_writeback_ops); in xfs_vm_writepage() 592 struct writeback_control *wbc) in xfs_vm_writepages() argument 604 return iomap_writepages(mapping, wbc, &wpc.ctx, &xfs_writeback_ops); in xfs_vm_writepages() 610 struct writeback_control *wbc) in xfs_dax_writepages() argument 616 xfs_inode_buftarg(ip)->bt_daxdev, wbc); in xfs_dax_writepages()
|
/kernel/linux/linux-5.10/fs/hpfs/ |
D | file.c | 124 static int hpfs_writepage(struct page *page, struct writeback_control *wbc) in hpfs_writepage() argument 126 return block_write_full_page(page, hpfs_get_block, wbc); in hpfs_writepage() 135 struct writeback_control *wbc) in hpfs_writepages() argument 137 return mpage_writepages(mapping, wbc, hpfs_get_block); in hpfs_writepages()
|
/kernel/linux/linux-5.10/fs/iomap/ |
D | buffered-io.c | 1221 loff_t offset, sector_t sector, struct writeback_control *wbc) in iomap_alloc_ioend() argument 1229 bio->bi_opf = REQ_OP_WRITE | wbc_to_write_flags(wbc); in iomap_alloc_ioend() 1231 wbc_init_bio(wbc, bio); in iomap_alloc_ioend() 1292 struct writeback_control *wbc, struct list_head *iolist) in iomap_add_to_ioend() argument 1302 wpc->ioend = iomap_alloc_ioend(inode, wpc, offset, sector, wbc); in iomap_add_to_ioend() 1319 wbc_account_cgroup_owner(wbc, page, len); in iomap_add_to_ioend() 1340 struct writeback_control *wbc, struct inode *inode, in iomap_writepage_map() argument 1371 iomap_add_to_ioend(inode, file_offset, page, iop, wpc, wbc, in iomap_writepage_map() 1439 iomap_do_writepage(struct page *page, struct writeback_control *wbc, void *data) in iomap_do_writepage() argument 1529 return iomap_writepage_map(wpc, wbc, inode, page, end_offset); in iomap_do_writepage() [all …]
|
/kernel/linux/linux-5.10/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() 352 int adfs_write_inode(struct inode *inode, struct writeback_control *wbc) in adfs_write_inode() argument 366 ret = adfs_dir_update(sb, &obj, wbc->sync_mode == WB_SYNC_ALL); in adfs_write_inode()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/fs/ext4/ |
D | inode.c | 1540 struct writeback_control *wbc; member 2019 struct writeback_control *wbc) in ext4_writepage() argument 2078 redirty_page_for_writepage(wbc, page); in ext4_writepage() 2101 ext4_io_submit_init(&io_submit, wbc); in ext4_writepage() 2104 redirty_page_for_writepage(wbc, page); in ext4_writepage() 2108 ret = ext4_bio_write_page(&io_submit, page, len, wbc, keep_towrite); in ext4_writepage() 2142 err = ext4_bio_write_page(&mpd->io_submit, page, len, mpd->wbc, false); in mpage_submit_page() 2144 mpd->wbc->nr_to_write--; in mpage_submit_page() 2601 long left = mpd->wbc->nr_to_write; in mpage_prepare_extent_to_map() 2610 if (mpd->wbc->sync_mode == WB_SYNC_ALL || mpd->wbc->tagged_writepages) in mpage_prepare_extent_to_map() [all …]
|
D | page-io.c | 390 struct writeback_control *wbc) in ext4_io_submit_init() argument 392 io->io_wbc = wbc; in ext4_io_submit_init() 443 struct writeback_control *wbc, in ext4_bio_write_page() argument 530 (io->io_bio || wbc->sync_mode == WB_SYNC_ALL)) { in ext4_bio_write_page() 541 redirty_page_for_writepage(wbc, page); in ext4_bio_write_page()
|