fscache: Convert fscache_set_page_dirty() to fscache_dirty_folio()
[linux-2.6-block.git] / fs / afs / write.c
index 5864411bd006ad1078cf94f9ab274e9c9bd6f8d4..88861613734e13f372689d8fb2cc6199a6e5fe35 100644 (file)
@@ -22,9 +22,10 @@ static void afs_write_to_cache(struct afs_vnode *vnode, loff_t start, size_t len
  * Mark a page as having been made dirty and thus needing writeback.  We also
  * need to pin the cache object to write back to.
  */
-int afs_set_page_dirty(struct page *page)
+bool afs_dirty_folio(struct address_space *mapping, struct folio *folio)
 {
-       return fscache_set_page_dirty(page, afs_vnode_cache(AFS_FS_I(page->mapping->host)));
+       return fscache_dirty_folio(mapping, folio,
+                               afs_vnode_cache(AFS_FS_I(mapping->host)));
 }
 static void afs_folio_start_fscache(bool caching, struct folio *folio)
 {