Lines Matching defs:lcn
298 * ntfs_attr_vcn_to_lcn_nolock - convert a vcn into a lcn given an ntfs inode
305 * number (lcn).
308 * extent containing the @vcn and the vcn to lcn conversion is retried.
330 LCN lcn;
349 /* Convert vcn to lcn. If that fails map the runlist and retry once. */
350 lcn = ntfs_rl_vcn_to_lcn(ni->runlist.rl, vcn);
351 if (likely(lcn >= LCN_HOLE)) {
352 ntfs_debug("Done, lcn 0x%llx.", (long long)lcn);
353 return lcn;
355 if (lcn != LCN_RL_NOT_MAPPED) {
356 if (lcn != LCN_ENOENT)
357 lcn = LCN_EIO;
381 lcn = LCN_ENOENT;
383 lcn = LCN_ENOMEM;
385 lcn = LCN_EIO;
387 if (lcn != LCN_ENOENT)
389 (long long)lcn);
390 return lcn;
403 * extent containing the @vcn and the vcn to lcn conversion is retried.
421 * Note you need to distinguish between the lcn of the returned runlist element
476 if (likely(rl->lcn >= LCN_HOLE)) {
484 if (likely(rl->lcn != LCN_RL_NOT_MAPPED)) {
485 if (likely(rl->lcn == LCN_ENOENT))
723 LCN lcn;
754 lcn = ntfs_rl_vcn_to_lcn(rl, rl->vcn);
755 ntfs_debug("Reading vcn = 0x%llx, lcn = 0x%llx.",
757 (unsigned long long)lcn);
759 if (lcn < 0) {
764 block = lcn << vol->cluster_size_bits >> block_size_bits;
2189 if (unlikely(!rl || rl->lcn == LCN_RL_NOT_MAPPED ||
2190 (rl->lcn == LCN_ENOENT && rl > ni->runlist.rl &&
2191 (rl-1)->lcn == LCN_RL_NOT_MAPPED))) {
2223 while (rl->lcn < 0 && rl > ni->runlist.rl)
2231 vol->cluster_size_bits, (rl && (rl->lcn >= 0)) ?
2232 rl->lcn + rl->length : -1, DATA_ZONE, true);
2274 BUG_ON(rl2->lcn < LCN_HOLE);