Commit efc930fa authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab Committed by Jonathan Corbet

docs: filesystems: caching/netfs-api.txt: convert it to ReST

- Add a SPDX header;
- Adjust document and section titles;
- Some whitespace fixes and new line breaks;
- Mark literal blocks as such;
- Add it to filesystems/caching/index.rst.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/cfe4cb1bf8e1f0093d44c30801ec42e74721e543.1588021877.git.mchehab+huawei@kernel.orgSigned-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent fd299b2a
...@@ -183,7 +183,7 @@ reside in one cache. ...@@ -183,7 +183,7 @@ reside in one cache.
The netfs API to FS-Cache can be found in: The netfs API to FS-Cache can be found in:
Documentation/filesystems/caching/netfs-api.txt Documentation/filesystems/caching/netfs-api.rst
The cache backend API to FS-Cache can be found in: The cache backend API to FS-Cache can be found in:
......
...@@ -8,3 +8,4 @@ Filesystem Caching ...@@ -8,3 +8,4 @@ Filesystem Caching
fscache fscache
object object
netfs-api
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* Copyright (C) 2004-2007 Red Hat, Inc. All Rights Reserved. * Copyright (C) 2004-2007 Red Hat, Inc. All Rights Reserved.
* Written by David Howells (dhowells@redhat.com) * Written by David Howells (dhowells@redhat.com)
* *
* See Documentation/filesystems/caching/netfs-api.txt for more information on * See Documentation/filesystems/caching/netfs-api.rst for more information on
* the netfs API. * the netfs API.
*/ */
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* *
* NOTE!!! See: * NOTE!!! See:
* *
* Documentation/filesystems/caching/netfs-api.txt * Documentation/filesystems/caching/netfs-api.rst
* *
* for a description of the network filesystem interface declared here. * for a description of the network filesystem interface declared here.
*/ */
...@@ -233,7 +233,7 @@ extern void __fscache_enable_cookie(struct fscache_cookie *, const void *, loff_ ...@@ -233,7 +233,7 @@ extern void __fscache_enable_cookie(struct fscache_cookie *, const void *, loff_
* *
* Register a filesystem as desiring caching services if they're available. * Register a filesystem as desiring caching services if they're available.
* *
* See Documentation/filesystems/caching/netfs-api.txt for a complete * See Documentation/filesystems/caching/netfs-api.rst for a complete
* description. * description.
*/ */
static inline static inline
...@@ -253,7 +253,7 @@ int fscache_register_netfs(struct fscache_netfs *netfs) ...@@ -253,7 +253,7 @@ int fscache_register_netfs(struct fscache_netfs *netfs)
* Indicate that a filesystem no longer desires caching services for the * Indicate that a filesystem no longer desires caching services for the
* moment. * moment.
* *
* See Documentation/filesystems/caching/netfs-api.txt for a complete * See Documentation/filesystems/caching/netfs-api.rst for a complete
* description. * description.
*/ */
static inline static inline
...@@ -270,7 +270,7 @@ void fscache_unregister_netfs(struct fscache_netfs *netfs) ...@@ -270,7 +270,7 @@ void fscache_unregister_netfs(struct fscache_netfs *netfs)
* Acquire a specific cache referral tag that can be used to select a specific * Acquire a specific cache referral tag that can be used to select a specific
* cache in which to cache an index. * cache in which to cache an index.
* *
* See Documentation/filesystems/caching/netfs-api.txt for a complete * See Documentation/filesystems/caching/netfs-api.rst for a complete
* description. * description.
*/ */
static inline static inline
...@@ -288,7 +288,7 @@ struct fscache_cache_tag *fscache_lookup_cache_tag(const char *name) ...@@ -288,7 +288,7 @@ struct fscache_cache_tag *fscache_lookup_cache_tag(const char *name)
* *
* Release a reference to a cache referral tag previously looked up. * Release a reference to a cache referral tag previously looked up.
* *
* See Documentation/filesystems/caching/netfs-api.txt for a complete * See Documentation/filesystems/caching/netfs-api.rst for a complete
* description. * description.
*/ */
static inline static inline
...@@ -315,7 +315,7 @@ void fscache_release_cache_tag(struct fscache_cache_tag *tag) ...@@ -315,7 +315,7 @@ void fscache_release_cache_tag(struct fscache_cache_tag *tag)
* that can be used to locate files. This is done by requesting a cookie for * that can be used to locate files. This is done by requesting a cookie for
* each index in the path to the file. * each index in the path to the file.
* *
* See Documentation/filesystems/caching/netfs-api.txt for a complete * See Documentation/filesystems/caching/netfs-api.rst for a complete
* description. * description.
*/ */
static inline static inline
...@@ -351,7 +351,7 @@ struct fscache_cookie *fscache_acquire_cookie( ...@@ -351,7 +351,7 @@ struct fscache_cookie *fscache_acquire_cookie(
* provided to update the auxiliary data in the cache before the object is * provided to update the auxiliary data in the cache before the object is
* disconnected. * disconnected.
* *
* See Documentation/filesystems/caching/netfs-api.txt for a complete * See Documentation/filesystems/caching/netfs-api.rst for a complete
* description. * description.
*/ */
static inline static inline
...@@ -394,7 +394,7 @@ int fscache_check_consistency(struct fscache_cookie *cookie, ...@@ -394,7 +394,7 @@ int fscache_check_consistency(struct fscache_cookie *cookie,
* cookie. The auxiliary data on the cookie will be updated first if @aux_data * cookie. The auxiliary data on the cookie will be updated first if @aux_data
* is set. * is set.
* *
* See Documentation/filesystems/caching/netfs-api.txt for a complete * See Documentation/filesystems/caching/netfs-api.rst for a complete
* description. * description.
*/ */
static inline static inline
...@@ -410,7 +410,7 @@ void fscache_update_cookie(struct fscache_cookie *cookie, const void *aux_data) ...@@ -410,7 +410,7 @@ void fscache_update_cookie(struct fscache_cookie *cookie, const void *aux_data)
* *
* Permit data-storage cache objects to be pinned in the cache. * Permit data-storage cache objects to be pinned in the cache.
* *
* See Documentation/filesystems/caching/netfs-api.txt for a complete * See Documentation/filesystems/caching/netfs-api.rst for a complete
* description. * description.
*/ */
static inline static inline
...@@ -425,7 +425,7 @@ int fscache_pin_cookie(struct fscache_cookie *cookie) ...@@ -425,7 +425,7 @@ int fscache_pin_cookie(struct fscache_cookie *cookie)
* *
* Permit data-storage cache objects to be unpinned from the cache. * Permit data-storage cache objects to be unpinned from the cache.
* *
* See Documentation/filesystems/caching/netfs-api.txt for a complete * See Documentation/filesystems/caching/netfs-api.rst for a complete
* description. * description.
*/ */
static inline static inline
...@@ -441,7 +441,7 @@ void fscache_unpin_cookie(struct fscache_cookie *cookie) ...@@ -441,7 +441,7 @@ void fscache_unpin_cookie(struct fscache_cookie *cookie)
* changed. This includes the data size. These attributes will be obtained * changed. This includes the data size. These attributes will be obtained
* through the get_attr() cookie definition op. * through the get_attr() cookie definition op.
* *
* See Documentation/filesystems/caching/netfs-api.txt for a complete * See Documentation/filesystems/caching/netfs-api.rst for a complete
* description. * description.
*/ */
static inline static inline
...@@ -463,7 +463,7 @@ int fscache_attr_changed(struct fscache_cookie *cookie) ...@@ -463,7 +463,7 @@ int fscache_attr_changed(struct fscache_cookie *cookie)
* *
* This can be called with spinlocks held. * This can be called with spinlocks held.
* *
* See Documentation/filesystems/caching/netfs-api.txt for a complete * See Documentation/filesystems/caching/netfs-api.rst for a complete
* description. * description.
*/ */
static inline static inline
...@@ -479,7 +479,7 @@ void fscache_invalidate(struct fscache_cookie *cookie) ...@@ -479,7 +479,7 @@ void fscache_invalidate(struct fscache_cookie *cookie)
* *
* Wait for the invalidation of an object to complete. * Wait for the invalidation of an object to complete.
* *
* See Documentation/filesystems/caching/netfs-api.txt for a complete * See Documentation/filesystems/caching/netfs-api.rst for a complete
* description. * description.
*/ */
static inline static inline
...@@ -498,7 +498,7 @@ void fscache_wait_on_invalidate(struct fscache_cookie *cookie) ...@@ -498,7 +498,7 @@ void fscache_wait_on_invalidate(struct fscache_cookie *cookie)
* cookie so that a write to that object within the space can always be * cookie so that a write to that object within the space can always be
* honoured. * honoured.
* *
* See Documentation/filesystems/caching/netfs-api.txt for a complete * See Documentation/filesystems/caching/netfs-api.rst for a complete
* description. * description.
*/ */
static inline static inline
...@@ -533,7 +533,7 @@ int fscache_reserve_space(struct fscache_cookie *cookie, loff_t size) ...@@ -533,7 +533,7 @@ int fscache_reserve_space(struct fscache_cookie *cookie, loff_t size)
* Else, if the page is unbacked, -ENODATA is returned and a block may have * Else, if the page is unbacked, -ENODATA is returned and a block may have
* been allocated in the cache. * been allocated in the cache.
* *
* See Documentation/filesystems/caching/netfs-api.txt for a complete * See Documentation/filesystems/caching/netfs-api.rst for a complete
* description. * description.
*/ */
static inline static inline
...@@ -582,7 +582,7 @@ int fscache_read_or_alloc_page(struct fscache_cookie *cookie, ...@@ -582,7 +582,7 @@ int fscache_read_or_alloc_page(struct fscache_cookie *cookie,
* regard to different pages, the return values are prioritised in that order. * regard to different pages, the return values are prioritised in that order.
* Any pages submitted for reading are removed from the pages list. * Any pages submitted for reading are removed from the pages list.
* *
* See Documentation/filesystems/caching/netfs-api.txt for a complete * See Documentation/filesystems/caching/netfs-api.rst for a complete
* description. * description.
*/ */
static inline static inline
...@@ -617,7 +617,7 @@ int fscache_read_or_alloc_pages(struct fscache_cookie *cookie, ...@@ -617,7 +617,7 @@ int fscache_read_or_alloc_pages(struct fscache_cookie *cookie,
* Else, a block will be allocated if one wasn't already, and 0 will be * Else, a block will be allocated if one wasn't already, and 0 will be
* returned * returned
* *
* See Documentation/filesystems/caching/netfs-api.txt for a complete * See Documentation/filesystems/caching/netfs-api.rst for a complete
* description. * description.
*/ */
static inline static inline
...@@ -667,7 +667,7 @@ void fscache_readpages_cancel(struct fscache_cookie *cookie, ...@@ -667,7 +667,7 @@ void fscache_readpages_cancel(struct fscache_cookie *cookie,
* be cleared at the completion of the write to indicate the success or failure * be cleared at the completion of the write to indicate the success or failure
* of the operation. Note that the completion may happen before the return. * of the operation. Note that the completion may happen before the return.
* *
* See Documentation/filesystems/caching/netfs-api.txt for a complete * See Documentation/filesystems/caching/netfs-api.rst for a complete
* description. * description.
*/ */
static inline static inline
...@@ -693,7 +693,7 @@ int fscache_write_page(struct fscache_cookie *cookie, ...@@ -693,7 +693,7 @@ int fscache_write_page(struct fscache_cookie *cookie,
* Note that this cannot cancel any outstanding I/O operations between this * Note that this cannot cancel any outstanding I/O operations between this
* page and the cache. * page and the cache.
* *
* See Documentation/filesystems/caching/netfs-api.txt for a complete * See Documentation/filesystems/caching/netfs-api.rst for a complete
* description. * description.
*/ */
static inline static inline
...@@ -711,7 +711,7 @@ void fscache_uncache_page(struct fscache_cookie *cookie, ...@@ -711,7 +711,7 @@ void fscache_uncache_page(struct fscache_cookie *cookie,
* *
* Ask the cache if a page is being written to the cache. * Ask the cache if a page is being written to the cache.
* *
* See Documentation/filesystems/caching/netfs-api.txt for a complete * See Documentation/filesystems/caching/netfs-api.rst for a complete
* description. * description.
*/ */
static inline static inline
...@@ -731,7 +731,7 @@ bool fscache_check_page_write(struct fscache_cookie *cookie, ...@@ -731,7 +731,7 @@ bool fscache_check_page_write(struct fscache_cookie *cookie,
* Ask the cache to wake us up when a page is no longer being written to the * Ask the cache to wake us up when a page is no longer being written to the
* cache. * cache.
* *
* See Documentation/filesystems/caching/netfs-api.txt for a complete * See Documentation/filesystems/caching/netfs-api.rst for a complete
* description. * description.
*/ */
static inline static inline
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment