Lines Matching refs:lcn
574 LCN lcn; in ntfs_prepare_pages_for_non_resident_write() local
628 vcn = lcn = -1; in ntfs_prepare_pages_for_non_resident_write()
709 BUG_ON(lcn < 0); in ntfs_prepare_pages_for_non_resident_write()
838 lcn = ntfs_rl_vcn_to_lcn(rl, bh_cpos); in ntfs_prepare_pages_for_non_resident_write()
839 if (likely(lcn >= 0)) { in ntfs_prepare_pages_for_non_resident_write()
847 lcn_block = lcn << (vol->cluster_size_bits - in ntfs_prepare_pages_for_non_resident_write()
868 lcn = LCN_RL_NOT_MAPPED; in ntfs_prepare_pages_for_non_resident_write()
873 if (unlikely(lcn != LCN_HOLE && lcn != LCN_ENOENT)) { in ntfs_prepare_pages_for_non_resident_write()
874 if (likely(!is_retry && lcn == LCN_RL_NOT_MAPPED)) { in ntfs_prepare_pages_for_non_resident_write()
901 lcn = LCN_ENOENT; in ntfs_prepare_pages_for_non_resident_write()
958 BUG_ON(lcn != LCN_HOLE); in ntfs_prepare_pages_for_non_resident_write()
972 BUG_ON(rl->lcn != LCN_HOLE); in ntfs_prepare_pages_for_non_resident_write()
973 lcn = -1; in ntfs_prepare_pages_for_non_resident_write()
976 if (rl2->lcn >= 0) { in ntfs_prepare_pages_for_non_resident_write()
977 lcn = rl2->lcn + rl2->length; in ntfs_prepare_pages_for_non_resident_write()
981 rl2 = ntfs_cluster_alloc(vol, bh_cpos, 1, lcn, DATA_ZONE, in ntfs_prepare_pages_for_non_resident_write()
989 lcn = rl2->lcn; in ntfs_prepare_pages_for_non_resident_write()
1008 (unsigned long long)lcn); in ntfs_prepare_pages_for_non_resident_write()
1046 BUG_ON(rl2->lcn < LCN_HOLE); in ntfs_prepare_pages_for_non_resident_write()
1161 lcn_block = lcn << (vol->cluster_size_bits - blocksize_bits); in ntfs_prepare_pages_for_non_resident_write()
1276 if (ntfs_bitmap_clear_bit(vol->lcnbmp_ino, lcn)) { in ntfs_prepare_pages_for_non_resident_write()
1740 LCN lcn; in ntfs_perform_write() local
1798 lcn = ntfs_attr_vcn_to_lcn_nolock(ni, pos >> in ntfs_perform_write()
1801 if (unlikely(lcn < LCN_HOLE)) { in ntfs_perform_write()
1802 if (lcn == LCN_ENOMEM) in ntfs_perform_write()
1817 if (lcn == LCN_HOLE) { in ntfs_perform_write()