Lines Matching refs:lclusterbits
235 static int get_compacted_la_distance(unsigned int lclusterbits, in get_compacted_la_distance() argument
239 const unsigned int lomask = (1 << lclusterbits) - 1; in get_compacted_la_distance()
246 lo = decode_compactedbits(lclusterbits, lomask, in get_compacted_la_distance()
265 const unsigned int lclusterbits = vi->z_logical_clusterbits; in unpack_compacted_index() local
266 const unsigned int lomask = (1 << lclusterbits) - 1; in unpack_compacted_index()
274 else if (1 << amortizedshift == 2 && lclusterbits == 12) in unpack_compacted_index()
290 lo = decode_compactedbits(lclusterbits, lomask, in unpack_compacted_index()
294 m->clusterofs = 1 << lclusterbits; in unpack_compacted_index()
298 m->delta[1] = get_compacted_la_distance(lclusterbits, in unpack_compacted_index()
317 lo = decode_compactedbits(lclusterbits, lomask, in unpack_compacted_index()
333 lo = decode_compactedbits(lclusterbits, lomask, in unpack_compacted_index()
345 lo = decode_compactedbits(lclusterbits, lomask, in unpack_compacted_index()
374 const unsigned int lclusterbits = vi->z_logical_clusterbits; in compacted_load_cluster_from_disk() local
383 if (lclusterbits != 12) in compacted_load_cluster_from_disk()
443 const unsigned int lclusterbits = vi->z_logical_clusterbits; in z_erofs_extent_lookback() local
469 m->map->m_la = (lcn << lclusterbits) | m->clusterofs; in z_erofs_extent_lookback()
491 const unsigned int lclusterbits = vi->z_logical_clusterbits; in z_erofs_get_extent_compressedlen() local
505 map->m_plen = 1ULL << lclusterbits; in z_erofs_get_extent_compressedlen()
535 m->compressedblks = 1 << (lclusterbits - LOG_BLOCK_SIZE); in z_erofs_get_extent_compressedlen()
566 unsigned int lclusterbits = vi->z_logical_clusterbits; in z_erofs_get_extent_decompressedlen() local
567 u64 lcn = m->lcn, headlcn = map->m_la >> lclusterbits; in z_erofs_get_extent_decompressedlen()
572 if ((lcn << lclusterbits) >= inode->i_size) { in z_erofs_get_extent_decompressedlen()
583 m->clusterofs != 1 << lclusterbits); in z_erofs_get_extent_decompressedlen()
600 map->m_llen = (lcn << lclusterbits) + m->clusterofs - map->m_la; in z_erofs_get_extent_decompressedlen()
616 unsigned int lclusterbits, endoff; in z_erofs_do_map_blocks() local
620 lclusterbits = vi->z_logical_clusterbits; in z_erofs_do_map_blocks()
622 initial_lcn = ofs >> lclusterbits; in z_erofs_do_map_blocks()
623 endoff = ofs & ((1 << lclusterbits) - 1); in z_erofs_do_map_blocks()
633 end = (m.lcn + 1ULL) << lclusterbits; in z_erofs_do_map_blocks()
641 map->m_la = (m.lcn << lclusterbits) | m.clusterofs; in z_erofs_do_map_blocks()
659 end = (m.lcn << lclusterbits) | m.clusterofs; in z_erofs_do_map_blocks()