Lines Matching refs:partial

244 				   Indirect *partial)  in ext4_find_goal()  argument
252 goal = ext4_find_near(inode, partial); in ext4_find_goal()
522 Indirect *partial; in ext4_ind_map_blocks() local
538 partial = ext4_get_branch(inode, depth, offsets, chain, &err); in ext4_ind_map_blocks()
541 if (!partial) { in ext4_ind_map_blocks()
582 ar.goal = ext4_find_goal(inode, map->m_lblk, partial); in ext4_ind_map_blocks()
585 indirect_blks = (chain + depth) - partial - 1; in ext4_ind_map_blocks()
591 ar.len = ext4_blks_to_allocate(partial, indirect_blks, in ext4_ind_map_blocks()
598 offsets + (partial - chain), partial); in ext4_ind_map_blocks()
608 err = ext4_splice_branch(handle, &ar, partial, indirect_blks); in ext4_ind_map_blocks()
624 partial = chain + depth - 1; /* the whole chain */ in ext4_ind_map_blocks()
626 while (partial > chain) { in ext4_ind_map_blocks()
627 BUFFER_TRACE(partial->bh, "call brelse"); in ext4_ind_map_blocks()
628 brelse(partial->bh); in ext4_ind_map_blocks()
629 partial--; in ext4_ind_map_blocks()
878 Indirect *partial, *p; in ext4_find_shared() local
885 partial = ext4_get_branch(inode, k, offsets, chain, &err); in ext4_find_shared()
887 if (!partial) in ext4_find_shared()
888 partial = chain + k-1; in ext4_find_shared()
893 if (!partial->key && *partial->p) in ext4_find_shared()
896 for (p = partial; (p > chain) && all_zeroes((__le32 *) p->bh->b_data, p->p); p--) in ext4_find_shared()
915 while (partial > p) { in ext4_find_shared()
916 brelse(partial->bh); in ext4_find_shared()
917 partial--; in ext4_find_shared()
920 return partial; in ext4_find_shared()
1212 Indirect *partial; in ext4_ind_truncate() local
1252 partial = ext4_find_shared(inode, n, offsets, chain, &nr); in ext4_ind_truncate()
1255 if (partial == chain) { in ext4_ind_truncate()
1258 &nr, &nr+1, (chain+n-1) - partial); in ext4_ind_truncate()
1259 *partial->p = 0; in ext4_ind_truncate()
1266 BUFFER_TRACE(partial->bh, "get_write_access"); in ext4_ind_truncate()
1267 ext4_free_branches(handle, inode, partial->bh, in ext4_ind_truncate()
1268 partial->p, in ext4_ind_truncate()
1269 partial->p+1, (chain+n-1) - partial); in ext4_ind_truncate()
1273 while (partial > chain) { in ext4_ind_truncate()
1274 ext4_free_branches(handle, inode, partial->bh, partial->p + 1, in ext4_ind_truncate()
1275 (__le32*)partial->bh->b_data+addr_per_block, in ext4_ind_truncate()
1276 (chain+n-1) - partial); in ext4_ind_truncate()
1277 BUFFER_TRACE(partial->bh, "call brelse"); in ext4_ind_truncate()
1278 brelse(partial->bh); in ext4_ind_truncate()
1279 partial--; in ext4_ind_truncate()
1325 Indirect *partial, *partial2; in ext4_ind_remove_space() local
1367 partial = ext4_find_shared(inode, n, offsets, chain, &nr); in ext4_ind_remove_space()
1369 if (partial == chain) { in ext4_ind_remove_space()
1372 &nr, &nr+1, (chain+n-1) - partial); in ext4_ind_remove_space()
1373 *partial->p = 0; in ext4_ind_remove_space()
1376 BUFFER_TRACE(partial->bh, "get_write_access"); in ext4_ind_remove_space()
1377 ext4_free_branches(handle, inode, partial->bh, in ext4_ind_remove_space()
1378 partial->p, in ext4_ind_remove_space()
1379 partial->p+1, (chain+n-1) - partial); in ext4_ind_remove_space()
1387 while (partial > chain) { in ext4_ind_remove_space()
1388 ext4_free_branches(handle, inode, partial->bh, in ext4_ind_remove_space()
1389 partial->p + 1, in ext4_ind_remove_space()
1390 (__le32 *)partial->bh->b_data+addr_per_block, in ext4_ind_remove_space()
1391 (chain+n-1) - partial); in ext4_ind_remove_space()
1392 BUFFER_TRACE(partial->bh, "call brelse"); in ext4_ind_remove_space()
1393 brelse(partial->bh); in ext4_ind_remove_space()
1394 partial--; in ext4_ind_remove_space()
1436 partial = ext4_find_shared(inode, n, offsets, chain, &nr); in ext4_ind_remove_space()
1441 int level = min(partial - chain, partial2 - chain2); in ext4_ind_remove_space()
1453 if (partial == chain) { in ext4_ind_remove_space()
1457 (chain+n-1) - partial); in ext4_ind_remove_space()
1458 *partial->p = 0; in ext4_ind_remove_space()
1461 BUFFER_TRACE(partial->bh, "get_write_access"); in ext4_ind_remove_space()
1462 ext4_free_branches(handle, inode, partial->bh, in ext4_ind_remove_space()
1463 partial->p, in ext4_ind_remove_space()
1464 partial->p+1, in ext4_ind_remove_space()
1465 (chain+n-1) - partial); in ext4_ind_remove_space()
1480 while (partial > chain || partial2 > chain2) { in ext4_ind_remove_space()
1481 int depth = (chain+n-1) - partial; in ext4_ind_remove_space()
1484 if (partial > chain && partial2 > chain2 && in ext4_ind_remove_space()
1485 partial->bh->b_blocknr == partial2->bh->b_blocknr) { in ext4_ind_remove_space()
1490 ext4_free_branches(handle, inode, partial->bh, in ext4_ind_remove_space()
1491 partial->p + 1, in ext4_ind_remove_space()
1493 (chain+n-1) - partial); in ext4_ind_remove_space()
1494 BUFFER_TRACE(partial->bh, "call brelse"); in ext4_ind_remove_space()
1495 brelse(partial->bh); in ext4_ind_remove_space()
1508 if (partial > chain && depth <= depth2) { in ext4_ind_remove_space()
1509 ext4_free_branches(handle, inode, partial->bh, in ext4_ind_remove_space()
1510 partial->p + 1, in ext4_ind_remove_space()
1511 (__le32 *)partial->bh->b_data+addr_per_block, in ext4_ind_remove_space()
1512 (chain+n-1) - partial); in ext4_ind_remove_space()
1513 BUFFER_TRACE(partial->bh, "call brelse"); in ext4_ind_remove_space()
1514 brelse(partial->bh); in ext4_ind_remove_space()
1515 partial--; in ext4_ind_remove_space()