diff options
Diffstat (limited to 'include/linux/fscache-cache.h')
-rw-r--r-- | include/linux/fscache-cache.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/fscache-cache.h b/include/linux/fscache-cache.h index 4750d5fb419f..907bb56c5888 100644 --- a/include/linux/fscache-cache.h +++ b/include/linux/fscache-cache.h | |||
@@ -404,6 +404,10 @@ extern const char *fscache_object_states[]; | |||
404 | (obj)->state >= FSCACHE_OBJECT_AVAILABLE && \ | 404 | (obj)->state >= FSCACHE_OBJECT_AVAILABLE && \ |
405 | (obj)->state < FSCACHE_OBJECT_DYING) | 405 | (obj)->state < FSCACHE_OBJECT_DYING) |
406 | 406 | ||
407 | #define fscache_object_is_dead(obj) \ | ||
408 | (test_bit(FSCACHE_IOERROR, &(obj)->cache->flags) && \ | ||
409 | (obj)->state >= FSCACHE_OBJECT_DYING) | ||
410 | |||
407 | extern const struct slow_work_ops fscache_object_slow_work_ops; | 411 | extern const struct slow_work_ops fscache_object_slow_work_ops; |
408 | 412 | ||
409 | /** | 413 | /** |