Lines Matching refs:err
60 int err, new_ltail_lnum, old_ltail_lnum, i; in do_commit() local
66 err = -EROFS; in do_commit()
72 err = ubifs_wbuf_sync(&c->jheads[i].wbuf); in do_commit()
73 if (err) in do_commit()
78 err = ubifs_gc_start_commit(c); in do_commit()
79 if (err) in do_commit()
81 err = dbg_check_lprops(c); in do_commit()
82 if (err) in do_commit()
84 err = ubifs_log_start_commit(c, &new_ltail_lnum); in do_commit()
85 if (err) in do_commit()
87 err = ubifs_tnc_start_commit(c, &zroot); in do_commit()
88 if (err) in do_commit()
90 err = ubifs_lpt_start_commit(c); in do_commit()
91 if (err) in do_commit()
93 err = ubifs_orphan_start_commit(c); in do_commit()
94 if (err) in do_commit()
101 err = ubifs_tnc_end_commit(c); in do_commit()
102 if (err) in do_commit()
104 err = ubifs_lpt_end_commit(c); in do_commit()
105 if (err) in do_commit()
107 err = ubifs_orphan_end_commit(c); in do_commit()
108 if (err) in do_commit()
111 err = ubifs_log_end_commit(c, new_ltail_lnum); in do_commit()
112 if (err) in do_commit()
114 err = dbg_check_old_index(c, &zroot); in do_commit()
115 if (err) in do_commit()
147 err = ubifs_write_master(c); in do_commit()
149 if (err) in do_commit()
152 err = ubifs_log_post_commit(c, old_ltail_lnum); in do_commit()
153 if (err) in do_commit()
155 err = ubifs_gc_end_commit(c); in do_commit()
156 if (err) in do_commit()
158 err = ubifs_lpt_post_commit(c); in do_commit()
159 if (err) in do_commit()
173 ubifs_err("commit failed, error %d", err); in do_commit()
178 ubifs_ro_mode(c, err); in do_commit()
179 return err; in do_commit()
234 int err; in ubifs_bg_thread() local
264 err = ubifs_bg_wbufs_sync(c); in ubifs_bg_thread()
265 if (err) in ubifs_bg_thread()
266 ubifs_ro_mode(c, err); in ubifs_bg_thread()
358 int err = 0; in ubifs_run_commit() local
362 err = -EINVAL; in ubifs_run_commit()
388 err = -EINVAL; in ubifs_run_commit()
403 err = do_commit(c); in ubifs_run_commit()
404 return err; in ubifs_run_commit()
410 return err; in ubifs_run_commit()
472 int lnum, offs, len, err = 0; in dbg_old_index_check_init() local
484 err = ubifs_read_node(c, idx, UBIFS_IDX_NODE, len, lnum, offs); in dbg_old_index_check_init()
485 if (err) in dbg_old_index_check_init()
492 return err; in dbg_old_index_check_init()
510 int lnum, offs, len, err = 0, uninitialized_var(last_level), child_cnt; in dbg_check_old_index() local
544 err = -ENOMEM; in dbg_check_old_index()
552 err = ubifs_read_node(c, idx, UBIFS_IDX_NODE, len, lnum, offs); in dbg_check_old_index()
553 if (err) in dbg_check_old_index()
558 err = 1; in dbg_check_old_index()
565 err = 2; in dbg_check_old_index()
569 err = 3; in dbg_check_old_index()
580 err = 3; in dbg_check_old_index()
588 err = 4; in dbg_check_old_index()
596 err = 5; in dbg_check_old_index()
600 err = 6; in dbg_check_old_index()
605 err = 7; in dbg_check_old_index()
651 err = dbg_old_index_check_init(c, zroot); in dbg_check_old_index()
652 if (err) in dbg_check_old_index()
673 ubifs_err("failed, error %d", err); in dbg_check_old_index()
674 if (err > 0) in dbg_check_old_index()
675 err = -EINVAL; in dbg_check_old_index()
676 return err; in dbg_check_old_index()