fs/netfs: Add folio fscache functions
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 27 Apr 2021 18:24:30 +0000 (14:24 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 27 Sep 2021 13:27:31 +0000 (09:27 -0400)
commit6abbaa5b01730a1f0883d199cf5a90ae5c5dccea
tree1bffc35191bb0255d07dd33eae49c786e5645a6c
parentb47393f8448ade8bafe09ed302ce2a15093e9718
fs/netfs: Add folio fscache functions

Match the page writeback functions by adding
folio_start_fscache(), folio_end_fscache(), folio_wait_fscache() and
folio_wait_fscache_killable().  Remove set_page_private_2().  Also rewrite
the kernel-doc to describe when to use the function rather than what the
function does, and include the kernel-doc in the appropriate rst file.
Saves 31 bytes of text in netfs_rreq_unlock() due to set_page_fscache()
calling page_folio() once instead of three times.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Reviewed-by: William Kucharski <william.kucharski@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Acked-by: Mike Rapoport <rppt@linux.ibm.com>
Reviewed-by: David Howells <dhowells@redhat.com>
Documentation/filesystems/netfs_library.rst
include/linux/netfs.h
include/linux/pagemap.h