Lines Matching refs:found
1432 int found, n, err, safely = 0, gc_seq1; in ubifs_tnc_locate() local
1438 found = ubifs_lookup_level0(c, key, &znode, &n); in ubifs_tnc_locate()
1439 if (!found) { in ubifs_tnc_locate()
1442 } else if (found < 0) { in ubifs_tnc_locate()
1443 err = found; in ubifs_tnc_locate()
1794 int found, n, err; in do_lookup_nm() local
1799 found = ubifs_lookup_level0(c, key, &znode, &n); in do_lookup_nm()
1800 if (!found) { in do_lookup_nm()
1803 } else if (found < 0) { in do_lookup_nm()
1804 err = found; in do_lookup_nm()
2152 int found, n, err = 0; in ubifs_tnc_add() local
2157 found = lookup_level0_dirty(c, key, &znode, &n); in ubifs_tnc_add()
2158 if (!found) { in ubifs_tnc_add()
2167 } else if (found == 1) { in ubifs_tnc_add()
2176 err = found; in ubifs_tnc_add()
2201 int found, n, err = 0; in ubifs_tnc_replace() local
2207 found = lookup_level0_dirty(c, key, &znode, &n); in ubifs_tnc_replace()
2208 if (found < 0) { in ubifs_tnc_replace()
2209 err = found; in ubifs_tnc_replace()
2213 if (found == 1) { in ubifs_tnc_replace()
2216 found = 0; in ubifs_tnc_replace()
2225 found = 1; in ubifs_tnc_replace()
2227 found = resolve_collision_directly(c, key, &znode, &n, in ubifs_tnc_replace()
2230 found, znode, n, old_lnum, old_offs); in ubifs_tnc_replace()
2231 if (found < 0) { in ubifs_tnc_replace()
2232 err = found; in ubifs_tnc_replace()
2236 if (found) { in ubifs_tnc_replace()
2258 if (!found) in ubifs_tnc_replace()
2284 int found, n, err = 0; in ubifs_tnc_add_nm() local
2290 found = lookup_level0_dirty(c, key, &znode, &n); in ubifs_tnc_add_nm()
2291 if (found < 0) { in ubifs_tnc_add_nm()
2292 err = found; in ubifs_tnc_add_nm()
2296 if (found == 1) { in ubifs_tnc_add_nm()
2298 found = fallible_resolve_collision(c, key, &znode, &n, in ubifs_tnc_add_nm()
2301 found = resolve_collision(c, key, &znode, &n, nm); in ubifs_tnc_add_nm()
2302 dbg_tnc("rc returned %d, znode %p, n %d", found, znode, n); in ubifs_tnc_add_nm()
2303 if (found < 0) { in ubifs_tnc_add_nm()
2304 err = found; in ubifs_tnc_add_nm()
2317 if (found == 1) { in ubifs_tnc_add_nm()
2329 if (!found) { in ubifs_tnc_add_nm()
2488 int found, n, err = 0; in ubifs_tnc_remove() local
2493 found = lookup_level0_dirty(c, key, &znode, &n); in ubifs_tnc_remove()
2494 if (found < 0) { in ubifs_tnc_remove()
2495 err = found; in ubifs_tnc_remove()
2498 if (found == 1) in ubifs_tnc_remove()
3132 int n, found, err, nn; in is_leaf_node_in_tnc() local
3135 found = ubifs_lookup_level0(c, key, &znode, &n); in is_leaf_node_in_tnc()
3136 if (found < 0) in is_leaf_node_in_tnc()
3137 return found; /* Error code */ in is_leaf_node_in_tnc()
3138 if (!found) in is_leaf_node_in_tnc()