fscache: Convert fscache_set_page_dirty() to fscache_dirty_folio()
[sfrench/cifs-2.6.git] / Documentation / filesystems / caching / netfs-api.rst
index f84e9ffdf0b403f1882a22b6576365a469b5bb08..5066113acad59aa0ba46de39da6e288066e8020a 100644 (file)
@@ -345,8 +345,9 @@ The following facilities are provided to manage this:
 
 To support this, the following functions are provided::
 
-       int fscache_set_page_dirty(struct page *page,
-                                  struct fscache_cookie *cookie);
+       bool fscache_dirty_folio(struct address_space *mapping,
+                                struct folio *folio,
+                                struct fscache_cookie *cookie);
        void fscache_unpin_writeback(struct writeback_control *wbc,
                                     struct fscache_cookie *cookie);
        void fscache_clear_inode_writeback(struct fscache_cookie *cookie,
@@ -354,7 +355,7 @@ To support this, the following functions are provided::
                                           const void *aux);
 
 The *set* function is intended to be called from the filesystem's
-``set_page_dirty`` address space operation.  If ``I_PINNING_FSCACHE_WB`` is not
+``dirty_folio`` address space operation.  If ``I_PINNING_FSCACHE_WB`` is not
 set, it sets that flag and increments the use count on the cookie (the caller
 must already have called ``fscache_use_cookie()``).