History

docs: filesystems: caching/backend-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 table markups; - Add it to filesystems/caching/index.rst.

Mauro Carvalho Chehab committed 6 years ago

Commit 0e822141 parent d74802a6 files · +92 −90Browse files

Unified · Split

6 files
  1. Documentation/filesystems/caching/backend-api.rst +83 −82
  2. Documentation/filesystems/caching/fscache.rst +1 −1
  3. Documentation/filesystems/caching/index.rst +1 −0
  4. fs/fscache/cache.c +4 −4
  5. fs/fscache/object.c +1 −1
  6. include/linux/fscache-cache.h +2 −2
Documentation/filesystems/caching/backend-api.rstrenamed from Documentation/filesystems/caching/backend-api.txt+83−82
@@ -1,6 +1,8 @@
1− ==========================
2− FS-CACHE CACHE BACKEND API
3− ==========================
1+.. SPDX-License-Identifier: GPL-2.0
2+
3+==========================
4+FS-Cache Cache backend API
5+==========================
46
57 The FS-Cache system provides an API by which actual caches can be supplied to
68 FS-Cache for it to then serve out to network filesystems and other interested
@@ -9,15 +11,14 @@ parties. · 2 unmodified lines
911 This API is declared in <linux/fscache-cache.h>.
1012
1113
12−====================================
13−INITIALISING AND REGISTERING A CACHE
14+Initialising and Registering a Cache
1415 ====================================
1516
1617 To start off, a cache definition must be initialised and registered for each
1718 cache the backend wants to make available. For instance, CacheFS does this in
1819 the fill_super() operation on mounting.
1920
20−The cache definition (struct fscache_cache) should be initialised by calling:
21+The cache definition (struct fscache_cache) should be initialised by calling::
2122
2223 void fscache_init_cache(struct fscache_cache *cache,
2324 struct fscache_cache_ops *ops,
@@ -26,17 +27,17 @@ The cache definition (struct fscache_cache) should be initialised by calling: · 2 unmodified lines
2627
2728 Where:
2829
29− (*) "cache" is a pointer to the cache definition;
30+ * "cache" is a pointer to the cache definition;
3031
31− (*) "ops" is a pointer to the table of operations that the backend supports on
32+ * "ops" is a pointer to the table of operations that the backend supports on
3233 this cache; and
3334
34− (*) "idfmt" is a format and printf-style arguments for constructing a label
35+ * "idfmt" is a format and printf-style arguments for constructing a label
3536 for the cache.
3637
3738
3839 The cache should then be registered with FS-Cache by passing a pointer to the
39−previously initialised cache definition to:
40+previously initialised cache definition to::
4041
4142 int fscache_add_cache(struct fscache_cache *cache,
4243 struct fscache_object *fsdef,
@@ -44,12 +45,12 @@ previously initialised cache definition to: · 1 unmodified line
4445
4546 Two extra arguments should also be supplied:
4647
47− (*) "fsdef" which should point to the object representation for the FS-Cache
48+ * "fsdef" which should point to the object representation for the FS-Cache
4849 master index in this cache. Netfs primary index entries will be created
4950 here. FS-Cache keeps the caller's reference to the index object if
5051 successful and will release it upon withdrawal of the cache.
5152
52− (*) "tagname" which, if given, should be a text string naming this cache. If
53+ * "tagname" which, if given, should be a text string naming this cache. If
5354 this is NULL, the identifier will be used instead. For CacheFS, the
5455 identifier is set to name the underlying block device and the tag can be
5556 supplied by mount.
@@ -58,20 +59,18 @@ This function may return -ENOMEM if it ran out of memory or -EEXIST if the tag · 2 unmodified lines
5859 is already in use. 0 will be returned on success.
5960
6061
61−=====================
62−UNREGISTERING A CACHE
62+Unregistering a Cache
6363 =====================
6464
6565 A cache can be withdrawn from the system by calling this function with a
66−pointer to the cache definition:
66+pointer to the cache definition::
6767
6868 void fscache_withdraw_cache(struct fscache_cache *cache);
6969
7070 In CacheFS's case, this is called by put_super().
7171
7272
73−========
74−SECURITY
73+Security
7574 ========
7675
7776 The cache methods are executed one of two contexts:
@@ -89,8 +88,7 @@ be masqueraded for the duration of the cache driver's access to the cache. · 11 unmodified lines
8988 This is left to the cache to handle; FS-Cache makes no effort in this regard.
9089
9190
92−===================================
93−CONTROL AND STATISTICS PRESENTATION
91+Control and Statistics Presentation
9492 ===================================
9593
9694 The cache may present data to the outside world through FS-Cache's interfaces
@@ -101,11 +99,10 @@ is enabled. This is accessible through the kobject struct fscache_cache::kobj · 4 unmodified lines
10199 and is for use by the cache as it sees fit.
102100
103101
104−========================
105−RELEVANT DATA STRUCTURES
102+Relevant Data Structures
106103 ========================
107104
108− (*) Index/Data file FS-Cache representation cookie:
105+ * Index/Data file FS-Cache representation cookie::
109106
110107 struct fscache_cookie {
111108 struct fscache_object_def *def;
@@ -121,7 +118,7 @@ RELEVANT DATA STRUCTURES · 9 unmodified lines
121118 cache operations.
122119
123120
124− (*) In-cache object representation:
121+ * In-cache object representation::
125122
126123 struct fscache_object {
127124 int debug_id;
@@ -150,7 +147,7 @@ RELEVANT DATA STRUCTURES · 22 unmodified lines
150147 initialised by calling fscache_object_init(object).
151148
152149
153− (*) FS-Cache operation record:
150+ * FS-Cache operation record::
154151
155152 struct fscache_operation {
156153 atomic_t usage;
@@ -173,7 +170,7 @@ RELEVANT DATA STRUCTURES · 16 unmodified lines
173170 an operation needs more processing time, it should be enqueued again.
174171
175172
176− (*) FS-Cache retrieval operation record:
173+ * FS-Cache retrieval operation record::
177174
178175 struct fscache_retrieval {
179176 struct fscache_operation op;
@@ -198,7 +195,7 @@ RELEVANT DATA STRUCTURES · 18 unmodified lines
198195 it sees fit.
199196
200197
201− (*) FS-Cache storage operation record:
198+ * FS-Cache storage operation record::
202199
203200 struct fscache_storage {
204201 struct fscache_operation op;
@@ -212,16 +209,17 @@ RELEVANT DATA STRUCTURES · 7 unmodified lines
212209 storage.
213210
214211
215−================
216−CACHE OPERATIONS
212+Cache Operations
217213 ================
218214
219215 The cache backend provides FS-Cache with a table of operations that can be
220216 performed on the denizens of the cache. These are held in a structure of type:
221217
222− struct fscache_cache_ops
218+ ::
219+
220+ struct fscache_cache_ops
223221
224− (*) Name of cache provider [mandatory]:
222+ * Name of cache provider [mandatory]::
225223
226224 const char *name
227225
@@ -229,7 +227,7 @@ performed on the denizens of the cache. These are held in a structure of type: · 1 unmodified line
229227 the backend.
230228
231229
232− (*) Allocate a new object [mandatory]:
230+ * Allocate a new object [mandatory]::
233231
234232 struct fscache_object *(*alloc_object)(struct fscache_cache *cache,
235233 struct fscache_cookie *cookie)
@@ -244,7 +242,7 @@ performed on the denizens of the cache. These are held in a structure of type: · 8 unmodified lines
244242 form once lookup is complete or aborted.
245243
246244
247− (*) Look up and create object [mandatory]:
245+ * Look up and create object [mandatory]::
248246
249247 void (*lookup_object)(struct fscache_object *object)
250248
@@ -263,7 +261,7 @@ performed on the denizens of the cache. These are held in a structure of type: · 12 unmodified lines
263261 to abort the lookup of that object.
264262
265263
266− (*) Release lookup data [mandatory]:
264+ * Release lookup data [mandatory]::
267265
268266 void (*lookup_complete)(struct fscache_object *object)
269267
@@ -271,7 +269,7 @@ performed on the denizens of the cache. These are held in a structure of type: · 1 unmodified line
271269 using to perform a lookup.
272270
273271
274− (*) Increment object refcount [mandatory]:
272+ * Increment object refcount [mandatory]::
275273
276274 struct fscache_object *(*grab_object)(struct fscache_object *object)
277275
@@ -280,7 +278,7 @@ performed on the denizens of the cache. These are held in a structure of type: · 2 unmodified lines
280278 It should return the object pointer if successful.
281279
282280
283− (*) Lock/Unlock object [mandatory]:
281+ * Lock/Unlock object [mandatory]::
284282
285283 void (*lock_object)(struct fscache_object *object)
286284 void (*unlock_object)(struct fscache_object *object)
@@ -289,7 +287,7 @@ performed on the denizens of the cache. These are held in a structure of type: · 2 unmodified lines
289287 to schedule with the lock held, so a spinlock isn't sufficient.
290288
291289
292− (*) Pin/Unpin object [optional]:
290+ * Pin/Unpin object [optional]::
293291
294292 int (*pin_object)(struct fscache_object *object)
295293 void (*unpin_object)(struct fscache_object *object)
@@ -299,7 +297,7 @@ performed on the denizens of the cache. These are held in a structure of type: · 3 unmodified lines
299297 enough space in the cache to permit this.
300298
301299
302− (*) Check coherency state of an object [mandatory]:
300+ * Check coherency state of an object [mandatory]::
303301
304302 int (*check_consistency)(struct fscache_object *object)
305303
@@ -308,7 +306,7 @@ performed on the denizens of the cache. These are held in a structure of type: · 2 unmodified lines
308306 if they're consistent and -ESTALE otherwise. -ENOMEM and -ERESTARTSYS
309307 may also be returned.
310308
311− (*) Update object [mandatory]:
309+ * Update object [mandatory]::
312310
313311 int (*update_object)(struct fscache_object *object)
314312
@@ -317,7 +315,7 @@ performed on the denizens of the cache. These are held in a structure of type: · 2 unmodified lines
317315 obtained by calling object->cookie->def->get_aux()/get_attr().
318316
319317
320− (*) Invalidate data object [mandatory]:
318+ * Invalidate data object [mandatory]::
321319
322320 int (*invalidate_object)(struct fscache_operation *op)
323321
@@ -329,7 +327,7 @@ performed on the denizens of the cache. These are held in a structure of type: · 5 unmodified lines
329327 fscache_op_complete() must be called on op before returning.
330328
331329
332− (*) Discard object [mandatory]:
330+ * Discard object [mandatory]::
333331
334332 void (*drop_object)(struct fscache_object *object)
335333
@@ -341,7 +339,7 @@ performed on the denizens of the cache. These are held in a structure of type: · 5 unmodified lines
341339 caller. The caller will invoke the put_object() method as appropriate.
342340
343341
344− (*) Release object reference [mandatory]:
342+ * Release object reference [mandatory]::
345343
346344 void (*put_object)(struct fscache_object *object)
347345
@@ -349,7 +347,7 @@ performed on the denizens of the cache. These are held in a structure of type: · 1 unmodified line
349347 be freed when all the references to it are released.
350348
351349
352− (*) Synchronise a cache [mandatory]:
350+ * Synchronise a cache [mandatory]::
353351
354352 void (*sync)(struct fscache_cache *cache)
355353
@@ -357,7 +355,7 @@ performed on the denizens of the cache. These are held in a structure of type: · 1 unmodified line
357355 device.
358356
359357
360− (*) Dissociate a cache [mandatory]:
358+ * Dissociate a cache [mandatory]::
361359
362360 void (*dissociate_pages)(struct fscache_cache *cache)
363361
@@ -365,7 +363,7 @@ performed on the denizens of the cache. These are held in a structure of type: · 1 unmodified line
365363 cache withdrawal.
366364
367365
368− (*) Notification that the attributes on a netfs file changed [mandatory]:
366+ * Notification that the attributes on a netfs file changed [mandatory]::
369367
370368 int (*attr_changed)(struct fscache_object *object);
371369
@@ -386,7 +384,7 @@ performed on the denizens of the cache. These are held in a structure of type: · 14 unmodified lines
386384 execution of this operation.
387385
388386
389− (*) Reserve cache space for an object's data [optional]:
387+ * Reserve cache space for an object's data [optional]::
390388
391389 int (*reserve_space)(struct fscache_object *object, loff_t size);
392390
@@ -404,7 +402,7 @@ performed on the denizens of the cache. These are held in a structure of type: · 11 unmodified lines
404402 size if larger than that already.
405403
406404
407− (*) Request page be read from cache [mandatory]:
405+ * Request page be read from cache [mandatory]::
408406
409407 int (*read_or_alloc_page)(struct fscache_retrieval *op,
410408 struct page *page,
@@ -446,7 +444,7 @@ performed on the denizens of the cache. These are held in a structure of type: · 35 unmodified lines
446444 with. This will complete the operation when all pages are dealt with.
447445
448446
449− (*) Request pages be read from cache [mandatory]:
447+ * Request pages be read from cache [mandatory]::
450448
451449 int (*read_or_alloc_pages)(struct fscache_retrieval *op,
452450 struct list_head *pages,
@@ -457,7 +455,7 @@ performed on the denizens of the cache. These are held in a structure of type: · 4 unmodified lines
457455 of pages instead of one page. Any pages on which a read operation is
458456 started must be added to the page cache for the specified mapping and also
459457 to the LRU. Such pages must also be removed from the pages list and
460− *nr_pages decremented per page.
458+ ``*nr_pages`` decremented per page.
461459
462460 If there was an error such as -ENOMEM, then that should be returned; else
463461 if one or more pages couldn't be read or allocated, then -ENOBUFS should
@@ -466,7 +464,7 @@ performed on the denizens of the cache. These are held in a structure of type: · 2 unmodified lines
466464 returned.
467465
468466
469− (*) Request page be allocated in the cache [mandatory]:
467+ * Request page be allocated in the cache [mandatory]::
470468
471469 int (*allocate_page)(struct fscache_retrieval *op,
472470 struct page *page,
@@ -482,7 +480,7 @@ performed on the denizens of the cache. These are held in a structure of type: · 9 unmodified lines
482480 allocated, then the netfs page should be marked and 0 returned.
483481
484482
485− (*) Request pages be allocated in the cache [mandatory]:
483+ * Request pages be allocated in the cache [mandatory]::
486484
487485 int (*allocate_pages)(struct fscache_retrieval *op,
488486 struct list_head *pages,
@@ -493,7 +491,7 @@ performed on the denizens of the cache. These are held in a structure of type: · 4 unmodified lines
493491 nr_pages should be treated as for the read_or_alloc_pages() method.
494492
495493
496− (*) Request page be written to cache [mandatory]:
494+ * Request page be written to cache [mandatory]::
497495
498496 int (*write_page)(struct fscache_storage *op,
499497 struct page *page);
@@ -514,7 +512,7 @@ performed on the denizens of the cache. These are held in a structure of type: · 14 unmodified lines
514512 appropriately.
515513
516514
517− (*) Discard retained per-page metadata [mandatory]:
515+ * Discard retained per-page metadata [mandatory]::
518516
519517 void (*uncache_page)(struct fscache_object *object, struct page *page)
520518
@@ -523,13 +521,12 @@ performed on the denizens of the cache. These are held in a structure of type: · 2 unmodified lines
523521 maintains for this page.
524522
525523
526−==================
527−FS-CACHE UTILITIES
524+FS-Cache Utilities
528525 ==================
529526
530527 FS-Cache provides some utilities that a cache backend may make use of:
531528
532− (*) Note occurrence of an I/O error in a cache:
529+ * Note occurrence of an I/O error in a cache::
533530
534531 void fscache_io_error(struct fscache_cache *cache)
535532
@@ -541,7 +538,7 @@ FS-Cache provides some utilities that a cache backend may make use of: · 5 unmodified lines
541538 This does not actually withdraw the cache. That must be done separately.
542539
543540
544− (*) Invoke the retrieval I/O completion function:
541+ * Invoke the retrieval I/O completion function::
545542
546543 void fscache_end_io(struct fscache_retrieval *op, struct page *page,
547544 int error);
@@ -550,8 +547,8 @@ FS-Cache provides some utilities that a cache backend may make use of: · 2 unmodified lines
550547 error value should be 0 if successful and an error otherwise.
551548
552549
553− (*) Record that one or more pages being retrieved or allocated have been dealt
554− with:
550+ * Record that one or more pages being retrieved or allocated have been dealt
551+ with::
555552
556553 void fscache_retrieval_complete(struct fscache_retrieval *op,
557554 int n_pages);
@@ -562,7 +559,7 @@ FS-Cache provides some utilities that a cache backend may make use of: · 4 unmodified lines
562559 completed.
563560
564561
565− (*) Record operation completion:
562+ * Record operation completion::
566563
567564 void fscache_op_complete(struct fscache_operation *op);
568565
@@ -571,7 +568,7 @@ FS-Cache provides some utilities that a cache backend may make use of: · 2 unmodified lines
571568 one or more pending operations to start running.
572569
573570
574− (*) Set highest store limit:
571+ * Set highest store limit::
575572
576573 void fscache_set_store_limit(struct fscache_object *object,
577574 loff_t i_size);
@@ -581,7 +578,7 @@ FS-Cache provides some utilities that a cache backend may make use of: · 3 unmodified lines
581578 rejected by fscache_read_alloc_page() and co with -ENOBUFS.
582579
583580
584− (*) Mark pages as being cached:
581+ * Mark pages as being cached::
585582
586583 void fscache_mark_pages_cached(struct fscache_retrieval *op,
587584 struct pagevec *pagevec);
@@ -590,7 +587,7 @@ FS-Cache provides some utilities that a cache backend may make use of: · 2 unmodified lines
590587 the netfs must call fscache_uncache_page() to unmark the pages.
591588
592589
593− (*) Perform coherency check on an object:
590+ * Perform coherency check on an object::
594591
595592 enum fscache_checkaux fscache_check_aux(struct fscache_object *object,
596593 const void *data,
@@ -603,29 +600,26 @@ FS-Cache provides some utilities that a cache backend may make use of: · 6 unmodified lines
603600
604601 One of three values will be returned:
605602
606− (*) FSCACHE_CHECKAUX_OKAY
607−
603+ FSCACHE_CHECKAUX_OKAY
608604 The coherency data indicates the object is valid as is.
609605
610− (*) FSCACHE_CHECKAUX_NEEDS_UPDATE
611−
606+ FSCACHE_CHECKAUX_NEEDS_UPDATE
612607 The coherency data needs updating, but otherwise the object is
613608 valid.
614609
615− (*) FSCACHE_CHECKAUX_OBSOLETE
616−
610+ FSCACHE_CHECKAUX_OBSOLETE
617611 The coherency data indicates that the object is obsolete and should
618612 be discarded.
619613
620614
621− (*) Initialise a freshly allocated object:
615+ * Initialise a freshly allocated object::
622616
623617 void fscache_object_init(struct fscache_object *object);
624618
625619 This initialises all the fields in an object representation.
626620
627621
628− (*) Indicate the destruction of an object:
622+ * Indicate the destruction of an object::
629623
630624 void fscache_object_destroyed(struct fscache_cache *cache);
631625
@@ -635,7 +629,7 @@ FS-Cache provides some utilities that a cache backend may make use of: · 3 unmodified lines
635629 all the objects.
636630
637631
638− (*) Indicate negative lookup on an object:
632+ * Indicate negative lookup on an object::
639633
640634 void fscache_object_lookup_negative(struct fscache_object *object);
641635
@@ -650,7 +644,7 @@ FS-Cache provides some utilities that a cache backend may make use of: · 8 unmodified lines
650644 significant - all subsequent calls are ignored.
651645
652646
653− (*) Indicate an object has been obtained:
647+ * Indicate an object has been obtained::
654648
655649 void fscache_obtained_object(struct fscache_object *object);
656650
@@ -667,7 +661,7 @@ FS-Cache provides some utilities that a cache backend may make use of: · 10 unmodified lines
667661 (2) that writes may now proceed against this object.
668662
669663
670− (*) Indicate that object lookup failed:
664+ * Indicate that object lookup failed::
671665
672666 void fscache_object_lookup_error(struct fscache_object *object);
673667
@@ -676,7 +670,7 @@ FS-Cache provides some utilities that a cache backend may make use of: · 2 unmodified lines
676670 as possible.
677671
678672
679− (*) Indicate that a stale object was found and discarded:
673+ * Indicate that a stale object was found and discarded::
680674
681675 void fscache_object_retrying_stale(struct fscache_object *object);
682676
@@ -685,7 +679,7 @@ FS-Cache provides some utilities that a cache backend may make use of: · 2 unmodified lines
685679 discarded from the cache and the lookup will be performed again.
686680
687681
688− (*) Indicate that the caching backend killed an object:
682+ * Indicate that the caching backend killed an object::
689683
690684 void fscache_object_mark_killed(struct fscache_object *object,
691685 enum fscache_why_object_killed why);
@@ -693,13 +687,20 @@ FS-Cache provides some utilities that a cache backend may make use of: · 1 unmodified line
693687 This is called to indicate that the cache backend preemptively killed an
694688 object. The why parameter should be set to indicate the reason:
695689
696− FSCACHE_OBJECT_IS_STALE - the object was stale and needs discarding.
697− FSCACHE_OBJECT_NO_SPACE - there was insufficient cache space
698− FSCACHE_OBJECT_WAS_RETIRED - the object was retired when relinquished.
699− FSCACHE_OBJECT_WAS_CULLED - the object was culled to make space.
690+ FSCACHE_OBJECT_IS_STALE
691+ - the object was stale and needs discarding.
692+
693+ FSCACHE_OBJECT_NO_SPACE
694+ - there was insufficient cache space
695+
696+ FSCACHE_OBJECT_WAS_RETIRED
697+ - the object was retired when relinquished.
698+
699+ FSCACHE_OBJECT_WAS_CULLED
700+ - the object was culled to make space.
700701
701702
702− (*) Get and release references on a retrieval record:
703+ * Get and release references on a retrieval record::
703704
704705 void fscache_get_retrieval(struct fscache_retrieval *op);
705706 void fscache_put_retrieval(struct fscache_retrieval *op);
@@ -708,7 +709,7 @@ FS-Cache provides some utilities that a cache backend may make use of: · 2 unmodified lines
708709 asynchronous data retrieval and block allocation.
709710
710711
711− (*) Enqueue a retrieval record for processing.
712+ * Enqueue a retrieval record for processing::
712713
713714 void fscache_enqueue_retrieval(struct fscache_retrieval *op);
714715
@@ -718,7 +719,7 @@ FS-Cache provides some utilities that a cache backend may make use of: · 3 unmodified lines
718719 within the callback function.
719720
720721
721− (*) List of object state names:
722+ * List of object state names::
722723
723724 const char *fscache_object_states[];
724725
Documentation/filesystems/caching/fscache.rst+1−1
@@ -187,7 +187,7 @@ The netfs API to FS-Cache can be found in: · 186 unmodified lines
187187
188188 The cache backend API to FS-Cache can be found in:
189189
190− Documentation/filesystems/caching/backend-api.txt
190+ Documentation/filesystems/caching/backend-api.rst
191191
192192 A description of the internal representations and object state machine can be
193193 found in:
Documentation/filesystems/caching/index.rst+1−0
@@ -8,6 +8,7 @@ Filesystem Caching · 7 unmodified lines
88
99 fscache
1010 object
11+ backend-api
1112 cachefiles
1213 netfs-api
1314 operations
fs/fscache/cache.c+4−4
@@ -172,7 +172,7 @@ no_preference: · 171 unmodified lines
172172 *
173173 * Initialise a record of a cache and fill in the name.
174174 *
175− * See Documentation/filesystems/caching/backend-api.txt for a complete
175+ * See Documentation/filesystems/caching/backend-api.rst for a complete
176176 * description.
177177 */
178178 void fscache_init_cache(struct fscache_cache *cache,
@@ -207,7 +207,7 @@ EXPORT_SYMBOL(fscache_init_cache); · 28 unmodified lines
207207 *
208208 * Add a cache to the system, making it available for netfs's to use.
209209 *
210− * See Documentation/filesystems/caching/backend-api.txt for a complete
210+ * See Documentation/filesystems/caching/backend-api.rst for a complete
211211 * description.
212212 */
213213 int fscache_add_cache(struct fscache_cache *cache,
@@ -307,7 +307,7 @@ EXPORT_SYMBOL(fscache_add_cache); · 93 unmodified lines
307307 * Note that an I/O error occurred in a cache and that it should no longer be
308308 * used for anything. This also reports the error into the kernel log.
309309 *
310− * See Documentation/filesystems/caching/backend-api.txt for a complete
310+ * See Documentation/filesystems/caching/backend-api.rst for a complete
311311 * description.
312312 */
313313 void fscache_io_error(struct fscache_cache *cache)
@@ -355,7 +355,7 @@ static void fscache_withdraw_all_objects(struct fscache_cache *cache, · 41 unmodified lines
355355 * Withdraw a cache from service, unbinding all its cache objects from the
356356 * netfs cookies they're currently representing.
357357 *
358− * See Documentation/filesystems/caching/backend-api.txt for a complete
358+ * See Documentation/filesystems/caching/backend-api.rst for a complete
359359 * description.
360360 */
361361 void fscache_withdraw_cache(struct fscache_cache *cache)
fs/fscache/object.c+1−1
@@ -295,7 +295,7 @@ static void fscache_object_work_func(struct work_struct *work) · 294 unmodified lines
295295 *
296296 * Initialise a cache object description to its basic values.
297297 *
298− * See Documentation/filesystems/caching/backend-api.txt for a complete
298+ * See Documentation/filesystems/caching/backend-api.rst for a complete
299299 * description.
300300 */
301301 void fscache_object_init(struct fscache_object *object,
include/linux/fscache-cache.h+2−2
@@ -6,7 +6,7 @@ · 5 unmodified lines
66 *
77 * NOTE!!! See:
88 *
9− * Documentation/filesystems/caching/backend-api.txt
9+ * Documentation/filesystems/caching/backend-api.rst
1010 *
1111 * for a description of the cache backend interface declared here.
1212 */
@@ -454,7 +454,7 @@ static inline void fscache_object_lookup_error(struct fscache_object *object) · 441 unmodified lines
454454 * Set the maximum size an object is permitted to reach, implying the highest
455455 * byte that may be written. Intended to be called by the attr_changed() op.
456456 *
457− * See Documentation/filesystems/caching/backend-api.txt for a complete
457+ * See Documentation/filesystems/caching/backend-api.rst for a complete
458458 * description.
459459 */
460460 static inline