Lines Matching refs:lcn
185 LCN lcn; in ntfs_read_block() local
272 lcn = ntfs_rl_vcn_to_lcn(rl, vcn); in ntfs_read_block()
274 lcn = LCN_RL_NOT_MAPPED; in ntfs_read_block()
276 if (lcn >= 0) { in ntfs_read_block()
278 bh->b_blocknr = ((lcn << vol->cluster_size_bits) in ntfs_read_block()
290 if (lcn == LCN_HOLE) in ntfs_read_block()
293 if (!is_retry && lcn == LCN_RL_NOT_MAPPED) { in ntfs_read_block()
311 if (err == -ENOENT || lcn == LCN_ENOENT) { in ntfs_read_block()
550 LCN lcn; in ntfs_write_block() local
728 lcn = ntfs_rl_vcn_to_lcn(rl, vcn); in ntfs_write_block()
730 lcn = LCN_RL_NOT_MAPPED; in ntfs_write_block()
732 if (lcn >= 0) { in ntfs_write_block()
734 bh->b_blocknr = ((lcn << vol->cluster_size_bits) + in ntfs_write_block()
740 if (lcn == LCN_HOLE) { in ntfs_write_block()
771 if (!is_retry && lcn == LCN_RL_NOT_MAPPED) { in ntfs_write_block()
789 if (err == -ENOENT || lcn == LCN_ENOENT) { in ntfs_write_block()
1020 LCN lcn; in ntfs_write_mst_block() local
1037 lcn = ntfs_rl_vcn_to_lcn(rl, vcn); in ntfs_write_mst_block()
1039 lcn = LCN_RL_NOT_MAPPED; in ntfs_write_mst_block()
1041 if (likely(lcn >= 0)) { in ntfs_write_mst_block()
1043 bh->b_blocknr = ((lcn << in ntfs_write_mst_block()
1054 lcn == LCN_RL_NOT_MAPPED) { in ntfs_write_mst_block()
1066 lcn = err2; in ntfs_write_mst_block()
1086 (long long)lcn); in ntfs_write_mst_block()
1567 LCN lcn; in ntfs_bmap() local
1603 lcn = ntfs_attr_vcn_to_lcn_nolock(ni, ofs >> cluster_size_shift, false); in ntfs_bmap()
1605 if (unlikely(lcn < LCN_HOLE)) { in ntfs_bmap()
1615 switch ((int)lcn) { in ntfs_bmap()
1635 if (lcn < 0) { in ntfs_bmap()
1646 if (unlikely(sizeof(block) < sizeof(lcn))) { in ntfs_bmap()
1647 block = lcn = ((lcn << cluster_size_shift) + delta) >> in ntfs_bmap()
1650 if (unlikely(block != lcn)) { in ntfs_bmap()
1653 (long long)lcn); in ntfs_bmap()
1657 block = ((lcn << cluster_size_shift) + delta) >> in ntfs_bmap()
1659 ntfs_debug("Done (returning block 0x%llx).", (unsigned long long)lcn); in ntfs_bmap()