]> git.baikalelectronics.ru Git - kernel.git/commit
FS-Cache: make check_consistency callback return int
authorYan, Zheng <zyan@redhat.com>
Fri, 20 May 2016 10:32:31 +0000 (18:32 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 1 Jun 2016 08:29:39 +0000 (10:29 +0200)
commit842f8dac36387a6b613afebb4e9c6063d91a8ec0
tree7355b4c18651ff54653cede0a82a52c3631e535f
parentb89e5eb7d7b6e50f7cb7770f18631a2e075bfa32
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>
fs/cachefiles/interface.c
include/linux/fscache-cache.h