Lines Matching refs:state
42 op->state = FSCACHE_OP_ST_INITIALISED; in fscache_operation_init()
69 ASSERTCMP(op->state, ==, FSCACHE_OP_ST_IN_PROGRESS); in fscache_enqueue_operation()
96 ASSERTCMP(op->state, ==, FSCACHE_OP_ST_PENDING); in fscache_run_op()
98 op->state = FSCACHE_OP_ST_IN_PROGRESS; in fscache_run_op()
123 op->debug_id, object->debug_id, object->state->name); in fscache_report_unexpected_submission()
124 kdebug("objstate=%s [%s]", object->state->name, ostate->name); in fscache_report_unexpected_submission()
158 ASSERTCMP(op->state, ==, FSCACHE_OP_ST_INITIALISED); in fscache_submit_exclusive_op()
166 ostate = object->state; in fscache_submit_exclusive_op()
169 op->state = FSCACHE_OP_ST_PENDING; in fscache_submit_exclusive_op()
174 op->state = FSCACHE_OP_ST_CANCELLED; in fscache_submit_exclusive_op()
178 op->state = FSCACHE_OP_ST_CANCELLED; in fscache_submit_exclusive_op()
212 op->state = FSCACHE_OP_ST_CANCELLED; in fscache_submit_exclusive_op()
217 op->state = FSCACHE_OP_ST_CANCELLED; in fscache_submit_exclusive_op()
243 ASSERTCMP(op->state, ==, FSCACHE_OP_ST_INITIALISED); in fscache_submit_op()
251 ostate = object->state; in fscache_submit_op()
254 op->state = FSCACHE_OP_ST_PENDING; in fscache_submit_op()
259 op->state = FSCACHE_OP_ST_CANCELLED; in fscache_submit_op()
263 op->state = FSCACHE_OP_ST_CANCELLED; in fscache_submit_op()
292 op->state = FSCACHE_OP_ST_CANCELLED; in fscache_submit_op()
298 op->state = FSCACHE_OP_ST_CANCELLED; in fscache_submit_op()
360 ASSERTCMP(op->state, >=, FSCACHE_OP_ST_PENDING); in fscache_cancel_op()
361 ASSERTCMP(op->state, !=, FSCACHE_OP_ST_CANCELLED); in fscache_cancel_op()
367 if (op->state == FSCACHE_OP_ST_PENDING) { in fscache_cancel_op()
374 op->state = FSCACHE_OP_ST_CANCELLED; in fscache_cancel_op()
380 } else if (op->state == FSCACHE_OP_ST_IN_PROGRESS && cancel_in_progress_op) { in fscache_cancel_op()
390 op->state = FSCACHE_OP_ST_CANCELLED; in fscache_cancel_op()
422 ASSERTCMP(op->state, ==, FSCACHE_OP_ST_PENDING); in fscache_cancel_all_ops()
424 op->state = FSCACHE_OP_ST_CANCELLED; in fscache_cancel_all_ops()
447 ASSERTCMP(op->state, ==, FSCACHE_OP_ST_IN_PROGRESS); in fscache_op_complete()
457 op->state = FSCACHE_OP_ST_COMPLETE; in fscache_op_complete()
460 op->state = FSCACHE_OP_ST_CANCELLED; in fscache_op_complete()
492 ASSERTIFCMP(op->state != FSCACHE_OP_ST_INITIALISED && in fscache_put_operation()
493 op->state != FSCACHE_OP_ST_COMPLETE, in fscache_put_operation()
494 op->state, ==, FSCACHE_OP_ST_CANCELLED); in fscache_put_operation()
502 op->state = FSCACHE_OP_ST_DEAD; in fscache_put_operation()
573 ASSERTCMP(op->state, ==, FSCACHE_OP_ST_DEAD); in fscache_operation_gc()