Lines Matching refs:chain
146 Indirect chain[4], int *err) in ext4_get_branch()
149 Indirect *p = chain; in ext4_get_branch()
156 add_chain(chain, NULL, EXT4_I(inode)->i_data + *offsets); in ext4_get_branch()
537 Indirect chain[4]; in ext4_ind_map_blocks() local
554 partial = ext4_get_branch(inode, depth, offsets, chain, &err); in ext4_ind_map_blocks()
558 first_block = le32_to_cpu(chain[depth - 1].key); in ext4_ind_map_blocks()
564 blk = le32_to_cpu(*(chain[depth-1].p + count)); in ext4_ind_map_blocks()
586 for (i = partial - chain + 1; i < depth; i++) in ext4_ind_map_blocks()
623 indirect_blks = (chain + depth) - partial - 1; in ext4_ind_map_blocks()
636 offsets + (partial - chain), partial); in ext4_ind_map_blocks()
664 map->m_pblk = le32_to_cpu(chain[depth-1].key); in ext4_ind_map_blocks()
670 partial = chain + depth - 1; /* the whole chain */ in ext4_ind_map_blocks()
672 while (partial > chain) { in ext4_ind_map_blocks()
805 ext4_lblk_t offsets[4], Indirect chain[4], in ext4_find_shared()
815 partial = ext4_get_branch(inode, k, offsets, chain, &err); in ext4_find_shared()
818 partial = chain + k-1; in ext4_find_shared()
826 for (p = partial; (p > chain) && all_zeroes((__le32 *) p->bh->b_data, p->p); p--) in ext4_find_shared()
834 if (p == chain + k - 1 && p > chain) { in ext4_find_shared()
1125 Indirect chain[4]; in ext4_ind_truncate() local
1166 partial = ext4_find_shared(inode, n, offsets, chain, &nr); in ext4_ind_truncate()
1169 if (partial == chain) { in ext4_ind_truncate()
1172 &nr, &nr+1, (chain+n-1) - partial); in ext4_ind_truncate()
1183 partial->p+1, (chain+n-1) - partial); in ext4_ind_truncate()
1187 while (partial > chain) { in ext4_ind_truncate()
1190 (chain+n-1) - partial); in ext4_ind_truncate()
1241 Indirect chain[4], chain2[4]; in ext4_ind_remove_space() local
1285 partial = p = ext4_find_shared(inode, n, offsets, chain, &nr); in ext4_ind_remove_space()
1287 if (partial == chain) { in ext4_ind_remove_space()
1290 &nr, &nr+1, (chain+n-1) - partial); in ext4_ind_remove_space()
1297 partial->p+1, (chain+n-1) - partial); in ext4_ind_remove_space()
1305 while (partial > chain) { in ext4_ind_remove_space()
1309 (chain+n-1) - partial); in ext4_ind_remove_space()
1350 partial = p = ext4_find_shared(inode, n, offsets, chain, &nr); in ext4_ind_remove_space()
1355 int level = min(partial - chain, partial2 - chain2); in ext4_ind_remove_space()
1367 if (partial == chain) { in ext4_ind_remove_space()
1371 (chain+n-1) - partial); in ext4_ind_remove_space()
1379 (chain+n-1) - partial); in ext4_ind_remove_space()
1394 while (partial > chain || partial2 > chain2) { in ext4_ind_remove_space()
1395 int depth = (chain+n-1) - partial; in ext4_ind_remove_space()
1398 if (partial > chain && partial2 > chain2 && in ext4_ind_remove_space()
1407 (chain+n-1) - partial); in ext4_ind_remove_space()
1418 if (partial > chain && depth <= depth2) { in ext4_ind_remove_space()
1422 (chain+n-1) - partial); in ext4_ind_remove_space()
1435 while (p && p > chain) { in ext4_ind_remove_space()