Lines Matching full:chain
91 Indirect chain[], in get_branch() argument
95 Indirect *p = chain; in get_branch()
99 add_chain(chain, NULL, SYSV_I(inode)->i_data + *offsets); in get_branch()
107 if (!verify_chain(chain, p)) in get_branch()
169 Indirect chain[], in splice_branch() argument
177 if (!verify_chain(chain, where-1) || *where->p) in splice_branch()
207 Indirect chain[DEPTH]; in get_block() local
218 partial = get_branch(inode, depth, offsets, chain, &err); in get_block()
225 chain[depth-1].key)); in get_block()
227 partial = chain+depth-1; /* the whole chain */ in get_block()
234 while (partial > chain) { in get_block()
250 left = (chain + depth) - partial; in get_block()
251 err = alloc_branch(inode, left, offsets+(partial-chain), partial); in get_block()
255 if (splice_branch(inode, chain, partial, left) < 0) in get_block()
262 while (partial > chain) { in get_block()
280 Indirect chain[], in find_shared() argument
291 partial = get_branch(inode, k, offsets, chain, &err); in find_shared()
293 partial = chain + k-1; in find_shared()
302 for (p=partial; p>chain && all_zeroes((sysv_zone_t*)p->bh->b_data,p->p); p--) in find_shared()
310 if (p == chain + k - 1 && p > chain) { in find_shared()
368 Indirect chain[DEPTH]; in sysv_truncate() local
394 partial = find_shared(inode, n, offsets, chain, &nr); in sysv_truncate()
397 if (partial == chain) in sysv_truncate()
401 free_branches(inode, &nr, &nr+1, (chain+n-1) - partial); in sysv_truncate()
404 while (partial > chain) { in sysv_truncate()
406 (chain+n-1) - partial); in sysv_truncate()