mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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: Yan, Zheng <[email protected]> Acked-by: David Howells <[email protected]>
This commit is contained in:
parent
d213845528
commit
480ce08a70
2 changed files with 2 additions and 2 deletions
|
|
@ -380,7 +380,7 @@ static void cachefiles_sync_cache(struct fscache_cache *_cache)
|
|||
* check if the backing cache is updated to FS-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_cache *cache;
|
||||
|
|
|
|||
Loading…
Reference in a new issue