/fs/ |
D | fs-writeback.c | 557 void wbc_attach_and_unlock_inode(struct writeback_control *wbc, in wbc_attach_and_unlock_inode() argument 565 wbc->wb = inode_to_wb(inode); in wbc_attach_and_unlock_inode() 566 wbc->inode = inode; in wbc_attach_and_unlock_inode() 568 wbc->wb_id = wbc->wb->memcg_css->id; in wbc_attach_and_unlock_inode() 569 wbc->wb_lcand_id = inode->i_wb_frn_winner; in wbc_attach_and_unlock_inode() 570 wbc->wb_tcand_id = 0; in wbc_attach_and_unlock_inode() 571 wbc->wb_bytes = 0; in wbc_attach_and_unlock_inode() 572 wbc->wb_lcand_bytes = 0; in wbc_attach_and_unlock_inode() 573 wbc->wb_tcand_bytes = 0; in wbc_attach_and_unlock_inode() 575 wb_get(wbc->wb); in wbc_attach_and_unlock_inode() [all …]
|
D | mpage.c | 532 static int __mpage_writepage(struct page *page, struct writeback_control *wbc, in __mpage_writepage() argument 555 int op_flags = wbc_to_write_flags(wbc); in __mpage_writepage() 669 page, wbc)) in __mpage_writepage() 677 wbc_init_bio(wbc, bio); in __mpage_writepage() 686 wbc_account_cgroup_owner(wbc, page, PAGE_SIZE); in __mpage_writepage() 714 ret = mapping->a_ops->writepage(page, wbc); in __mpage_writepage() 749 struct writeback_control *wbc, get_block_t get_block) in mpage_writepages() argument 757 ret = generic_writepages(mapping, wbc); in mpage_writepages() 766 ret = write_cache_pages(mapping, wbc, __mpage_writepage, &mpd); in mpage_writepages() 768 int op_flags = (wbc->sync_mode == WB_SYNC_ALL ? in mpage_writepages() [all …]
|
D | buffer.c | 54 enum rw_hint hint, struct writeback_control *wbc); 1671 get_block_t *get_block, struct writeback_control *wbc, in __block_write_full_page() argument 1680 int write_flags = wbc_to_write_flags(wbc); in __block_write_full_page() 1745 if (wbc->sync_mode != WB_SYNC_NONE) { in __block_write_full_page() 1748 redirty_page_for_writepage(wbc, page); in __block_write_full_page() 1769 inode->i_write_hint, wbc); in __block_write_full_page() 1824 inode->i_write_hint, wbc); in __block_write_full_page() 2717 struct writeback_control *wbc) in nobh_writepage() argument 2755 ret = mpage_writepage(page, get_block, wbc); in nobh_writepage() 2757 ret = __block_write_full_page(inode, page, get_block, wbc, in nobh_writepage() [all …]
|
/fs/gfs2/ |
D | aops.c | 89 static int gfs2_writepage(struct page *page, struct writeback_control *wbc) in gfs2_writepage() argument 109 return nobh_writepage(page, gfs2_get_block_noalloc, wbc); in gfs2_writepage() 112 redirty_page_for_writepage(wbc, page); in gfs2_writepage() 122 struct writeback_control *wbc) in gfs2_write_full_page() argument 140 return __block_write_full_page(inode, page, get_block, wbc, in gfs2_write_full_page() 155 static int __gfs2_jdata_writepage(struct page *page, struct writeback_control *wbc) in __gfs2_jdata_writepage() argument 169 return gfs2_write_full_page(page, gfs2_get_block_noalloc, wbc); in __gfs2_jdata_writepage() 181 static int gfs2_jdata_writepage(struct page *page, struct writeback_control *wbc) in gfs2_jdata_writepage() argument 192 ret = __gfs2_jdata_writepage(page, wbc); in gfs2_jdata_writepage() 196 redirty_page_for_writepage(wbc, page); in gfs2_jdata_writepage() [all …]
|
D | log.c | 91 struct writeback_control *wbc, in gfs2_ail1_start_one() argument 128 generic_writepages(mapping, wbc); in gfs2_ail1_start_one() 130 if (wbc->nr_to_write <= 0) in gfs2_ail1_start_one() 148 void gfs2_ail1_flush(struct gfs2_sbd *sdp, struct writeback_control *wbc) in gfs2_ail1_flush() argument 155 trace_gfs2_ail_flush(sdp, wbc, 1); in gfs2_ail1_flush() 160 if (wbc->nr_to_write <= 0) in gfs2_ail1_flush() 162 if (gfs2_ail1_start_one(sdp, wbc, tr, &withdraw)) in gfs2_ail1_flush() 169 trace_gfs2_ail_flush(sdp, wbc, 0); in gfs2_ail1_flush() 179 struct writeback_control wbc = { in gfs2_ail1_start() local 186 return gfs2_ail1_flush(sdp, &wbc); in gfs2_ail1_start()
|
D | meta_io.c | 33 static int gfs2_aspace_writepage(struct page *page, struct writeback_control *wbc) in gfs2_aspace_writepage() argument 37 int write_flags = REQ_META | REQ_PRIO | wbc_to_write_flags(wbc); in gfs2_aspace_writepage() 55 if (wbc->sync_mode != WB_SYNC_NONE) { in gfs2_aspace_writepage() 58 redirty_page_for_writepage(wbc, page); in gfs2_aspace_writepage()
|
/fs/afs/ |
D | write.c | 274 static void afs_redirty_pages(struct writeback_control *wbc, in afs_redirty_pages() argument 299 redirty_page_for_writepage(wbc, page); in afs_redirty_pages() 452 struct writeback_control *wbc, in afs_write_back_from_locked_page() argument 578 afs_redirty_pages(wbc, mapping, first, last); in afs_write_back_from_locked_page() 584 afs_redirty_pages(wbc, mapping, first, last); in afs_write_back_from_locked_page() 609 int afs_writepage(struct page *page, struct writeback_control *wbc) in afs_writepage() argument 615 ret = afs_write_back_from_locked_page(page->mapping, wbc, page, in afs_writepage() 616 wbc->range_end >> PAGE_SHIFT); in afs_writepage() 622 wbc->nr_to_write -= ret; in afs_writepage() 632 struct writeback_control *wbc, in afs_writepages_region() argument [all …]
|
/fs/xfs/ |
D | xfs_aops.c | 645 struct writeback_control *wbc, in xfs_submit_ioend() argument 701 struct writeback_control *wbc) in xfs_alloc_ioend() argument 709 bio->bi_opf = REQ_OP_WRITE | wbc_to_write_flags(wbc); in xfs_alloc_ioend() 711 wbc_init_bio(wbc, bio); in xfs_alloc_ioend() 761 struct writeback_control *wbc, in xfs_add_to_ioend() argument 783 wpc->imap.br_state, offset, bdev, sector, wbc); in xfs_add_to_ioend() 799 wbc_account_cgroup_owner(wbc, page, len); in xfs_add_to_ioend() 868 struct writeback_control *wbc, in xfs_writepage_map() argument 899 xfs_add_to_ioend(inode, file_offset, page, iop, wpc, wbc, in xfs_writepage_map() 955 error2 = xfs_submit_ioend(wbc, ioend, error); in xfs_writepage_map() [all …]
|
/fs/f2fs/ |
D | checkpoint.c | 292 struct writeback_control *wbc, in __f2fs_write_meta_page() argument 303 if (wbc->for_reclaim && page->index < GET_SUM_BLOCK(sbi, 0)) in __f2fs_write_meta_page() 309 if (wbc->for_reclaim) in __f2fs_write_meta_page() 320 redirty_page_for_writepage(wbc, page); in __f2fs_write_meta_page() 325 struct writeback_control *wbc) in f2fs_write_meta_page() argument 327 return __f2fs_write_meta_page(page, wbc, FS_META_IO); in f2fs_write_meta_page() 331 struct writeback_control *wbc) in f2fs_write_meta_pages() argument 340 if (wbc->sync_mode != WB_SYNC_ALL && in f2fs_write_meta_pages() 349 trace_f2fs_writepages(mapping->host, wbc, META); in f2fs_write_meta_pages() 350 diff = nr_pages_to_write(sbi, META, wbc); in f2fs_write_meta_pages() [all …]
|
D | data.c | 2252 struct writeback_control *wbc, in __write_data_page() argument 2269 .op_flags = wbc_to_write_flags(wbc), in __write_data_page() 2276 .io_wbc = wbc, in __write_data_page() 2315 (!wbc->for_reclaim && in __write_data_page() 2326 if (!wbc->for_reclaim) in __write_data_page() 2368 if (wbc->for_reclaim) { in __write_data_page() 2392 redirty_page_for_writepage(wbc, page); in __write_data_page() 2399 if (!err || wbc->for_reclaim) in __write_data_page() 2406 struct writeback_control *wbc) in f2fs_write_data_page() argument 2408 return __write_data_page(page, NULL, NULL, NULL, wbc, FS_DATA_IO); in f2fs_write_data_page() [all …]
|
D | node.c | 1499 struct writeback_control *wbc, bool do_balance, in __write_node_page() argument 1510 .op_flags = wbc_to_write_flags(wbc), in __write_node_page() 1515 .io_wbc = wbc, in __write_node_page() 1528 wbc->sync_mode == WB_SYNC_NONE && in __write_node_page() 1539 if (wbc->for_reclaim) { in __write_node_page() 1580 if (wbc->for_reclaim) { in __write_node_page() 1599 redirty_page_for_writepage(wbc, page); in __write_node_page() 1608 struct writeback_control wbc = { in f2fs_move_node_page() local 1624 &wbc, false, FS_GC_NODE_IO, NULL)) { in f2fs_move_node_page() 1642 struct writeback_control *wbc) in f2fs_write_node_page() argument [all …]
|
/fs/ceph/ |
D | addr.c | 579 static int writepage_nounlock(struct page *page, struct writeback_control *wbc) in writepage_nounlock() argument 608 redirty_page_for_writepage(wbc, page); in writepage_nounlock() 638 if (!wbc) in writepage_nounlock() 639 wbc = &tmp_wbc; in writepage_nounlock() 643 redirty_page_for_writepage(wbc, page); in writepage_nounlock() 652 wbc->pages_skipped++; in writepage_nounlock() 670 static int ceph_writepage(struct page *page, struct writeback_control *wbc) in ceph_writepage() argument 676 err = writepage_nounlock(page, wbc); in ceph_writepage() 780 struct writeback_control *wbc) in ceph_writepages_start() argument 797 wbc->sync_mode == WB_SYNC_NONE ? "NONE" : in ceph_writepages_start() [all …]
|
/fs/nfs/ |
D | write.c | 323 static int wb_priority(struct writeback_control *wbc) in wb_priority() argument 327 if (wbc->sync_mode == WB_SYNC_ALL) in wb_priority() 650 static int nfs_do_writepage(struct page *page, struct writeback_control *wbc, in nfs_do_writepage() argument 658 redirty_page_for_writepage(wbc, page); in nfs_do_writepage() 668 struct writeback_control *wbc) in nfs_writepage_locked() argument 677 err = nfs_do_writepage(page, wbc, &pgio); in nfs_writepage_locked() 687 int nfs_writepage(struct page *page, struct writeback_control *wbc) in nfs_writepage() argument 691 ret = nfs_writepage_locked(page, wbc); in nfs_writepage() 697 static int nfs_writepages_callback(struct page *page, struct writeback_control *wbc, void *data) in nfs_writepages_callback() argument 701 ret = nfs_do_writepage(page, wbc, data); in nfs_writepages_callback() [all …]
|
D | nfs4super.c | 19 static int nfs4_write_inode(struct inode *inode, struct writeback_control *wbc); 76 static int nfs4_write_inode(struct inode *inode, struct writeback_control *wbc) in nfs4_write_inode() argument 78 int ret = nfs_write_inode(inode, wbc); in nfs4_write_inode() 82 wbc->sync_mode == WB_SYNC_ALL); in nfs4_write_inode()
|
/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() 283 static int jfs_writepage(struct page *page, struct writeback_control *wbc) in jfs_writepage() argument 285 return block_write_full_page(page, jfs_get_block, wbc); in jfs_writepage() 289 struct writeback_control *wbc) in jfs_writepages() argument 291 return mpage_writepages(mapping, wbc, jfs_get_block); in jfs_writepages()
|
/fs/btrfs/ |
D | extent_io.c | 2931 struct writeback_control *wbc, in submit_extent_page() argument 2973 if (wbc) in submit_extent_page() 2974 wbc_account_cgroup_owner(wbc, page, page_size); in submit_extent_page() 2986 if (wbc) { in submit_extent_page() 2987 wbc_init_bio(wbc, bio); in submit_extent_page() 2988 wbc_account_cgroup_owner(wbc, page, page_size); in submit_extent_page() 3313 static void update_nr_written(struct writeback_control *wbc, in update_nr_written() argument 3316 wbc->nr_to_write -= nr_written; in update_nr_written() 3330 struct page *page, struct writeback_control *wbc, in writepage_delalloc() argument 3350 delalloc_end, &page_started, nr_written, wbc); in writepage_delalloc() [all …]
|
/fs/orangefs/ |
D | inode.c | 19 struct writeback_control *wbc) in orangefs_writepage_locked() argument 74 static int orangefs_writepage(struct page *page, struct writeback_control *wbc) in orangefs_writepage() argument 77 ret = orangefs_writepage_locked(page, wbc); in orangefs_writepage() 95 struct writeback_control *wbc) in orangefs_writepages_work() argument 162 struct writeback_control *wbc, void *data) in orangefs_writepages_callback() argument 188 orangefs_writepages_work(ow, wbc); in orangefs_writepages_callback() 202 orangefs_writepages_work(ow, wbc); in orangefs_writepages_callback() 205 ret = orangefs_writepage_locked(page, wbc); in orangefs_writepages_callback() 211 orangefs_writepages_work(ow, wbc); in orangefs_writepages_callback() 219 struct writeback_control *wbc) in orangefs_writepages() argument [all …]
|
/fs/hpfs/ |
D | file.c | 123 static int hpfs_writepage(struct page *page, struct writeback_control *wbc) in hpfs_writepage() argument 125 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()
|
/fs/ext4/ |
D | inode.c | 1687 struct writeback_control *wbc; member 2136 struct writeback_control *wbc) in ext4_writepage() argument 2180 redirty_page_for_writepage(wbc, page); in ext4_writepage() 2203 ext4_io_submit_init(&io_submit, wbc); in ext4_writepage() 2206 redirty_page_for_writepage(wbc, page); in ext4_writepage() 2210 ret = ext4_bio_write_page(&io_submit, page, len, wbc, keep_towrite); in ext4_writepage() 2244 err = ext4_bio_write_page(&mpd->io_submit, page, len, mpd->wbc, false); in mpage_submit_page() 2246 mpd->wbc->nr_to_write--; in mpage_submit_page() 2649 long left = mpd->wbc->nr_to_write; in mpage_prepare_extent_to_map() 2658 if (mpd->wbc->sync_mode == WB_SYNC_ALL || mpd->wbc->tagged_writepages) in mpage_prepare_extent_to_map() [all …]
|
D | page-io.c | 354 struct writeback_control *wbc) in ext4_io_submit_init() argument 356 io->io_wbc = wbc; in ext4_io_submit_init() 409 struct writeback_control *wbc, in ext4_bio_write_page() argument 488 if (ret == -ENOMEM && wbc->sync_mode == WB_SYNC_ALL) { in ext4_bio_write_page() 523 redirty_page_for_writepage(wbc, page); in ext4_bio_write_page()
|
/fs/adfs/ |
D | inode.c | 35 static int adfs_writepage(struct page *page, struct writeback_control *wbc) in adfs_writepage() argument 37 return block_write_full_page(page, adfs_get_block, wbc); in adfs_writepage() 350 int adfs_write_inode(struct inode *inode, struct writeback_control *wbc) in adfs_write_inode() argument 364 ret = adfs_dir_update(sb, &obj, wbc->sync_mode == WB_SYNC_ALL); in adfs_write_inode()
|
/fs/omfs/ |
D | file.c | 298 static int omfs_writepage(struct page *page, struct writeback_control *wbc) in omfs_writepage() argument 300 return block_write_full_page(page, omfs_get_block, wbc); in omfs_writepage() 304 omfs_writepages(struct address_space *mapping, struct writeback_control *wbc) in omfs_writepages() argument 306 return mpage_writepages(mapping, wbc, omfs_get_block); in omfs_writepages()
|
/fs/ntfs/ |
D | aops.c | 533 static int ntfs_write_block(struct page *page, struct writeback_control *wbc) in ntfs_write_block() argument 574 redirty_page_for_writepage(wbc, page); in ntfs_write_block() 849 redirty_page_for_writepage(wbc, page); in ntfs_write_block() 903 struct writeback_control *wbc) in ntfs_write_mst_block() argument 943 sync = (wbc->sync_mode == WB_SYNC_ALL); in ntfs_write_mst_block() 1298 redirty_page_for_writepage(wbc, page); in ntfs_write_mst_block() 1339 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/nilfs2/ |
D | inode.c | 163 struct writeback_control *wbc) in nilfs_writepages() argument 173 if (wbc->sync_mode == WB_SYNC_ALL) in nilfs_writepages() 175 wbc->range_start, in nilfs_writepages() 176 wbc->range_end); in nilfs_writepages() 180 static int nilfs_writepage(struct page *page, struct writeback_control *wbc) in nilfs_writepage() argument 197 redirty_page_for_writepage(wbc, page); in nilfs_writepage() 200 if (wbc->sync_mode == WB_SYNC_ALL) { in nilfs_writepage() 204 } else if (wbc->for_reclaim) in nilfs_writepage()
|
/fs/ext2/ |
D | inode.c | 870 static int ext2_writepage(struct page *page, struct writeback_control *wbc) in ext2_writepage() argument 872 return block_write_full_page(page, ext2_get_block, wbc); in ext2_writepage() 928 struct writeback_control *wbc) in ext2_nobh_writepage() argument 930 return nobh_writepage(page, ext2_get_block, wbc); in ext2_nobh_writepage() 955 ext2_writepages(struct address_space *mapping, struct writeback_control *wbc) in ext2_writepages() argument 957 return mpage_writepages(mapping, wbc, ext2_get_block); in ext2_writepages() 961 ext2_dax_writepages(struct address_space *mapping, struct writeback_control *wbc) in ext2_dax_writepages() argument 964 mapping->host->i_sb->s_bdev, wbc); in ext2_dax_writepages() 1639 int ext2_write_inode(struct inode *inode, struct writeback_control *wbc) in ext2_write_inode() argument 1641 return __ext2_write_inode(inode, wbc->sync_mode == WB_SYNC_ALL); in ext2_write_inode()
|