]> 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)
commit3863983768b3bfc5f27c763d44cdc9947941a624
tree7355b4c18651ff54653cede0a82a52c3631e535f
parent648d14265cf7c0d5a5ad35dca7dc07d71001a239
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