Lines Matching refs:partial
331 Indirect *partial) in ext2_find_goal() argument
346 return ext2_find_near(inode, partial); in ext2_find_goal()
631 Indirect *partial; in ext2_get_blocks() local
647 partial = ext2_get_branch(inode, depth, offsets, chain, &err); in ext2_get_blocks()
649 if (!partial) { in ext2_get_blocks()
665 partial = chain + depth - 1; in ext2_get_blocks()
695 if (err == -EAGAIN || !verify_chain(chain, partial)) { in ext2_get_blocks()
696 while (partial > chain) { in ext2_get_blocks()
697 brelse(partial->bh); in ext2_get_blocks()
698 partial--; in ext2_get_blocks()
700 partial = ext2_get_branch(inode, depth, offsets, chain, &err); in ext2_get_blocks()
701 if (!partial) { in ext2_get_blocks()
720 goal = ext2_find_goal(inode, iblock, partial); in ext2_get_blocks()
723 indirect_blks = (chain + depth) - partial - 1; in ext2_get_blocks()
728 count = ext2_blks_to_allocate(partial, indirect_blks, in ext2_get_blocks()
734 offsets + (partial - chain), partial); in ext2_get_blocks()
764 ext2_splice_branch(inode, iblock, partial, indirect_blks, count); in ext2_get_blocks()
771 partial = chain + depth - 1; /* the whole chain */ in ext2_get_blocks()
773 while (partial > chain) { in ext2_get_blocks()
774 brelse(partial->bh); in ext2_get_blocks()
775 partial--; in ext2_get_blocks()
1054 Indirect *partial, *p; in ext2_find_shared() local
1060 partial = ext2_get_branch(inode, k, offsets, chain, &err); in ext2_find_shared()
1061 if (!partial) in ext2_find_shared()
1062 partial = chain + k-1; in ext2_find_shared()
1068 if (!partial->key && *partial->p) { in ext2_find_shared()
1072 for (p=partial; p>chain && all_zeroes((__le32*)p->bh->b_data,p->p); p--) in ext2_find_shared()
1088 while(partial > p) in ext2_find_shared()
1090 brelse(partial->bh); in ext2_find_shared()
1091 partial--; in ext2_find_shared()
1094 return partial; in ext2_find_shared()
1190 Indirect *partial; in __ext2_truncate_blocks() local
1218 partial = ext2_find_shared(inode, n, offsets, chain, &nr); in __ext2_truncate_blocks()
1221 if (partial == chain) in __ext2_truncate_blocks()
1224 mark_buffer_dirty_inode(partial->bh, inode); in __ext2_truncate_blocks()
1225 ext2_free_branches(inode, &nr, &nr+1, (chain+n-1) - partial); in __ext2_truncate_blocks()
1228 while (partial > chain) { in __ext2_truncate_blocks()
1230 partial->p + 1, in __ext2_truncate_blocks()
1231 (__le32*)partial->bh->b_data+addr_per_block, in __ext2_truncate_blocks()
1232 (chain+n-1) - partial); in __ext2_truncate_blocks()
1233 mark_buffer_dirty_inode(partial->bh, inode); in __ext2_truncate_blocks()
1234 brelse (partial->bh); in __ext2_truncate_blocks()
1235 partial--; in __ext2_truncate_blocks()