Lines Matching refs:lclusterbits
215 static int get_compacted_la_distance(unsigned int lclusterbits, in get_compacted_la_distance() argument
219 const unsigned int lomask = (1 << lclusterbits) - 1; in get_compacted_la_distance()
226 lo = decode_compactedbits(lclusterbits, lomask, in get_compacted_la_distance()
245 const unsigned int lclusterbits = vi->z_logical_clusterbits; in unpack_compacted_index() local
246 const unsigned int lomask = (1 << lclusterbits) - 1; in unpack_compacted_index()
254 else if (1 << amortizedshift == 2 && lclusterbits == 12) in unpack_compacted_index()
266 lo = decode_compactedbits(lclusterbits, lomask, in unpack_compacted_index()
270 m->clusterofs = 1 << lclusterbits; in unpack_compacted_index()
274 m->delta[1] = get_compacted_la_distance(lclusterbits, in unpack_compacted_index()
293 lo = decode_compactedbits(lclusterbits, lomask, in unpack_compacted_index()
309 lo = decode_compactedbits(lclusterbits, lomask, in unpack_compacted_index()
321 lo = decode_compactedbits(lclusterbits, lomask, in unpack_compacted_index()
350 const unsigned int lclusterbits = vi->z_logical_clusterbits; in compacted_load_cluster_from_disk() local
360 if (lclusterbits != 12) in compacted_load_cluster_from_disk()
421 const unsigned int lclusterbits = vi->z_logical_clusterbits; in z_erofs_extent_lookback() local
452 map->m_la = (lcn << lclusterbits) | m->clusterofs; in z_erofs_extent_lookback()
469 const unsigned int lclusterbits = vi->z_logical_clusterbits; in z_erofs_get_extent_compressedlen() local
477 map->m_plen = 1 << lclusterbits; in z_erofs_get_extent_compressedlen()
523 map->m_plen = m->compressedlcs << lclusterbits; in z_erofs_get_extent_compressedlen()
538 unsigned int lclusterbits = vi->z_logical_clusterbits; in z_erofs_get_extent_decompressedlen() local
539 u64 lcn = m->lcn, headlcn = map->m_la >> lclusterbits; in z_erofs_get_extent_decompressedlen()
544 if ((lcn << lclusterbits) >= inode->i_size) { in z_erofs_get_extent_decompressedlen()
555 m->clusterofs != 1 << lclusterbits); in z_erofs_get_extent_decompressedlen()
571 map->m_llen = (lcn << lclusterbits) + m->clusterofs - map->m_la; in z_erofs_get_extent_decompressedlen()
585 unsigned int lclusterbits, endoff; in z_erofs_map_blocks_iter() local
603 lclusterbits = vi->z_logical_clusterbits; in z_erofs_map_blocks_iter()
605 initial_lcn = ofs >> lclusterbits; in z_erofs_map_blocks_iter()
606 endoff = ofs & ((1 << lclusterbits) - 1); in z_erofs_map_blocks_iter()
613 end = (m.lcn + 1ULL) << lclusterbits; in z_erofs_map_blocks_iter()
622 map->m_la = (m.lcn << lclusterbits) | m.clusterofs; in z_erofs_map_blocks_iter()
633 end = (m.lcn << lclusterbits) | m.clusterofs; in z_erofs_map_blocks_iter()