Lines Matching refs:lcn

139 	unsigned long lcn;  member
161 unsigned long lcn) in legacy_load_cluster_from_disk() argument
169 lcn * sizeof(struct z_erofs_vle_decompressed_index); in legacy_load_cluster_from_disk()
179 m->lcn = lcn; in legacy_load_cluster_from_disk()
361 unsigned long lcn, bool lookahead) in compacted_load_cluster_from_disk() argument
378 if (lcn >= totalidx) in compacted_load_cluster_from_disk()
381 m->lcn = lcn; in compacted_load_cluster_from_disk()
394 if (lcn < compacted_4b_initial) { in compacted_load_cluster_from_disk()
399 lcn -= compacted_4b_initial; in compacted_load_cluster_from_disk()
401 if (lcn < compacted_2b) { in compacted_load_cluster_from_disk()
406 lcn -= compacted_2b; in compacted_load_cluster_from_disk()
409 pos += lcn * (1 << amortizedshift); in compacted_load_cluster_from_disk()
417 unsigned int lcn, bool lookahead) in z_erofs_load_cluster_from_disk() argument
422 return legacy_load_cluster_from_disk(m, lcn); in z_erofs_load_cluster_from_disk()
425 return compacted_load_cluster_from_disk(m, lcn, lookahead); in z_erofs_load_cluster_from_disk()
436 while (m->lcn >= lookback_distance) { in z_erofs_extent_lookback()
437 unsigned long lcn = m->lcn - lookback_distance; in z_erofs_extent_lookback() local
441 err = z_erofs_load_cluster_from_disk(m, lcn, false); in z_erofs_extent_lookback()
460 m->map->m_la = (lcn << lclusterbits) | m->clusterofs; in z_erofs_extent_lookback()
465 m->type, lcn, vi->nid); in z_erofs_extent_lookback()
483 unsigned long lcn; in z_erofs_get_extent_compressedlen() local
499 lcn = m->lcn + 1; in z_erofs_get_extent_compressedlen()
503 err = z_erofs_load_cluster_from_disk(m, lcn, false); in z_erofs_get_extent_compressedlen()
515 DBG_BUGON(lcn == initial_lcn && in z_erofs_get_extent_compressedlen()
537 lcn, vi->nid); in z_erofs_get_extent_compressedlen()
547 lcn, vi->nid); in z_erofs_get_extent_compressedlen()
558 u64 lcn = m->lcn, headlcn = map->m_la >> lclusterbits; in z_erofs_get_extent_decompressedlen() local
563 if ((lcn << lclusterbits) >= inode->i_size) { in z_erofs_get_extent_decompressedlen()
568 err = z_erofs_load_cluster_from_disk(m, lcn, true); in z_erofs_get_extent_decompressedlen()
579 if (lcn != headlcn) in z_erofs_get_extent_decompressedlen()
584 m->type, lcn, vi->nid); in z_erofs_get_extent_decompressedlen()
588 lcn += m->delta[1]; in z_erofs_get_extent_decompressedlen()
591 map->m_llen = (lcn << lclusterbits) + m->clusterofs - map->m_la; in z_erofs_get_extent_decompressedlen()
623 end = (m.lcn + 1ULL) << lclusterbits; in z_erofs_do_map_blocks()
631 map->m_la = (m.lcn << lclusterbits) | m.clusterofs; in z_erofs_do_map_blocks()
642 if (!m.lcn) { in z_erofs_do_map_blocks()
649 end = (m.lcn << lclusterbits) | m.clusterofs; in z_erofs_do_map_blocks()
670 vi->z_tailextent_headlcn = m.lcn; in z_erofs_do_map_blocks()
671 if (ztailpacking && m.lcn == vi->z_tailextent_headlcn) { in z_erofs_do_map_blocks()