/fs/ |
D | fs-writeback.c | 269 __sync_single_inode(struct inode *inode, struct writeback_control *wbc) in __sync_single_inode() argument 273 int wait = wbc->sync_mode == WB_SYNC_ALL; in __sync_single_inode() 286 ret = do_writepages(mapping, wbc); in __sync_single_inode() 321 if (wbc->for_kupdate) { in __sync_single_inode() 328 if (wbc->nr_to_write <= 0) { in __sync_single_inode() 378 __writeback_single_inode(struct inode *inode, struct writeback_control *wbc) in __writeback_single_inode() argument 387 if ((wbc->sync_mode != WB_SYNC_ALL) && (inode->i_state & I_SYNC)) { in __writeback_single_inode() 413 return __sync_single_inode(inode, wbc); in __writeback_single_inode() 442 struct writeback_control *wbc) in generic_sync_sb_inodes() argument 445 int sync = wbc->sync_mode == WB_SYNC_ALL; in generic_sync_sb_inodes() [all …]
|
D | mpage.c | 442 int __mpage_writepage(struct page *page, struct writeback_control *wbc, in __mpage_writepage() argument 638 ret = mapping->a_ops->writepage(page, wbc); in __mpage_writepage() 674 struct writeback_control *wbc, get_block_t get_block) in mpage_writepages() argument 679 ret = generic_writepages(mapping, wbc); in mpage_writepages() 688 ret = write_cache_pages(mapping, wbc, __mpage_writepage, &mpd); in mpage_writepages() 697 struct writeback_control *wbc) in mpage_writepage() argument 705 int ret = __mpage_writepage(page, wbc, &mpd); in mpage_writepage()
|
D | buffer.c | 1709 get_block_t *get_block, struct writeback_control *wbc) in __block_write_full_page() argument 1785 if (wbc->sync_mode != WB_SYNC_NONE || !wbc->nonblocking) { in __block_write_full_page() 1788 redirty_page_for_writepage(wbc, page); in __block_write_full_page() 2723 struct writeback_control *wbc) in nobh_writepage() argument 2761 ret = mpage_writepage(page, get_block, wbc); in nobh_writepage() 2763 ret = __block_write_full_page(inode, page, get_block, wbc); in nobh_writepage() 2923 struct writeback_control *wbc) in block_write_full_page() argument 2932 return __block_write_full_page(inode, page, get_block, wbc); in block_write_full_page() 2955 return __block_write_full_page(inode, page, get_block, wbc); in block_write_full_page()
|
/fs/gfs2/ |
D | ops_address.c | 98 struct writeback_control *wbc) in gfs2_writepage_common() argument 119 redirty_page_for_writepage(wbc, page); in gfs2_writepage_common() 133 struct writeback_control *wbc) in gfs2_writeback_writepage() argument 137 ret = gfs2_writepage_common(page, wbc); in gfs2_writeback_writepage() 141 ret = mpage_writepage(page, gfs2_get_block_noalloc, wbc); in gfs2_writeback_writepage() 143 ret = block_write_full_page(page, gfs2_get_block_noalloc, wbc); in gfs2_writeback_writepage() 155 struct writeback_control *wbc) in gfs2_ordered_writepage() argument 161 ret = gfs2_writepage_common(page, wbc); in gfs2_ordered_writepage() 170 return block_write_full_page(page, gfs2_get_block_noalloc, wbc); in gfs2_ordered_writepage() 184 static int __gfs2_jdata_writepage(struct page *page, struct writeback_control *wbc) in __gfs2_jdata_writepage() argument [all …]
|
D | meta_io.c | 45 struct writeback_control *wbc) in gfs2_aspace_writepage() argument 47 return block_write_full_page(page, aspace_get_block, wbc); in gfs2_aspace_writepage()
|
/fs/afs/ |
D | write.c | 439 int afs_writepage(struct page *page, struct writeback_control *wbc) in afs_writepage() argument 457 wbc->nr_to_write -= ret; in afs_writepage() 458 if (wbc->nonblocking && bdi_write_congested(bdi)) in afs_writepage() 459 wbc->encountered_congestion = 1; in afs_writepage() 469 struct writeback_control *wbc, in afs_writepages_region() argument 507 if (wbc->sync_mode != WB_SYNC_NONE) in afs_writepages_region() 530 wbc->nr_to_write -= ret; in afs_writepages_region() 532 if (wbc->nonblocking && bdi_write_congested(bdi)) { in afs_writepages_region() 533 wbc->encountered_congestion = 1; in afs_writepages_region() 538 } while (index < end && wbc->nr_to_write > 0); in afs_writepages_region() [all …]
|
/fs/nfs/ |
D | write.c | 174 static int wb_priority(struct writeback_control *wbc) in wb_priority() argument 176 if (wbc->for_reclaim) in wb_priority() 178 if (wbc->for_kupdate) in wb_priority() 266 static int nfs_do_writepage(struct page *page, struct writeback_control *wbc, struct nfs_pageio_des… in nfs_do_writepage() argument 280 static int nfs_writepage_locked(struct page *page, struct writeback_control *wbc) in nfs_writepage_locked() argument 285 nfs_pageio_init_write(&pgio, page->mapping->host, wb_priority(wbc)); in nfs_writepage_locked() 286 err = nfs_do_writepage(page, wbc, &pgio); in nfs_writepage_locked() 295 int nfs_writepage(struct page *page, struct writeback_control *wbc) in nfs_writepage() argument 299 ret = nfs_writepage_locked(page, wbc); in nfs_writepage() 304 static int nfs_writepages_callback(struct page *page, struct writeback_control *wbc, void *data) in nfs_writepages_callback() argument [all …]
|
/fs/ext4/ |
D | inode.c | 1664 struct writeback_control *wbc; member 1719 pages_skipped = mpd->wbc->pages_skipped; in mpage_da_submit_io() 1720 err = mapping->a_ops->writepage(page, mpd->wbc); in mpage_da_submit_io() 1721 if (!err && (pages_skipped == mpd->wbc->pages_skipped)) in mpage_da_submit_io() 2056 struct writeback_control *wbc, void *data) in __mpage_da_writepage() argument 2070 redirty_page_for_writepage(wbc, page); in __mpage_da_writepage() 2089 redirty_page_for_writepage(wbc, page); in __mpage_da_writepage() 2176 struct writeback_control *wbc, in mpage_da_writepages() argument 2182 return generic_writepages(mapping, wbc); in mpage_da_writepages() 2193 ret = write_cache_pages(mapping, wbc, __mpage_da_writepage, mpd); in mpage_da_writepages() [all …]
|
D | fsync.c | 90 struct writeback_control wbc = { in ext4_sync_file() local 94 ret = sync_inode(inode, &wbc); in ext4_sync_file()
|
/fs/ubifs/ |
D | budget.c | 68 struct writeback_control wbc = { in shrink_liability() local 74 generic_sync_sb_inodes(c->vfs_sb, &wbc); in shrink_liability() 75 nr_written = nr_to_write - wbc.nr_to_write; in shrink_liability() 82 memset(&wbc, 0, sizeof(struct writeback_control)); in shrink_liability() 83 wbc.sync_mode = WB_SYNC_ALL; in shrink_liability() 84 wbc.range_end = LLONG_MAX; in shrink_liability() 85 wbc.nr_to_write = nr_to_write; in shrink_liability() 86 generic_sync_sb_inodes(c->vfs_sb, &wbc); in shrink_liability() 87 nr_written = nr_to_write - wbc.nr_to_write; in shrink_liability()
|
/fs/xfs/linux-2.6/ |
D | xfs_aops.c | 784 struct writeback_control *wbc, in xfs_convert_page() argument 889 wbc->nr_to_write--; in xfs_convert_page() 891 wbc->encountered_congestion = 1; in xfs_convert_page() 893 } else if (wbc->nr_to_write <= 0) { in xfs_convert_page() 917 struct writeback_control *wbc, in xfs_cluster_write() argument 934 iomapp, ioendp, wbc, startio, all_bh); in xfs_cluster_write() 967 struct writeback_control *wbc, in xfs_page_state_convert() argument 986 if (wbc->sync_mode == WB_SYNC_NONE && wbc->nonblocking) in xfs_page_state_convert() 1176 wbc, startio, all_bh, tlast); in xfs_page_state_convert() 1224 struct writeback_control *wbc) in xfs_vm_writepage() argument [all …]
|
/fs/ext3/ |
D | fsync.c | 83 struct writeback_control wbc = { in ext3_sync_file() local 87 ret = sync_inode(inode, &wbc); in ext3_sync_file()
|
D | inode.c | 1491 struct writeback_control *wbc) in ext3_ordered_writepage() argument 1523 ret = block_write_full_page(page, ext3_get_block, wbc); in ext3_ordered_writepage() 1551 redirty_page_for_writepage(wbc, page); in ext3_ordered_writepage() 1557 struct writeback_control *wbc) in ext3_writeback_writepage() argument 1574 ret = nobh_writepage(page, ext3_get_block, wbc); in ext3_writeback_writepage() 1576 ret = block_write_full_page(page, ext3_get_block, wbc); in ext3_writeback_writepage() 1584 redirty_page_for_writepage(wbc, page); in ext3_writeback_writepage() 1590 struct writeback_control *wbc) in ext3_journalled_writepage() argument 1633 ret = block_write_full_page(page, ext3_get_block, wbc); in ext3_journalled_writepage() 1642 redirty_page_for_writepage(wbc, page); in ext3_journalled_writepage()
|
/fs/jfs/ |
D | inode.c | 274 static int jfs_writepage(struct page *page, struct writeback_control *wbc) in jfs_writepage() argument 276 return block_write_full_page(page, jfs_get_block, wbc); in jfs_writepage() 280 struct writeback_control *wbc) in jfs_writepages() argument 282 return mpage_writepages(mapping, wbc, jfs_get_block); in jfs_writepages()
|
/fs/cifs/ |
D | file.c | 1213 struct writeback_control *wbc) in cifs_writepages() argument 1243 return generic_writepages(mapping, wbc); in cifs_writepages() 1249 return generic_writepages(mapping, wbc); in cifs_writepages() 1253 return generic_writepages(mapping, wbc); in cifs_writepages() 1260 if (wbc->nonblocking && bdi_write_congested(bdi)) { in cifs_writepages() 1261 wbc->encountered_congestion = 1; in cifs_writepages() 1269 if (wbc->range_cyclic) { in cifs_writepages() 1273 index = wbc->range_start >> PAGE_CACHE_SHIFT; in cifs_writepages() 1274 end = wbc->range_end >> PAGE_CACHE_SHIFT; in cifs_writepages() 1275 if (wbc->range_start == 0 && wbc->range_end == LLONG_MAX) in cifs_writepages() [all …]
|
/fs/omfs/ |
D | file.c | 315 static int omfs_writepage(struct page *page, struct writeback_control *wbc) in omfs_writepage() argument 317 return block_write_full_page(page, omfs_get_block, wbc); in omfs_writepage() 321 omfs_writepages(struct address_space *mapping, struct writeback_control *wbc) in omfs_writepages() argument 323 return mpage_writepages(mapping, wbc, omfs_get_block); in omfs_writepages()
|
/fs/ntfs/ |
D | aops.c | 550 static int ntfs_write_block(struct page *page, struct writeback_control *wbc) in ntfs_write_block() argument 591 redirty_page_for_writepage(wbc, page); in ntfs_write_block() 866 redirty_page_for_writepage(wbc, page); in ntfs_write_block() 920 struct writeback_control *wbc) in ntfs_write_mst_block() argument 957 sync = (wbc->sync_mode == WB_SYNC_ALL); in ntfs_write_mst_block() 1312 redirty_page_for_writepage(wbc, page); in ntfs_write_mst_block() 1353 static int ntfs_writepage(struct page *page, struct writeback_control *wbc) in ntfs_writepage() argument 1424 return ntfs_write_mst_block(page, wbc); in ntfs_writepage() 1426 return ntfs_write_block(page, wbc); in ntfs_writepage() 1522 redirty_page_for_writepage(wbc, page); in ntfs_writepage()
|
/fs/btrfs/ |
D | extent_io.c | 2110 static int __extent_writepage(struct page *page, struct writeback_control *wbc, in __extent_writepage() argument 2200 redirty_page_for_writepage(wbc, page); in __extent_writepage() 2340 wbc->nr_to_write -= nr_written; in __extent_writepage() 2341 if (wbc->range_cyclic || (wbc->nr_to_write > 0 && in __extent_writepage() 2342 wbc->range_start == 0 && wbc->range_end == LLONG_MAX)) in __extent_writepage() 2364 struct writeback_control *wbc, in extent_write_cache_pages() argument 2379 if (wbc->range_cyclic) { in extent_write_cache_pages() 2383 index = wbc->range_start >> PAGE_CACHE_SHIFT; in extent_write_cache_pages() 2384 end = wbc->range_end >> PAGE_CACHE_SHIFT; in extent_write_cache_pages() 2385 if (wbc->range_start == 0 && wbc->range_end == LLONG_MAX) in extent_write_cache_pages() [all …]
|
D | extent_io.h | 188 struct writeback_control *wbc); 195 struct writeback_control *wbc);
|
/fs/hpfs/ |
D | file.c | 85 static int hpfs_writepage(struct page *page, struct writeback_control *wbc) in hpfs_writepage() argument 87 return block_write_full_page(page,hpfs_get_block, wbc); in hpfs_writepage()
|
/fs/bfs/ |
D | file.c | 158 static int bfs_writepage(struct page *page, struct writeback_control *wbc) in bfs_writepage() argument 160 return block_write_full_page(page, bfs_get_block, wbc); in bfs_writepage()
|
/fs/ext2/ |
D | inode.c | 714 static int ext2_writepage(struct page *page, struct writeback_control *wbc) in ext2_writepage() argument 716 return block_write_full_page(page, ext2_get_block, wbc); in ext2_writepage() 763 struct writeback_control *wbc) in ext2_nobh_writepage() argument 765 return nobh_writepage(page, ext2_get_block, wbc); in ext2_nobh_writepage() 785 ext2_writepages(struct address_space *mapping, struct writeback_control *wbc) in ext2_writepages() argument 787 return mpage_writepages(mapping, wbc, ext2_get_block); in ext2_writepages() 1430 struct writeback_control wbc = { in ext2_sync_inode() local 1434 return sync_inode(inode, &wbc); in ext2_sync_inode()
|
/fs/hfsplus/ |
D | inode.c | 25 static int hfsplus_writepage(struct page *page, struct writeback_control *wbc) in hfsplus_writepage() argument 27 return block_write_full_page(page, hfsplus_get_block, wbc); in hfsplus_writepage() 114 struct writeback_control *wbc) in hfsplus_writepages() argument 116 return mpage_writepages(mapping, wbc, hfsplus_get_block); in hfsplus_writepages()
|
/fs/hfs/ |
D | inode.c | 28 static int hfs_writepage(struct page *page, struct writeback_control *wbc) in hfs_writepage() argument 30 return block_write_full_page(page, hfs_get_block, wbc); in hfs_writepage() 117 struct writeback_control *wbc) in hfs_writepages() argument 119 return mpage_writepages(mapping, wbc, hfs_get_block); in hfs_writepages()
|
/fs/adfs/ |
D | inode.c | 54 static int adfs_writepage(struct page *page, struct writeback_control *wbc) in adfs_writepage() argument 56 return block_write_full_page(page, adfs_get_block, wbc); in adfs_writepage()
|