Commit bfa3837e authored by David Howells's avatar David Howells

fscache, cachefiles: Fix checker warnings

Fix a couple of checker warnings in fscache and cachefiles:

 (1) fscache_n_op_requeue is never used, so get rid of it.

 (2) cachefiles_uncache_page() is passed in a lock that it releases, so
     this needs annotating.
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
parent 678edd09
...@@ -952,6 +952,7 @@ int cachefiles_write_page(struct fscache_storage *op, struct page *page) ...@@ -952,6 +952,7 @@ int cachefiles_write_page(struct fscache_storage *op, struct page *page)
* - cache withdrawal is prevented by the caller * - cache withdrawal is prevented by the caller
*/ */
void cachefiles_uncache_page(struct fscache_object *_object, struct page *page) void cachefiles_uncache_page(struct fscache_object *_object, struct page *page)
__releases(&object->fscache.cookie->lock)
{ {
struct cachefiles_object *object; struct cachefiles_object *object;
struct cachefiles_cache *cache; struct cachefiles_cache *cache;
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
atomic_t fscache_n_op_pend; atomic_t fscache_n_op_pend;
atomic_t fscache_n_op_run; atomic_t fscache_n_op_run;
atomic_t fscache_n_op_enqueue; atomic_t fscache_n_op_enqueue;
atomic_t fscache_n_op_requeue;
atomic_t fscache_n_op_deferred_release; atomic_t fscache_n_op_deferred_release;
atomic_t fscache_n_op_initialised; atomic_t fscache_n_op_initialised;
atomic_t fscache_n_op_release; atomic_t fscache_n_op_release;
......
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