/fs/ |
D | fs-writeback.c | 708 void wbc_attach_and_unlock_inode(struct writeback_control *wbc, in wbc_attach_and_unlock_inode() argument 716 wbc->wb = inode_to_wb(inode); in wbc_attach_and_unlock_inode() 717 wbc->inode = inode; in wbc_attach_and_unlock_inode() 719 wbc->wb_id = wbc->wb->memcg_css->id; in wbc_attach_and_unlock_inode() 720 wbc->wb_lcand_id = inode->i_wb_frn_winner; in wbc_attach_and_unlock_inode() 721 wbc->wb_tcand_id = 0; in wbc_attach_and_unlock_inode() 722 wbc->wb_bytes = 0; in wbc_attach_and_unlock_inode() 723 wbc->wb_lcand_bytes = 0; in wbc_attach_and_unlock_inode() 724 wbc->wb_tcand_bytes = 0; in wbc_attach_and_unlock_inode() 726 wb_get(wbc->wb); in wbc_attach_and_unlock_inode() [all …]
|
D | mpage.c | 455 static int __mpage_writepage(struct page *page, struct writeback_control *wbc, in __mpage_writepage() argument 591 page, wbc)) in __mpage_writepage() 595 REQ_OP_WRITE | wbc_to_write_flags(wbc), in __mpage_writepage() 598 wbc_init_bio(wbc, bio); in __mpage_writepage() 606 wbc_account_cgroup_owner(wbc, page, PAGE_SIZE); in __mpage_writepage() 636 ret = block_write_full_page(page, mpd->get_block, wbc); in __mpage_writepage() 662 struct writeback_control *wbc, get_block_t get_block) in mpage_writepages() argument 671 ret = write_cache_pages(mapping, wbc, __mpage_writepage, &mpd); in mpage_writepages()
|
/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 139 return gfs2_write_jdata_page(page, wbc); in __gfs2_jdata_writepage() 151 static int gfs2_jdata_writepage(struct page *page, struct writeback_control *wbc) in gfs2_jdata_writepage() argument 161 return __gfs2_jdata_writepage(page, wbc); in gfs2_jdata_writepage() 164 redirty_page_for_writepage(wbc, page); in gfs2_jdata_writepage() 178 struct writeback_control *wbc) in gfs2_writepages() argument 190 ret = iomap_writepages(mapping, wbc, &wpc, &gfs2_writeback_ops); in gfs2_writepages() 191 if (ret == 0 && wbc->nr_to_write > 0) in gfs2_writepages() [all …]
|
D | log.c | 83 static int __gfs2_writepage(struct page *page, struct writeback_control *wbc, in __gfs2_writepage() argument 87 int ret = mapping->a_ops->writepage(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 …]
|
/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() 550 struct writeback_control *wbc, in afs_write_back_from_locked_folio() argument 561 long count = wbc->nr_to_write; in afs_write_back_from_locked_folio() 627 wbc->nr_to_write = count; in afs_write_back_from_locked_folio() 641 afs_redirty_pages(wbc, mapping, start, len); in afs_write_back_from_locked_folio() 647 afs_redirty_pages(wbc, mapping, start, len); in afs_write_back_from_locked_folio() 672 int afs_writepage(struct page *subpage, struct writeback_control *wbc) in afs_writepage() argument 685 ret = afs_write_back_from_locked_folio(folio_mapping(folio), wbc, in afs_writepage() 700 struct writeback_control *wbc, in afs_writepages_region() argument [all …]
|
/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()
|
/fs/btrfs/ |
D | extent_io.c | 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() [all …]
|
/fs/ceph/ |
D | addr.c | 603 static int writepage_nounlock(struct page *page, struct writeback_control *wbc) in writepage_nounlock() argument 636 redirty_page_for_writepage(wbc, page); in writepage_nounlock() 664 redirty_page_for_writepage(wbc, page); in writepage_nounlock() 691 if (!wbc) in writepage_nounlock() 692 wbc = &tmp_wbc; in writepage_nounlock() 696 redirty_page_for_writepage(wbc, page); in writepage_nounlock() 705 wbc->pages_skipped++; in writepage_nounlock() 723 static int ceph_writepage(struct page *page, struct writeback_control *wbc) in ceph_writepage() argument 730 if (wbc->sync_mode == WB_SYNC_NONE && in ceph_writepage() 736 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
|
/fs/f2fs/ |
D | data.c | 2839 struct writeback_control *wbc, in f2fs_write_single_data_page() argument 2859 .op_flags = wbc_to_write_flags(wbc), in f2fs_write_single_data_page() 2868 .io_wbc = wbc, in f2fs_write_single_data_page() 2928 if (!wbc->for_reclaim) in f2fs_write_single_data_page() 2971 if (wbc->for_reclaim) { in f2fs_write_single_data_page() 2995 redirty_page_for_writepage(wbc, page); in f2fs_write_single_data_page() 3002 if (!err || wbc->for_reclaim) in f2fs_write_single_data_page() 3009 struct writeback_control *wbc) in f2fs_write_data_page() argument 3019 redirty_page_for_writepage(wbc, page); in f2fs_write_data_page() 3027 wbc, FS_DATA_IO, 0, true); in f2fs_write_data_page() [all …]
|
D | checkpoint.c | 342 struct writeback_control *wbc, in __f2fs_write_meta_page() argument 360 if (wbc->for_reclaim && page->index < GET_SUM_BLOCK(sbi, 0)) in __f2fs_write_meta_page() 366 if (wbc->for_reclaim) in __f2fs_write_meta_page() 377 redirty_page_for_writepage(wbc, page); in __f2fs_write_meta_page() 382 struct writeback_control *wbc) in f2fs_write_meta_page() argument 384 return __f2fs_write_meta_page(page, wbc, FS_META_IO); in f2fs_write_meta_page() 388 struct writeback_control *wbc) in f2fs_write_meta_pages() argument 397 if (wbc->sync_mode != WB_SYNC_ALL && in f2fs_write_meta_pages() 406 trace_f2fs_writepages(mapping->host, wbc, META); in f2fs_write_meta_pages() 407 diff = nr_pages_to_write(sbi, META, wbc); in f2fs_write_meta_pages() [all …]
|
D | node.c | 1578 struct writeback_control *wbc, bool do_balance, in __write_node_page() argument 1589 .op_flags = wbc_to_write_flags(wbc), in __write_node_page() 1594 .io_wbc = wbc, in __write_node_page() 1611 wbc->sync_mode == WB_SYNC_NONE && in __write_node_page() 1622 if (wbc->for_reclaim) { in __write_node_page() 1663 if (wbc->for_reclaim) { in __write_node_page() 1682 redirty_page_for_writepage(wbc, page); in __write_node_page() 1691 struct writeback_control wbc = { in f2fs_move_node_page() local 1707 &wbc, false, FS_GC_NODE_IO, NULL)) { in f2fs_move_node_page() 1725 struct writeback_control *wbc) in f2fs_write_node_page() argument [all …]
|
D | compress.c | 125 struct writeback_control *wbc, bool redirty, int unlock) in f2fs_put_rpages_wbc() argument 133 redirty_page_for_writepage(wbc, cc->rpages[i]); in f2fs_put_rpages_wbc() 1217 struct writeback_control *wbc, in f2fs_write_compressed_pages() argument 1228 .op_flags = wbc_to_write_flags(wbc), in f2fs_write_compressed_pages() 1235 .io_wbc = wbc, in f2fs_write_compressed_pages() 1447 struct writeback_control *wbc, in f2fs_write_raw_pages() argument 1461 redirty_page_for_writepage(wbc, cc->rpages[i]); in f2fs_write_raw_pages() 1488 if (wbc->sync_mode == WB_SYNC_NONE) in f2fs_write_raw_pages() 1497 NULL, NULL, wbc, io_type, in f2fs_write_raw_pages() 1531 struct writeback_control *wbc, in f2fs_write_multi_pages() argument [all …]
|
/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()
|
/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 …]
|
/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()
|
/fs/ext4/ |
D | inode.c | 1557 struct writeback_control *wbc; member 2013 struct writeback_control *wbc) in ext4_writepage() argument 2067 redirty_page_for_writepage(wbc, page); in ext4_writepage() 2090 ext4_io_submit_init(&io_submit, wbc); in ext4_writepage() 2093 redirty_page_for_writepage(wbc, page); in ext4_writepage() 2133 mpd->wbc->nr_to_write--; in mpage_submit_page() 2587 long left = mpd->wbc->nr_to_write; in mpage_prepare_extent_to_map() 2596 if (mpd->wbc->sync_mode == WB_SYNC_ALL || mpd->wbc->tagged_writepages) in mpage_prepare_extent_to_map() 2621 if (mpd->wbc->sync_mode == WB_SYNC_NONE && left <= 0) in mpage_prepare_extent_to_map() 2638 (mpd->wbc->sync_mode == WB_SYNC_NONE)) || in mpage_prepare_extent_to_map() [all …]
|
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() 445 struct writeback_control *wbc = io->io_wbc; in ext4_bio_write_page() local 523 (io->io_bio || wbc->sync_mode == WB_SYNC_ALL)) { in ext4_bio_write_page() 535 redirty_page_for_writepage(wbc, page); in ext4_bio_write_page()
|
/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()
|
/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()
|
/fs/iomap/ |
D | buffered-io.c | 1216 loff_t offset, sector_t sector, struct writeback_control *wbc) in iomap_alloc_ioend() argument 1222 REQ_OP_WRITE | wbc_to_write_flags(wbc), in iomap_alloc_ioend() 1225 wbc_init_bio(wbc, bio); in iomap_alloc_ioend() 1292 struct writeback_control *wbc, struct list_head *iolist) in iomap_add_to_ioend() argument 1301 wpc->ioend = iomap_alloc_ioend(inode, wpc, pos, sector, wbc); in iomap_add_to_ioend() 1312 wbc_account_cgroup_owner(wbc, &folio->page, len); in iomap_add_to_ioend() 1333 struct writeback_control *wbc, struct inode *inode, in iomap_writepage_map() argument 1363 iomap_add_to_ioend(inode, pos, folio, iop, wpc, wbc, in iomap_writepage_map() 1432 iomap_do_writepage(struct page *page, struct writeback_control *wbc, void *data) in iomap_do_writepage() argument 1518 return iomap_writepage_map(wpc, wbc, inode, folio, end_pos); in iomap_do_writepage() [all …]
|
/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()
|
/fs/ntfs/ |
D | aops.c | 531 static int ntfs_write_block(struct page *page, struct writeback_control *wbc) in ntfs_write_block() argument 572 redirty_page_for_writepage(wbc, page); in ntfs_write_block() 848 redirty_page_for_writepage(wbc, page); in ntfs_write_block() 902 struct writeback_control *wbc) in ntfs_write_mst_block() argument 942 sync = (wbc->sync_mode == WB_SYNC_ALL); in ntfs_write_mst_block() 1297 redirty_page_for_writepage(wbc, page); in ntfs_write_mst_block() 1338 static int ntfs_writepage(struct page *page, struct writeback_control *wbc) in ntfs_writepage() argument 1410 return ntfs_write_mst_block(page, wbc); in ntfs_writepage() 1412 return ntfs_write_block(page, wbc); in ntfs_writepage() 1508 redirty_page_for_writepage(wbc, page); in ntfs_writepage()
|
/fs/exfat/ |
D | inode.c | 90 int exfat_write_inode(struct inode *inode, struct writeback_control *wbc) in exfat_write_inode() argument 95 ret = __exfat_write_inode(inode, wbc->sync_mode == WB_SYNC_ALL); in exfat_write_inode() 347 static int exfat_writepage(struct page *page, struct writeback_control *wbc) in exfat_writepage() argument 349 return block_write_full_page(page, exfat_get_block, wbc); in exfat_writepage() 353 struct writeback_control *wbc) in exfat_writepages() argument 355 return mpage_writepages(mapping, wbc, exfat_get_block); in exfat_writepages()
|