StorageTier tier = mMetaManager.getTier(tierAlias);
if (location.equals(BlockStoreLocation.anyDirInTier(tierAlias))) {
for (StorageDir dir : tier.getStorageDirs()) {
for (BlockMeta block : dir.getBlocks()) {
toEvict.add(block.getBlockId());
<BUG>spaceFreed += block.getBlockSize();

if (spaceFreed >= bytes) {
return Optional.of(new EvictionPlan(toMove, toEvict));</BUG>
}

StorageTier tier = mMetaManager.getTier(tierAlias);
if (location.equals(BlockStoreLocation.anyDirInTier(tierAlias))) {
for (StorageDir dir : tier.getStorageDirs()) {
for (BlockMeta block : dir.getBlocks()) {
toEvict.add(block.getBlockId());
freed += block.getBlockSize();
if (available + freed >= availableBytes) {
return Optional.of(new EvictionPlan(toMove, toEvict));
