aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/filesystems/caching/netfs-api.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/filesystems/caching/netfs-api.txt')
-rw-r--r--Documentation/filesystems/caching/netfs-api.txt17
1 files changed, 13 insertions, 4 deletions
diff --git a/Documentation/filesystems/caching/netfs-api.txt b/Documentation/filesystems/caching/netfs-api.txt
index 97e6c0ecc5ef..12b344251523 100644
--- a/Documentation/filesystems/caching/netfs-api.txt
+++ b/Documentation/filesystems/caching/netfs-api.txt
@@ -32,7 +32,7 @@ This document contains the following sections:
32 (9) Setting the data file size 32 (9) Setting the data file size
33 (10) Page alloc/read/write 33 (10) Page alloc/read/write
34 (11) Page uncaching 34 (11) Page uncaching
35 (12) Index and data file update 35 (12) Index and data file consistency
36 (13) Miscellaneous cookie operations 36 (13) Miscellaneous cookie operations
37 (14) Cookie unregistration 37 (14) Cookie unregistration
38 (15) Index invalidation 38 (15) Index invalidation
@@ -690,9 +690,18 @@ written to the cache and for the cache to finish with the page generally. No
690error is returned. 690error is returned.
691 691
692 692
693========================== 693===============================
694INDEX AND DATA FILE UPDATE 694INDEX AND DATA FILE CONSISTENCY
695========================== 695===============================
696
697To find out whether auxiliary data for an object is up to data within the
698cache, the following function can be called:
699
700 int fscache_check_consistency(struct fscache_cookie *cookie)
701
702This will call back to the netfs to check whether the auxiliary data associated
703with a cookie is correct. It returns 0 if it is and -ESTALE if it isn't; it
704may also return -ENOMEM and -ERESTARTSYS.
696 705
697To request an update of the index data for an index or other object, the 706To request an update of the index data for an index or other object, the
698following function should be called: 707following function should be called: