public List < BlockMeta > getEvictableBlocks ( ) { List < BlockMeta > filteredList = new ArrayList <> ( ) ; for ( BlockMeta blockMeta : mDir . getBlocks ( ) ) { long blockId = blockMeta . getBlockId ( ) ; if ( mManagerView . isBlockEvictable ( blockId ) ) { filteredList . add ( blockMeta ) ; } } return filteredList ; }
Gets a filtered list of block metadata for blocks that are neither pinned or being blocked .