]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/fscache/operation.c
FS-Cache: Wrap checks on object state
[karo-tx-linux.git] / fs / fscache / operation.c
index 762a9ec4ffa4739686e41cd3f8521765ca6e9719..ccf02194e7a686e9c16933eca99bea45044a093c 100644 (file)
@@ -35,7 +35,7 @@ void fscache_enqueue_operation(struct fscache_operation *op)
 
        ASSERT(list_empty(&op->pend_link));
        ASSERT(op->processor != NULL);
-       ASSERTCMP(op->object->state, >=, FSCACHE_OBJECT_AVAILABLE);
+       ASSERT(fscache_object_is_available(op->object));
        ASSERTCMP(atomic_read(&op->usage), >, 0);
        ASSERTCMP(op->state, ==, FSCACHE_OP_ST_IN_PROGRESS);