Lines Matching refs:partial

243 				   Indirect *partial)  in ext4_find_goal()  argument
251 goal = ext4_find_near(inode, partial); in ext4_find_goal()
521 Indirect *partial; in ext4_ind_map_blocks() local
537 partial = ext4_get_branch(inode, depth, offsets, chain, &err); in ext4_ind_map_blocks()
540 if (!partial) { in ext4_ind_map_blocks()
580 ar.goal = ext4_find_goal(inode, map->m_lblk, partial); in ext4_ind_map_blocks()
583 indirect_blks = (chain + depth) - partial - 1; in ext4_ind_map_blocks()
589 ar.len = ext4_blks_to_allocate(partial, indirect_blks, in ext4_ind_map_blocks()
596 offsets + (partial - chain), partial); in ext4_ind_map_blocks()
606 err = ext4_splice_branch(handle, &ar, partial, indirect_blks); in ext4_ind_map_blocks()
622 partial = chain + depth - 1; /* the whole chain */ in ext4_ind_map_blocks()
624 while (partial > chain) { in ext4_ind_map_blocks()
625 BUFFER_TRACE(partial->bh, "call brelse"); in ext4_ind_map_blocks()
626 brelse(partial->bh); in ext4_ind_map_blocks()
627 partial--; in ext4_ind_map_blocks()
876 Indirect *partial, *p; in ext4_find_shared() local
883 partial = ext4_get_branch(inode, k, offsets, chain, &err); in ext4_find_shared()
885 if (!partial) in ext4_find_shared()
886 partial = chain + k-1; in ext4_find_shared()
891 if (!partial->key && *partial->p) in ext4_find_shared()
894 for (p = partial; (p > chain) && all_zeroes((__le32 *) p->bh->b_data, p->p); p--) in ext4_find_shared()
913 while (partial > p) { in ext4_find_shared()
914 brelse(partial->bh); in ext4_find_shared()
915 partial--; in ext4_find_shared()
918 return partial; in ext4_find_shared()
1210 Indirect *partial; in ext4_ind_truncate() local
1250 partial = ext4_find_shared(inode, n, offsets, chain, &nr); in ext4_ind_truncate()
1253 if (partial == chain) { in ext4_ind_truncate()
1256 &nr, &nr+1, (chain+n-1) - partial); in ext4_ind_truncate()
1257 *partial->p = 0; in ext4_ind_truncate()
1264 BUFFER_TRACE(partial->bh, "get_write_access"); in ext4_ind_truncate()
1265 ext4_free_branches(handle, inode, partial->bh, in ext4_ind_truncate()
1266 partial->p, in ext4_ind_truncate()
1267 partial->p+1, (chain+n-1) - partial); in ext4_ind_truncate()
1271 while (partial > chain) { in ext4_ind_truncate()
1272 ext4_free_branches(handle, inode, partial->bh, partial->p + 1, in ext4_ind_truncate()
1273 (__le32*)partial->bh->b_data+addr_per_block, in ext4_ind_truncate()
1274 (chain+n-1) - partial); in ext4_ind_truncate()
1275 BUFFER_TRACE(partial->bh, "call brelse"); in ext4_ind_truncate()
1276 brelse(partial->bh); in ext4_ind_truncate()
1277 partial--; in ext4_ind_truncate()
1323 Indirect *partial, *partial2; in ext4_ind_remove_space() local
1365 partial = ext4_find_shared(inode, n, offsets, chain, &nr); in ext4_ind_remove_space()
1367 if (partial == chain) { in ext4_ind_remove_space()
1370 &nr, &nr+1, (chain+n-1) - partial); in ext4_ind_remove_space()
1371 *partial->p = 0; in ext4_ind_remove_space()
1374 BUFFER_TRACE(partial->bh, "get_write_access"); in ext4_ind_remove_space()
1375 ext4_free_branches(handle, inode, partial->bh, in ext4_ind_remove_space()
1376 partial->p, in ext4_ind_remove_space()
1377 partial->p+1, (chain+n-1) - partial); in ext4_ind_remove_space()
1385 while (partial > chain) { in ext4_ind_remove_space()
1386 ext4_free_branches(handle, inode, partial->bh, in ext4_ind_remove_space()
1387 partial->p + 1, in ext4_ind_remove_space()
1388 (__le32 *)partial->bh->b_data+addr_per_block, in ext4_ind_remove_space()
1389 (chain+n-1) - partial); in ext4_ind_remove_space()
1390 BUFFER_TRACE(partial->bh, "call brelse"); in ext4_ind_remove_space()
1391 brelse(partial->bh); in ext4_ind_remove_space()
1392 partial--; in ext4_ind_remove_space()
1434 partial = ext4_find_shared(inode, n, offsets, chain, &nr); in ext4_ind_remove_space()
1439 int level = min(partial - chain, partial2 - chain2); in ext4_ind_remove_space()
1451 if (partial == chain) { in ext4_ind_remove_space()
1455 (chain+n-1) - partial); in ext4_ind_remove_space()
1456 *partial->p = 0; in ext4_ind_remove_space()
1459 BUFFER_TRACE(partial->bh, "get_write_access"); in ext4_ind_remove_space()
1460 ext4_free_branches(handle, inode, partial->bh, in ext4_ind_remove_space()
1461 partial->p, in ext4_ind_remove_space()
1462 partial->p+1, in ext4_ind_remove_space()
1463 (chain+n-1) - partial); in ext4_ind_remove_space()
1478 while (partial > chain || partial2 > chain2) { in ext4_ind_remove_space()
1479 int depth = (chain+n-1) - partial; in ext4_ind_remove_space()
1482 if (partial > chain && partial2 > chain2 && in ext4_ind_remove_space()
1483 partial->bh->b_blocknr == partial2->bh->b_blocknr) { in ext4_ind_remove_space()
1488 ext4_free_branches(handle, inode, partial->bh, in ext4_ind_remove_space()
1489 partial->p + 1, in ext4_ind_remove_space()
1491 (chain+n-1) - partial); in ext4_ind_remove_space()
1492 BUFFER_TRACE(partial->bh, "call brelse"); in ext4_ind_remove_space()
1493 brelse(partial->bh); in ext4_ind_remove_space()
1506 if (partial > chain && depth <= depth2) { in ext4_ind_remove_space()
1507 ext4_free_branches(handle, inode, partial->bh, in ext4_ind_remove_space()
1508 partial->p + 1, in ext4_ind_remove_space()
1509 (__le32 *)partial->bh->b_data+addr_per_block, in ext4_ind_remove_space()
1510 (chain+n-1) - partial); in ext4_ind_remove_space()
1511 BUFFER_TRACE(partial->bh, "call brelse"); in ext4_ind_remove_space()
1512 brelse(partial->bh); in ext4_ind_remove_space()
1513 partial--; in ext4_ind_remove_space()