Lines Matching refs:cmt_state

219 	c->cmt_state = COMMIT_RESTING;  in do_commit()
230 c->cmt_state = COMMIT_BROKEN; in do_commit()
251 if (c->cmt_state != COMMIT_BACKGROUND && in run_bg_commit()
252 c->cmt_state != COMMIT_REQUIRED) in run_bg_commit()
258 if (c->cmt_state == COMMIT_REQUIRED) in run_bg_commit()
259 c->cmt_state = COMMIT_RUNNING_REQUIRED; in run_bg_commit()
260 else if (c->cmt_state == COMMIT_BACKGROUND) in run_bg_commit()
261 c->cmt_state = COMMIT_RUNNING_BACKGROUND; in run_bg_commit()
341 switch (c->cmt_state) { in ubifs_commit_required()
344 dbg_cmt("old: %s, new: %s", dbg_cstate(c->cmt_state), in ubifs_commit_required()
346 c->cmt_state = COMMIT_REQUIRED; in ubifs_commit_required()
349 dbg_cmt("old: %s, new: %s", dbg_cstate(c->cmt_state), in ubifs_commit_required()
351 c->cmt_state = COMMIT_RUNNING_REQUIRED; in ubifs_commit_required()
371 if (c->cmt_state == COMMIT_RESTING) { in ubifs_request_bg_commit()
372 dbg_cmt("old: %s, new: %s", dbg_cstate(c->cmt_state), in ubifs_request_bg_commit()
374 c->cmt_state = COMMIT_BACKGROUND; in ubifs_request_bg_commit()
398 wait_event(c->cmt_wq, c->cmt_state != COMMIT_RUNNING_BACKGROUND && in wait_for_commit()
399 c->cmt_state != COMMIT_RUNNING_REQUIRED); in wait_for_commit()
416 if (c->cmt_state == COMMIT_BROKEN) { in ubifs_run_commit()
421 if (c->cmt_state == COMMIT_RUNNING_BACKGROUND) in ubifs_run_commit()
426 c->cmt_state = COMMIT_RUNNING_REQUIRED; in ubifs_run_commit()
428 if (c->cmt_state == COMMIT_RUNNING_REQUIRED) { in ubifs_run_commit()
442 if (c->cmt_state == COMMIT_BROKEN) { in ubifs_run_commit()
447 if (c->cmt_state == COMMIT_RUNNING_BACKGROUND) in ubifs_run_commit()
448 c->cmt_state = COMMIT_RUNNING_REQUIRED; in ubifs_run_commit()
450 if (c->cmt_state == COMMIT_RUNNING_REQUIRED) { in ubifs_run_commit()
455 c->cmt_state = COMMIT_RUNNING_REQUIRED; in ubifs_run_commit()
484 if (c->cmt_state == COMMIT_BACKGROUND) { in ubifs_gc_should_commit()
486 c->cmt_state = COMMIT_REQUIRED; in ubifs_gc_should_commit()
489 if (c->cmt_state == COMMIT_REQUIRED) in ubifs_gc_should_commit()