diff options
| author | David Howells <[email protected]> | 2013-08-21 21:29:38 +0000 |
|---|---|---|
| committer | David Howells <[email protected]> | 2013-09-06 08:17:30 +0000 |
| commit | da9803bc8812f5bd3b26baaa90e515b843c65ff7 (patch) | |
| tree | 889b39ec88863fb46606cf345eeb4fdf8a90a67e /fs/cachefiles/interface.c | |
| parent | Linux 3.11 (diff) | |
| download | kernel-da9803bc8812f5bd3b26baaa90e515b843c65ff7.tar.gz kernel-da9803bc8812f5bd3b26baaa90e515b843c65ff7.zip | |
FS-Cache: Add interface to check consistency of a cached object
Extend the fscache netfs API so that the netfs can ask as to whether a cache
object is up to date with respect to its corresponding netfs object:
int fscache_check_consistency(struct fscache_cookie *cookie)
This will call back to the netfs to check whether the auxiliary data associated
with a cookie is correct. It returns 0 if it is and -ESTALE if it isn't; it
may also return -ENOMEM and -ERESTARTSYS.
The backends now have to implement a mandatory operation pointer:
int (*check_consistency)(struct fscache_object *object)
that corresponds to the above API call. FS-Cache takes care of pinning the
object and the cookie in memory and managing this call with respect to the
object state.
Original-author: Hongyi Jia <[email protected]>
Signed-off-by: David Howells <[email protected]>
cc: Hongyi Jia <[email protected]>
cc: Milosz Tanski <[email protected]>
Diffstat (limited to 'fs/cachefiles/interface.c')
0 files changed, 0 insertions, 0 deletions
