Lines Matching defs:lcn
526 LCN lcn;
548 lcn = ntfs_rl_vcn_to_lcn(rl, vcn);
549 /* For $MFTMirr, only lcn >= 0 is a successful remap. */
550 if (likely(lcn >= 0)) {
552 bh->b_blocknr = ((lcn <<
563 (long long)lcn);
719 LCN lcn;
736 lcn = ntfs_rl_vcn_to_lcn(rl, vcn);
737 /* For $MFT, only lcn >= 0 is a successful remap. */
738 if (likely(lcn >= 0)) {
740 bh->b_blocknr = ((lcn <<
750 ni->mft_no, (long long)lcn);
1275 LCN lcn;
1297 * Determine the last lcn of the mft bitmap. The allocated size of the
1306 if (IS_ERR(rl) || unlikely(!rl->length || rl->lcn < 0)) {
1316 lcn = rl->lcn + rl->length;
1317 ntfs_debug("Last lcn of mft bitmap attribute is 0x%llx.",
1318 (long long)lcn);
1324 ll = lcn >> 3;
1329 ntfs_error(vol->sb, "Failed to read from lcn bitmap.");
1333 tb = 1 << (lcn & 7ull);
1351 rl2 = ntfs_cluster_alloc(vol, rl[1].vcn, 1, lcn, DATA_ZONE,
1520 lcn = rl->lcn;
1522 rl->lcn = rl[1].lcn;
1527 if (ntfs_bitmap_clear_bit(vol->lcnbmp_ino, lcn)) {
1711 LCN lcn;
1727 * Determine the preferred allocation location, i.e. the last lcn of
1737 if (IS_ERR(rl) || unlikely(!rl->length || rl->lcn < 0)) {
1747 lcn = rl->lcn + rl->length;
1748 ntfs_debug("Last lcn of mft data attribute is 0x%llx.", (long long)lcn);
1777 rl2 = ntfs_cluster_alloc(vol, old_last_vcn, nr, lcn, MFT_ZONE,