diff options
Diffstat (limited to 'Documentation/filesystems/caching/netfs-api.txt')
-rw-r--r-- | Documentation/filesystems/caching/netfs-api.txt | 17 |
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 | |||
690 | error is returned. | 690 | error is returned. |
691 | 691 | ||
692 | 692 | ||
693 | ========================== | 693 | =============================== |
694 | INDEX AND DATA FILE UPDATE | 694 | INDEX AND DATA FILE CONSISTENCY |
695 | ========================== | 695 | =============================== |
696 | |||
697 | To find out whether auxiliary data for an object is up to data within the | ||
698 | cache, the following function can be called: | ||
699 | |||
700 | int fscache_check_consistency(struct fscache_cookie *cookie) | ||
701 | |||
702 | This will call back to the netfs to check whether the auxiliary data associated | ||
703 | with a cookie is correct. It returns 0 if it is and -ESTALE if it isn't; it | ||
704 | may also return -ENOMEM and -ERESTARTSYS. | ||
696 | 705 | ||
697 | To request an update of the index data for an index or other object, the | 706 | To request an update of the index data for an index or other object, the |
698 | following function should be called: | 707 | following function should be called: |