Lines Matching full:error
37 int error; in rcbag_init() local
46 error = rcbagbt_mem_init(mp, &bag->xfbtree, btp); in rcbag_init()
47 if (error) in rcbag_init()
55 return error; in rcbag_init()
80 int error; in rcbag_add() local
83 error = rcbagbt_lookup_eq(cur, rmap, &has); in rcbag_add()
84 if (error) in rcbag_add()
88 error = rcbagbt_get_rec(cur, &bagrec, &has); in rcbag_add()
89 if (error) in rcbag_add()
92 error = -EFSCORRUPTED; in rcbag_add()
97 error = rcbagbt_update(cur, &bagrec); in rcbag_add()
98 if (error) in rcbag_add()
105 error = rcbagbt_insert(cur, &bagrec, &has); in rcbag_add()
106 if (error) in rcbag_add()
109 error = -EFSCORRUPTED; in rcbag_add()
116 error = xfbtree_trans_commit(&bag->xfbtree, tp); in rcbag_add()
117 if (error) in rcbag_add()
118 return error; in rcbag_add()
124 xfs_btree_del_cursor(cur, error); in rcbag_add()
126 return error; in rcbag_add()
159 int error; in rcbag_next_edge() local
165 error = xfs_btree_goto_left_edge(cur); in rcbag_next_edge()
166 if (error) in rcbag_next_edge()
170 error = xfs_btree_increment(cur, 0, &has); in rcbag_next_edge()
171 if (error) in rcbag_next_edge()
176 error = rcbagbt_get_rec(cur, &bagrec, &has); in rcbag_next_edge()
177 if (error) in rcbag_next_edge()
180 error = -EFSCORRUPTED; in rcbag_next_edge()
194 error = -EFSCORRUPTED; in rcbag_next_edge()
204 xfs_btree_del_cursor(cur, error); in rcbag_next_edge()
205 return error; in rcbag_next_edge()
219 int error; in rcbag_remove_ending_at() local
224 error = xfs_btree_lookup(cur, XFS_LOOKUP_GE, &has); in rcbag_remove_ending_at()
225 if (error) in rcbag_remove_ending_at()
229 error = xfs_btree_decrement(cur, 0, &has); in rcbag_remove_ending_at()
230 if (error) in rcbag_remove_ending_at()
235 error = rcbagbt_get_rec(cur, &bagrec, &has); in rcbag_remove_ending_at()
236 if (error) in rcbag_remove_ending_at()
239 error = -EFSCORRUPTED; in rcbag_remove_ending_at()
246 error = xfs_btree_delete(cur, &has); in rcbag_remove_ending_at()
247 if (error) in rcbag_remove_ending_at()
250 error = -EFSCORRUPTED; in rcbag_remove_ending_at()
260 xfs_btree_del_cursor(cur, error); in rcbag_remove_ending_at()
262 return error; in rcbag_remove_ending_at()
276 int error; in rcbag_dump() local
279 error = xfs_btree_goto_left_edge(cur); in rcbag_dump()
280 if (error) in rcbag_dump()
284 error = xfs_btree_increment(cur, 0, &has); in rcbag_dump()
285 if (error) in rcbag_dump()
290 error = rcbagbt_get_rec(cur, &bagrec, &has); in rcbag_dump()
291 if (error) in rcbag_dump()
294 error = -EFSCORRUPTED; in rcbag_dump()
306 xfs_btree_del_cursor(cur, error); in rcbag_dump()