diff options
Diffstat (limited to 'Documentation/filesystems/caching')
-rw-r--r-- | Documentation/filesystems/caching/backend-api.txt | 23 | ||||
-rw-r--r-- | Documentation/filesystems/caching/fscache.txt | 4 |
2 files changed, 27 insertions, 0 deletions
diff --git a/Documentation/filesystems/caching/backend-api.txt b/Documentation/filesystems/caching/backend-api.txt index 277d1e810670..c0bd5677271b 100644 --- a/Documentation/filesystems/caching/backend-api.txt +++ b/Documentation/filesystems/caching/backend-api.txt | |||
@@ -676,6 +676,29 @@ FS-Cache provides some utilities that a cache backend may make use of: | |||
676 | as possible. | 676 | as possible. |
677 | 677 | ||
678 | 678 | ||
679 | (*) Indicate that a stale object was found and discarded: | ||
680 | |||
681 | void fscache_object_retrying_stale(struct fscache_object *object); | ||
682 | |||
683 | This is called to indicate that the lookup procedure found an object in | ||
684 | the cache that the netfs decided was stale. The object has been | ||
685 | discarded from the cache and the lookup will be performed again. | ||
686 | |||
687 | |||
688 | (*) Indicate that the caching backend killed an object: | ||
689 | |||
690 | void fscache_object_mark_killed(struct fscache_object *object, | ||
691 | enum fscache_why_object_killed why); | ||
692 | |||
693 | This is called to indicate that the cache backend preemptively killed an | ||
694 | object. The why parameter should be set to indicate the reason: | ||
695 | |||
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. | ||
700 | |||
701 | |||
679 | (*) Get and release references on a retrieval record: | 702 | (*) Get and release references on a retrieval record: |
680 | 703 | ||
681 | void fscache_get_retrieval(struct fscache_retrieval *op); | 704 | void fscache_get_retrieval(struct fscache_retrieval *op); |
diff --git a/Documentation/filesystems/caching/fscache.txt b/Documentation/filesystems/caching/fscache.txt index 770267af5b3e..66fa7fbccfa4 100644 --- a/Documentation/filesystems/caching/fscache.txt +++ b/Documentation/filesystems/caching/fscache.txt | |||
@@ -303,6 +303,10 @@ proc files. | |||
303 | wrp=N Number of in-progress write_page() cache ops | 303 | wrp=N Number of in-progress write_page() cache ops |
304 | ucp=N Number of in-progress uncache_page() cache ops | 304 | ucp=N Number of in-progress uncache_page() cache ops |
305 | dsp=N Number of in-progress dissociate_pages() cache ops | 305 | dsp=N Number of in-progress dissociate_pages() cache ops |
306 | CacheEv nsp=N Number of object lookups/creations rejected due to lack of space | ||
307 | stl=N Number of stale objects deleted | ||
308 | rtr=N Number of objects retired when relinquished | ||
309 | cul=N Number of objects culled | ||
306 | 310 | ||
307 | 311 | ||
308 | (*) /proc/fs/fscache/histogram | 312 | (*) /proc/fs/fscache/histogram |