Lines Matching full:partial
325 * @partial: pointer to the last triple within a chain
331 Indirect *partial) in ext2_find_goal() argument
346 return ext2_find_near(inode, partial); in ext2_find_goal()
466 * we had read the existing part of chain and partial points to the last
632 Indirect *partial; in ext2_get_blocks() local
648 partial = ext2_get_branch(inode, depth, offsets, chain, &err); in ext2_get_blocks()
650 if (!partial) { in ext2_get_blocks()
666 partial = chain + depth - 1; in ext2_get_blocks()
696 if (err == -EAGAIN || !verify_chain(chain, partial)) { in ext2_get_blocks()
697 while (partial > chain) { in ext2_get_blocks()
698 brelse(partial->bh); in ext2_get_blocks()
699 partial--; in ext2_get_blocks()
701 partial = ext2_get_branch(inode, depth, offsets, chain, &err); in ext2_get_blocks()
702 if (!partial) { in ext2_get_blocks()
721 goal = ext2_find_goal(inode, iblock, partial); in ext2_get_blocks()
724 indirect_blks = (chain + depth) - partial - 1; in ext2_get_blocks()
729 count = ext2_blks_to_allocate(partial, indirect_blks, in ext2_get_blocks()
735 offsets + (partial - chain), partial); in ext2_get_blocks()
765 ext2_splice_branch(inode, iblock, partial, indirect_blks, count); in ext2_get_blocks()
772 partial = chain + depth - 1; /* the whole chain */ in ext2_get_blocks()
774 while (partial > chain) { in ext2_get_blocks()
775 brelse(partial->bh); in ext2_get_blocks()
776 partial--; in ext2_get_blocks()
993 * ext2_find_shared - find the indirect blocks for partial truncation.
997 * @chain: place to store the pointers to partial indirect blocks
1032 Indirect *partial, *p; in ext2_find_shared() local
1038 partial = ext2_get_branch(inode, k, offsets, chain, &err); in ext2_find_shared()
1039 if (!partial) in ext2_find_shared()
1040 partial = chain + k-1; in ext2_find_shared()
1046 if (!partial->key && *partial->p) { in ext2_find_shared()
1050 for (p=partial; p>chain && all_zeroes((__le32*)p->bh->b_data,p->p); p--) in ext2_find_shared()
1056 * it's easier to cheat and just decrement partial->p. in ext2_find_shared()
1066 while(partial > p) in ext2_find_shared()
1068 brelse(partial->bh); in ext2_find_shared()
1069 partial--; in ext2_find_shared()
1072 return partial; in ext2_find_shared()
1168 Indirect *partial; in __ext2_truncate_blocks() local
1196 partial = ext2_find_shared(inode, n, offsets, chain, &nr); in __ext2_truncate_blocks()
1199 if (partial == chain) in __ext2_truncate_blocks()
1202 mark_buffer_dirty_inode(partial->bh, inode); in __ext2_truncate_blocks()
1203 ext2_free_branches(inode, &nr, &nr+1, (chain+n-1) - partial); in __ext2_truncate_blocks()
1206 while (partial > chain) { in __ext2_truncate_blocks()
1208 partial->p + 1, in __ext2_truncate_blocks()
1209 (__le32*)partial->bh->b_data+addr_per_block, in __ext2_truncate_blocks()
1210 (chain+n-1) - partial); in __ext2_truncate_blocks()
1211 mark_buffer_dirty_inode(partial->bh, inode); in __ext2_truncate_blocks()
1212 brelse (partial->bh); in __ext2_truncate_blocks()
1213 partial--; in __ext2_truncate_blocks()