提交 480ce08a 编写于 作者: Y Yan, Zheng 提交者: Ilya Dryomov

FS-Cache: make check_consistency callback return int

__fscache_check_consistency() calls check_consistency() callback
and return the callback's return value. But the return type of
check_consistency() is bool. So __fscache_check_consistency()
return 1 if the cache is inconsistent. This is inconsistent with
the document.
Signed-off-by: NYan, Zheng <zyan@redhat.com>
Acked-by: NDavid Howells <dhowells@redhat.com>
上级 d2138455
...@@ -380,7 +380,7 @@ static void cachefiles_sync_cache(struct fscache_cache *_cache) ...@@ -380,7 +380,7 @@ static void cachefiles_sync_cache(struct fscache_cache *_cache)
* check if the backing cache is updated to FS-Cache * check if the backing cache is updated to FS-Cache
* - called by FS-Cache when evaluates if need to invalidate the cache * - called by FS-Cache when evaluates if need to invalidate the cache
*/ */
static bool cachefiles_check_consistency(struct fscache_operation *op) static int cachefiles_check_consistency(struct fscache_operation *op)
{ {
struct cachefiles_object *object; struct cachefiles_object *object;
struct cachefiles_cache *cache; struct cachefiles_cache *cache;
......
...@@ -241,7 +241,7 @@ struct fscache_cache_ops { ...@@ -241,7 +241,7 @@ struct fscache_cache_ops {
/* check the consistency between the backing cache and the FS-Cache /* check the consistency between the backing cache and the FS-Cache
* cookie */ * cookie */
bool (*check_consistency)(struct fscache_operation *op); int (*check_consistency)(struct fscache_operation *op);
/* store the updated auxiliary data on an object */ /* store the updated auxiliary data on an object */
void (*update_object)(struct fscache_object *object); void (*update_object)(struct fscache_object *object);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册