diff options
| author | Yan, Zheng <zyan@redhat.com> | 2016-05-20 06:32:31 -0400 |
|---|---|---|
| committer | Ilya Dryomov <idryomov@gmail.com> | 2016-06-01 04:29:39 -0400 |
| commit | 480ce08a70e4179f34808a3bdbfe6627f624cf54 (patch) | |
| tree | 7355b4c18651ff54653cede0a82a52c3631e535f /fs/cachefiles | |
| parent | d2138455286f9db8fbff9b50b53b51766f6c1f92 (diff) | |
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 <zyan@redhat.com>
Acked-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs/cachefiles')
| -rw-r--r-- | fs/cachefiles/interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cachefiles/interface.c b/fs/cachefiles/interface.c index 861d611b8c05..ce5f345d70f5 100644 --- a/fs/cachefiles/interface.c +++ b/fs/cachefiles/interface.c | |||
| @@ -380,7 +380,7 @@ static void cachefiles_sync_cache(struct fscache_cache *_cache) | |||
| 380 | * check if the backing cache is updated to FS-Cache | 380 | * check if the backing cache is updated to FS-Cache |
| 381 | * - called by FS-Cache when evaluates if need to invalidate the cache | 381 | * - called by FS-Cache when evaluates if need to invalidate the cache |
| 382 | */ | 382 | */ |
| 383 | static bool cachefiles_check_consistency(struct fscache_operation *op) | 383 | static int cachefiles_check_consistency(struct fscache_operation *op) |
| 384 | { | 384 | { |
| 385 | struct cachefiles_object *object; | 385 | struct cachefiles_object *object; |
| 386 | struct cachefiles_cache *cache; | 386 | struct cachefiles_cache *cache; |
