Lines Matching refs:lcn
168 LCN lcn; in ntfs_read_block() local
255 lcn = ntfs_rl_vcn_to_lcn(rl, vcn); in ntfs_read_block()
257 lcn = LCN_RL_NOT_MAPPED; in ntfs_read_block()
259 if (lcn >= 0) { in ntfs_read_block()
261 bh->b_blocknr = ((lcn << vol->cluster_size_bits) in ntfs_read_block()
273 if (lcn == LCN_HOLE) in ntfs_read_block()
276 if (!is_retry && lcn == LCN_RL_NOT_MAPPED) { in ntfs_read_block()
294 if (err == -ENOENT || lcn == LCN_ENOENT) { in ntfs_read_block()
533 LCN lcn; in ntfs_write_block() local
711 lcn = ntfs_rl_vcn_to_lcn(rl, vcn); in ntfs_write_block()
713 lcn = LCN_RL_NOT_MAPPED; in ntfs_write_block()
715 if (lcn >= 0) { in ntfs_write_block()
717 bh->b_blocknr = ((lcn << vol->cluster_size_bits) + in ntfs_write_block()
723 if (lcn == LCN_HOLE) { in ntfs_write_block()
754 if (!is_retry && lcn == LCN_RL_NOT_MAPPED) { in ntfs_write_block()
772 if (err == -ENOENT || lcn == LCN_ENOENT) { in ntfs_write_block()
1003 LCN lcn; in ntfs_write_mst_block() local
1020 lcn = ntfs_rl_vcn_to_lcn(rl, vcn); in ntfs_write_mst_block()
1022 lcn = LCN_RL_NOT_MAPPED; in ntfs_write_mst_block()
1024 if (likely(lcn >= 0)) { in ntfs_write_mst_block()
1026 bh->b_blocknr = ((lcn << in ntfs_write_mst_block()
1037 lcn == LCN_RL_NOT_MAPPED) { in ntfs_write_mst_block()
1049 lcn = err2; in ntfs_write_mst_block()
1069 (long long)lcn); in ntfs_write_mst_block()
1550 LCN lcn; in ntfs_bmap() local
1586 lcn = ntfs_attr_vcn_to_lcn_nolock(ni, ofs >> cluster_size_shift, false); in ntfs_bmap()
1588 if (unlikely(lcn < LCN_HOLE)) { in ntfs_bmap()
1598 switch ((int)lcn) { in ntfs_bmap()
1618 if (lcn < 0) { in ntfs_bmap()
1629 if (unlikely(sizeof(block) < sizeof(lcn))) { in ntfs_bmap()
1630 block = lcn = ((lcn << cluster_size_shift) + delta) >> in ntfs_bmap()
1633 if (unlikely(block != lcn)) { in ntfs_bmap()
1636 (long long)lcn); in ntfs_bmap()
1640 block = ((lcn << cluster_size_shift) + delta) >> in ntfs_bmap()
1642 ntfs_debug("Done (returning block 0x%llx).", (unsigned long long)lcn); in ntfs_bmap()