FS-Cache: Add interface to check consistency of a cached object
[platform/adaptation/renesas_rcar/renesas_kernel.git] / include / linux / fscache-cache.h
index a9ff9a3..7823e9e 100644 (file)
@@ -251,6 +251,10 @@ struct fscache_cache_ops {
        /* unpin an object in the cache */
        void (*unpin_object)(struct fscache_object *object);
 
+       /* check the consistency between the backing cache and the FS-Cache
+        * cookie */
+       bool (*check_consistency)(struct fscache_operation *op);
+
        /* store the updated auxiliary data on an object */
        void (*update_object)(struct fscache_object *object);