Home
last modified time | relevance | path

Searched refs:wbc (Results 1 – 25 of 102) sorted by relevance

12345

/linux/include/linux/
H A Dwriteback.h104 static inline blk_opf_t wbc_to_write_flags(struct writeback_control *wbc) in wbc_to_write_flags() argument
108 if (wbc->sync_mode == WB_SYNC_ALL) in wbc_to_write_flags()
110 else if (wbc->for_kupdate || wbc->for_background) in wbc_to_write_flags()
117 #define wbc_blkcg_css(wbc) \ argument
118 ((wbc)->wb ? (wbc)->wb->blkcg_css : blkcg_root_css)
120 #define wbc_blkcg_css(wbc) (blkcg_root_css) argument
216 void wbc_detach_inode(struct writeback_control *wbc);
217 void wbc_account_cgroup_owner(struct writeback_control *wbc, struct folio *folio,
254 void wbc_attach_fdatawrite_inode(struct writeback_control *wbc,
267 static inline void wbc_init_bio(struct writeback_control *wbc, struct bio *bio) in wbc_init_bio() argument
[all …]
H A Dbacking-dev.h261 struct writeback_control *wbc) in inode_to_wb_wbc() argument
267 return wbc->wb ? wbc->wb : &inode_to_bdi(inode)->wb; in inode_to_wb_wbc()
345 struct writeback_control *wbc) in inode_to_wb_wbc() argument
/linux/fs/
H A Dfs-writeback.c733 static void wbc_attach_and_unlock_inode(struct writeback_control *wbc, in wbc_attach_and_unlock_inode() argument
742 wbc->wb = inode_to_wb(inode); in wbc_attach_and_unlock_inode()
743 wbc->inode = inode; in wbc_attach_and_unlock_inode()
745 wbc->wb_id = wbc->wb->memcg_css->id; in wbc_attach_and_unlock_inode()
746 wbc->wb_lcand_id = inode->i_wb_frn_winner; in wbc_attach_and_unlock_inode()
747 wbc->wb_tcand_id = 0; in wbc_attach_and_unlock_inode()
748 wbc->wb_bytes = 0; in wbc_attach_and_unlock_inode()
749 wbc->wb_lcand_bytes = 0; in wbc_attach_and_unlock_inode()
750 wbc->wb_tcand_bytes = 0; in wbc_attach_and_unlock_inode()
752 wb_get(wbc->wb); in wbc_attach_and_unlock_inode()
[all …]
/linux/fs/gfs2/
H A Daops.c93 struct writeback_control *wbc) in gfs2_write_jdata_folio() argument
111 wbc); in gfs2_write_jdata_folio()
124 struct writeback_control *wbc) in __gfs2_jdata_write_folio() argument
138 return gfs2_write_jdata_folio(folio, wbc); in __gfs2_jdata_write_folio()
149 struct writeback_control *wbc) in gfs2_writepages() argument
161 ret = iomap_writepages(mapping, wbc, &wpc, &gfs2_writeback_ops); in gfs2_writepages()
162 if (ret == 0 && wbc->nr_to_write > 0) in gfs2_writepages()
178 struct writeback_control *wbc, in gfs2_write_jdata_batch() argument
217 if (wbc->sync_mode != WB_SYNC_NONE) in gfs2_write_jdata_batch()
227 trace_wbc_writepage(wbc, inode_to_bdi(inode)); in gfs2_write_jdata_batch()
[all …]
H A Dmeta_io.c34 struct writeback_control *wbc) in gfs2_aspace_write_folio() argument
38 blk_opf_t write_flags = REQ_META | REQ_PRIO | wbc_to_write_flags(wbc); in gfs2_aspace_write_folio()
55 if (wbc->sync_mode != WB_SYNC_NONE) { in gfs2_aspace_write_folio()
58 folio_redirty_for_writepage(wbc, folio); in gfs2_aspace_write_folio()
90 struct writeback_control *wbc) in gfs2_aspace_writepages() argument
95 while ((folio = writeback_iter(mapping, wbc, folio, &error))) in gfs2_aspace_writepages()
96 gfs2_aspace_write_folio(folio, wbc); in gfs2_aspace_writepages()
H A Dlog.c92 struct writeback_control *wbc, in gfs2_ail1_start_one() argument
134 ret = mapping->a_ops->writepages(mapping, wbc); in gfs2_ail1_start_one()
144 if (ret || wbc->nr_to_write <= 0) in gfs2_ail1_start_one()
193 void gfs2_ail1_flush(struct gfs2_sbd *sdp, struct writeback_control *wbc) in gfs2_ail1_flush() argument
201 trace_gfs2_ail_flush(sdp, wbc, 1); in gfs2_ail1_flush()
213 if (wbc->nr_to_write <= 0) in gfs2_ail1_flush()
215 ret = gfs2_ail1_start_one(sdp, wbc, tr, &plug); in gfs2_ail1_flush()
229 trace_gfs2_ail_flush(sdp, wbc, 0); in gfs2_ail1_flush()
239 struct writeback_control wbc = { in gfs2_ail1_start() local
246 return gfs2_ail1_flush(sdp, &wbc); in gfs2_ail1_start()
/linux/include/trace/events/
H A Dwriteback.h164 static inline ino_t __trace_wbc_assign_cgroup(struct writeback_control *wbc) in __trace_wbc_assign_cgroup() argument
166 if (wbc->wb) in __trace_wbc_assign_cgroup()
167 return __trace_wb_assign_cgroup(wbc->wb); in __trace_wbc_assign_cgroup()
178 static inline ino_t __trace_wbc_assign_cgroup(struct writeback_control *wbc) in __trace_wbc_assign_cgroup() argument
189 TP_PROTO(struct inode *inode, struct writeback_control *wbc,
192 TP_ARGS(inode, wbc, history),
204 __entry->cgroup_ino = __trace_wbc_assign_cgroup(wbc);
314 TP_PROTO(struct inode *inode, struct writeback_control *wbc),
316 TP_ARGS(inode, wbc),
329 __entry->sync_mode = wbc->sync_mode;
[all …]
/linux/mm/
H A Dpage-writeback.c2453 struct writeback_control *wbc, struct folio *folio) in folio_prepare_writeback()
2472 if (wbc->sync_mode == WB_SYNC_NONE) in wbc_end() argument
2484 static xa_mark_t wbc_to_tag(struct writeback_control *wbc) in writeback_get_folio()
2486 if (wbc->sync_mode == WB_SYNC_ALL || wbc->tagged_writepages) in writeback_get_folio()
2491 static pgoff_t wbc_end(struct writeback_control *wbc) in writeback_get_folio()
2493 if (wbc->range_cyclic) in writeback_get_folio()
2495 return wbc->range_end >> PAGE_SHIFT; in writeback_get_folio()
2499 struct writeback_control *wbc) in writeback_get_folio()
2504 folio = folio_batch_next(&wbc in writeback_get_folio()
2434 folio_prepare_writeback(struct address_space * mapping,struct writeback_control * wbc,struct folio * folio) folio_prepare_writeback() argument
2465 wbc_to_tag(struct writeback_control * wbc) wbc_to_tag() argument
2480 writeback_get_folio(struct address_space * mapping,struct writeback_control * wbc) writeback_get_folio() argument
2533 writeback_iter(struct address_space * mapping,struct writeback_control * wbc,struct folio * folio,int * error) writeback_iter() argument
2633 write_cache_pages(struct address_space * mapping,struct writeback_control * wbc,writepage_t writepage,void * data) write_cache_pages() argument
2652 writeback_use_writepage(struct address_space * mapping,struct writeback_control * wbc) writeback_use_writepage() argument
2672 do_writepages(struct address_space * mapping,struct writeback_control * wbc) do_writepages() argument
2854 folio_redirty_for_writepage(struct writeback_control * wbc,struct folio * folio) folio_redirty_for_writepage() argument
[all...]
H A Dpage_io.c241 int swap_writepage(struct page *page, struct writeback_control *wbc) in swap_writepage() argument
289 __swap_writepage(folio, wbc); in swap_writepage()
376 static void swap_writepage_fs(struct folio *folio, struct writeback_control *wbc) in swap_writepage_fs()
386 if (wbc->swap_plug) in swap_writepage_fs()
387 sio = *wbc->swap_plug; in swap_writepage_fs()
406 if (sio->pages == ARRAY_SIZE(sio->bvec) || !wbc->swap_plug) { in swap_writepage_fs()
410 if (wbc->swap_plug) in swap_writepage_fs()
411 *wbc->swap_plug = sio;
415 struct writeback_control *wbc, struct swap_info_struct *sis) in swap_writepage_bdev_sync()
421 REQ_OP_WRITE | REQ_SWAP | wbc_to_write_flags(wbc)); in swap_writepage_bdev_sync()
374 swap_writepage_fs(struct folio * folio,struct writeback_control * wbc) swap_writepage_fs() argument
413 swap_writepage_bdev_sync(struct folio * folio,struct writeback_control * wbc,struct swap_info_struct * sis) swap_writepage_bdev_sync() argument
434 swap_writepage_bdev_async(struct folio * folio,struct writeback_control * wbc,struct swap_info_struct * sis) swap_writepage_bdev_async() argument
452 __swap_writepage(struct folio * folio,struct writeback_control * wbc) __swap_writepage() argument
[all...]
H A Dswap.h22 int swap_writepage(struct page *page, struct writeback_control *wbc);
23 void __swap_writepage(struct folio *folio, struct writeback_control *wbc);
144 static inline int swap_writepage(struct page *p, struct writeback_control *wbc) in swap_writepage() argument
H A Dfolio-compat.c67 bool redirty_page_for_writepage(struct writeback_control *wbc,
70 return folio_redirty_for_writepage(wbc, page_folio(page)); in add_to_page_cache_lru()
61 redirty_page_for_writepage(struct writeback_control * wbc,struct page * page) redirty_page_for_writepage() argument
/linux/fs/netfs/
H A Dwrite_issue.c44 struct writeback_control *wbc, in netfs_kill_dirty_pages() argument
84 } while ((folio = writeback_iter(mapping, wbc, folio, &error))); in netfs_kill_dirty_pages()
312 struct writeback_control *wbc, in netfs_write_folio() argument
393 folio_redirty_for_writepage(wbc, folio); in netfs_write_folio()
539 struct writeback_control *wbc) in netfs_writepages() argument
547 if (wbc->sync_mode == WB_SYNC_NONE) { in netfs_writepages()
556 folio = writeback_iter(mapping, wbc, NULL, &error); in netfs_writepages()
581 error = netfs_write_folio(wreq, wbc, folio); in netfs_writepages()
584 } while ((folio = writeback_iter(mapping, wbc, folio, &error))); in netfs_writepages()
595 netfs_kill_dirty_pages(mapping, wbc, folio); in netfs_writepages()
[all …]
H A Dbuffered_write.c103 struct writeback_control wbc = { in netfs_perform_write() local
121 wbc_attach_fdatawrite_inode(&wbc, mapping->host); in netfs_perform_write()
125 wbc_detach_inode(&wbc); in netfs_perform_write()
131 wbc_detach_inode(&wbc); in netfs_perform_write()
358 netfs_advance_writethrough(wreq, &wbc, folio, copied, in netfs_perform_write()
385 ret2 = netfs_end_writethrough(wreq, &wbc, writethrough); in netfs_perform_write()
386 wbc_detach_inode(&wbc); in netfs_perform_write()
/linux/fs/btrfs/
H A Dextent_io.c103 struct writeback_control *wbc; member
719 if (bio_ctrl->wbc) { in alloc_new_bio()
737 wbc_init_bio(bio_ctrl->wbc, &bbio->bio); in alloc_new_bio()
788 if (bio_ctrl->wbc) in submit_extent_folio()
789 wbc_account_cgroup_owner(bio_ctrl->wbc, folio, in submit_extent_folio()
1159 struct writeback_control *wbc = bio_ctrl->wbc; in writepage_delalloc() local
1242 wbc); in writepage_delalloc()
1296 wbc->nr_to_write -= delalloc_to_write; in writepage_delalloc()
1300 if (wbc->nr_to_write < delalloc_to_write) { in writepage_delalloc()
1305 wbc->nr_to_write = min_t(u64, delalloc_to_write, in writepage_delalloc()
[all …]
H A Dextent_io.h129 struct writeback_control *wbc; member
244 u64 start, u64 end, struct writeback_control *wbc,
246 int btrfs_writepages(struct address_space *mapping, struct writeback_control *wbc);
248 struct writeback_control *wbc);
/linux/fs/nfs/
H A Dwrite.c319 static int wb_priority(struct writeback_control *wbc) in wb_priority() argument
323 if (wbc->sync_mode == WB_SYNC_ALL) in wb_priority()
634 struct writeback_control *wbc, in nfs_page_async_flush() argument
663 if (wbc->sync_mode == WB_SYNC_NONE) in nfs_page_async_flush()
665 folio_redirty_for_writepage(wbc, folio); in nfs_page_async_flush()
678 static int nfs_do_writepage(struct folio *folio, struct writeback_control *wbc, in nfs_do_writepage() argument
682 return nfs_page_async_flush(folio, wbc, pgio); in nfs_do_writepage()
689 struct writeback_control *wbc) in nfs_writepage_locked() argument
698 err = nfs_do_writepage(folio, wbc, &pgio); in nfs_writepage_locked()
705 struct writeback_control *wbc, void *data) in nfs_writepages_callback() argument
[all …]
H A Dnfs4super.c21 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/fs/ceph/
H A Daddr.c664 static int writepage_nounlock(struct page *page, struct writeback_control *wbc) in writepage_nounlock() argument
702 redirty_page_for_writepage(wbc, page); in writepage_nounlock()
733 redirty_page_for_writepage(wbc, page); in writepage_nounlock()
750 redirty_page_for_writepage(wbc, page); in writepage_nounlock()
779 if (!wbc) in writepage_nounlock()
780 wbc = &tmp_wbc; in writepage_nounlock()
785 redirty_page_for_writepage(wbc, page); in writepage_nounlock()
794 wbc->pages_skipped++; in writepage_nounlock()
813 static int ceph_writepage(struct page *page, struct writeback_control *wbc) in ceph_writepage() argument
820 if (wbc->sync_mode == WB_SYNC_NONE && in ceph_writepage()
[all …]
H A Dcache.h47 struct writeback_control *wbc) in ceph_fscache_unpin_writeback() argument
49 return netfs_unpin_writeback(inode, wbc); in ceph_fscache_unpin_writeback()
104 struct writeback_control *wbc) in ceph_fscache_unpin_writeback() argument
/linux/fs/orangefs/
H A Dinode.c20 struct writeback_control *wbc) in orangefs_writepage_locked() argument
67 static int orangefs_writepage(struct page *page, struct writeback_control *wbc) in orangefs_writepage() argument
70 ret = orangefs_writepage_locked(page, wbc); in orangefs_writepage()
88 struct writeback_control *wbc) in orangefs_writepages_work() argument
150 struct writeback_control *wbc, void *data) in orangefs_writepages_callback() argument
175 orangefs_writepages_work(ow, wbc); in orangefs_writepages_callback()
189 orangefs_writepages_work(ow, wbc); in orangefs_writepages_callback()
192 ret = orangefs_writepage_locked(&folio->page, wbc); in orangefs_writepages_callback()
198 orangefs_writepages_work(ow, wbc); in orangefs_writepages_callback()
206 struct writeback_control *wbc) in orangefs_writepages() argument
[all …]
/linux/fs/9p/
H A Dvfs_super.c263 struct writeback_control *wbc) in v9fs_write_inode() argument
270 return netfs_unpin_writeback(inode, wbc); in v9fs_write_inode()
274 struct writeback_control *wbc) in v9fs_write_inode_dotl() argument
279 return netfs_unpin_writeback(inode, wbc); in v9fs_write_inode_dotl()
/linux/fs/nilfs2/
H A Dmdt.c402 struct writeback_control *wbc) in nilfs_mdt_write_folio() argument
420 folio_redirty_for_writepage(wbc, folio); in nilfs_mdt_write_folio()
428 if (wbc->sync_mode == WB_SYNC_ALL) in nilfs_mdt_write_folio()
430 else if (wbc->for_reclaim) in nilfs_mdt_write_folio()
437 struct writeback_control *wbc) in nilfs_mdt_writeback() argument
442 while ((folio = writeback_iter(mapping, wbc, folio, &error))) in nilfs_mdt_writeback()
443 error = nilfs_mdt_write_folio(folio, wbc); in nilfs_mdt_writeback()
/linux/fs/adfs/
H A Dinode.c38 struct writeback_control *wbc) in adfs_writepages() argument
40 return mpage_writepages(mapping, wbc, adfs_get_block); in adfs_writepages()
360 int adfs_write_inode(struct inode *inode, struct writeback_control *wbc) in adfs_write_inode() argument
373 return adfs_dir_update(sb, &obj, wbc->sync_mode == WB_SYNC_ALL); in adfs_write_inode()
/linux/fs/ext4/
H A Dinode.c1543 struct writeback_control *wbc; member
1934 mpd->wbc->nr_to_write--; in mpage_submit_folio()
2389 mpd->wbc->nr_to_write--; in mpage_journal_page_buffers()
2433 if (mpd->wbc->sync_mode == WB_SYNC_ALL || mpd->wbc->tagged_writepages) in mpage_prepare_extent_to_map()
2464 if (mpd->wbc->sync_mode == WB_SYNC_NONE && in mpage_prepare_extent_to_map()
2465 mpd->wbc->nr_to_write <= in mpage_prepare_extent_to_map()
2490 (mpd->wbc->sync_mode == WB_SYNC_NONE)) || in mpage_prepare_extent_to_map()
2569 struct writeback_control *wbc = mpd->wbc; in ext4_do_writepages() local
2571 long nr_to_write = wbc->nr_to_write; in ext4_do_writepages()
2582 trace_ext4_writepages(inode, wbc); in ext4_do_writepages()
[all …]
/linux/fs/jfs/
H A Dinode.c115 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()
268 struct writeback_control *wbc) in jfs_writepages() argument
270 return mpage_writepages(mapping, wbc, jfs_get_block); in jfs_writepages()

12345