Lines Matching full:chain

89 			    Indirect chain[],  in get_branch()  argument
93 Indirect *p = chain; in get_branch()
97 add_chain(chain, NULL, SYSV_I(inode)->i_data + *offsets); in get_branch()
106 if (!verify_chain(chain, p)) in get_branch()
174 Indirect chain[], in splice_branch() argument
182 if (!verify_chain(chain, where-1) || *where->p) in splice_branch()
212 Indirect chain[DEPTH]; in get_block() local
222 partial = get_branch(inode, depth, offsets, chain, &err); in get_block()
228 chain[depth-1].key)); in get_block()
230 partial = chain+depth-1; /* the whole chain */ in get_block()
237 while (partial > chain) { in get_block()
253 left = (chain + depth) - partial; in get_block()
254 err = alloc_branch(inode, left, offsets+(partial-chain), partial); in get_block()
258 if (splice_branch(inode, chain, partial, left) < 0) in get_block()
265 while (partial > chain) { in get_block()
283 Indirect chain[], in find_shared() argument
292 partial = get_branch(inode, k, offsets, chain, &err); in find_shared()
296 partial = chain + k-1; in find_shared()
305 for (p=partial; p>chain && all_zeroes((sysv_zone_t*)p->bh->b_data,p->p); p--) in find_shared()
313 if (p == chain + k - 1 && p > chain) { in find_shared()
371 Indirect chain[DEPTH]; in sysv_truncate() local
397 partial = find_shared(inode, n, offsets, chain, &nr); in sysv_truncate()
400 if (partial == chain) in sysv_truncate()
404 free_branches(inode, &nr, &nr+1, (chain+n-1) - partial); in sysv_truncate()
407 while (partial > chain) { in sysv_truncate()
409 (chain+n-1) - partial); in sysv_truncate()