Lines Matching refs:wbc
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()
682 int nfs_writepage(struct page *page, struct writeback_control *wbc) in nfs_writepage() argument
686 ret = nfs_writepage_locked(page, wbc); in nfs_writepage()
692 static int nfs_writepages_callback(struct page *page, struct writeback_control *wbc, void *data) in nfs_writepages_callback() argument
696 ret = nfs_do_writepage(page, wbc, data); in nfs_writepages_callback()
707 int nfs_writepages(struct address_space *mapping, struct writeback_control *wbc) in nfs_writepages() argument
716 if (wbc->sync_mode == WB_SYNC_NONE && in nfs_writepages()
722 if (!(mntflags & NFS_MOUNT_WRITE_EAGER) || wbc->for_kupdate || in nfs_writepages()
723 wbc->for_background || wbc->for_sync || wbc->for_reclaim) { in nfs_writepages()
728 priority = wb_priority(wbc); in nfs_writepages()
735 err = write_cache_pages(mapping, wbc, nfs_writepages_callback, in nfs_writepages()
1929 struct writeback_control *wbc) in __nfs_commit_inode() argument
1947 if (wbc && wbc->sync_mode == WB_SYNC_NONE) { in __nfs_commit_inode()
1948 if (nscan < wbc->nr_to_write) in __nfs_commit_inode()
1949 wbc->nr_to_write -= nscan; in __nfs_commit_inode()
1951 wbc->nr_to_write = 0; in __nfs_commit_inode()
1969 int nfs_write_inode(struct inode *inode, struct writeback_control *wbc) in nfs_write_inode() argument
1975 if (wbc->sync_mode == WB_SYNC_NONE) { in nfs_write_inode()
1990 ret = __nfs_commit_inode(inode, flags, wbc); in nfs_write_inode()
2080 struct writeback_control wbc = { in nfs_wb_page() local
2093 ret = nfs_writepage_locked(page, &wbc); in nfs_wb_page()