]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit480ce08a70e4179f34808a3bdbfe6627f624cf54
tree7355b4c18651ff54653cede0a82a52c3631e535f
parentd2138455286f9db8fbff9b50b53b51766f6c1f92
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