Lines Matching refs:wbc
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
308 ret = nfs_do_writepage(page, wbc, data); in nfs_writepages_callback()
313 int nfs_writepages(struct address_space *mapping, struct writeback_control *wbc) in nfs_writepages() argument
321 nfs_pageio_init_write(&pgio, inode, wb_priority(wbc)); in nfs_writepages()
322 err = write_cache_pages(mapping, wbc, nfs_writepages_callback, &pgio); in nfs_writepages()
1356 long nfs_sync_mapping_wait(struct address_space *mapping, struct writeback_control *wbc, int how) in nfs_sync_mapping_wait() argument
1366 if (wbc->range_cyclic) in nfs_sync_mapping_wait()
1369 idx_start = wbc->range_start >> PAGE_CACHE_SHIFT; in nfs_sync_mapping_wait()
1370 idx_end = wbc->range_end >> PAGE_CACHE_SHIFT; in nfs_sync_mapping_wait()
1407 static int __nfs_write_mapping(struct address_space *mapping, struct writeback_control *wbc, int ho… in __nfs_write_mapping() argument
1411 ret = nfs_writepages(mapping, wbc); in __nfs_write_mapping()
1414 ret = nfs_sync_mapping_wait(mapping, wbc, how); in __nfs_write_mapping()
1426 struct writeback_control wbc = { in nfs_write_mapping() local
1436 ret = __nfs_write_mapping(mapping, &wbc, how); in nfs_write_mapping()
1439 wbc.sync_mode = WB_SYNC_ALL; in nfs_write_mapping()
1440 return __nfs_write_mapping(mapping, &wbc, how); in nfs_write_mapping()
1461 struct writeback_control wbc = { in nfs_wb_page_cancel() local
1495 ret = nfs_sync_mapping_wait(page->mapping, &wbc, FLUSH_INVALIDATE); in nfs_wb_page_cancel()
1505 struct writeback_control wbc = { in nfs_wb_page_priority() local
1516 ret = nfs_writepage_locked(page, &wbc); in nfs_wb_page_priority()
1521 ret = nfs_sync_mapping_wait(page->mapping, &wbc, how); in nfs_wb_page_priority()