Lines Matching defs:lcn
312 * ntfs_attr_vcn_to_lcn_nolock - convert a vcn into a lcn given an ntfs inode
319 * number (lcn).
322 * extent containing the @vcn and the vcn to lcn conversion is retried.
344 LCN lcn;
363 /* Convert vcn to lcn. If that fails map the runlist and retry once. */
364 lcn = ntfs_rl_vcn_to_lcn(ni->runlist.rl, vcn);
365 if (likely(lcn >= LCN_HOLE)) {
366 ntfs_debug("Done, lcn 0x%llx.", (long long)lcn);
367 return lcn;
369 if (lcn != LCN_RL_NOT_MAPPED) {
370 if (lcn != LCN_ENOENT)
371 lcn = LCN_EIO;
395 lcn = LCN_ENOENT;
397 lcn = LCN_ENOMEM;
399 lcn = LCN_EIO;
401 if (lcn != LCN_ENOENT)
403 (long long)lcn);
404 return lcn;
417 * extent containing the @vcn and the vcn to lcn conversion is retried.
435 * Note you need to distinguish between the lcn of the returned runlist element
490 if (likely(rl->lcn >= LCN_HOLE)) {
498 if (likely(rl->lcn != LCN_RL_NOT_MAPPED)) {
499 if (likely(rl->lcn == LCN_ENOENT))
713 LCN lcn;
744 lcn = ntfs_rl_vcn_to_lcn(rl, rl->vcn);
745 ntfs_debug("Reading vcn = 0x%llx, lcn = 0x%llx.",
747 (unsigned long long)lcn);
749 if (lcn < 0) {
754 block = lcn << vol->cluster_size_bits >> block_size_bits;
2098 if (unlikely(!rl || rl->lcn == LCN_RL_NOT_MAPPED ||
2099 (rl->lcn == LCN_ENOENT && rl > ni->runlist.rl &&
2100 (rl-1)->lcn == LCN_RL_NOT_MAPPED))) {
2132 while (rl->lcn < 0 && rl > ni->runlist.rl)
2139 vol->cluster_size_bits, (rl && (rl->lcn >= 0)) ?
2140 rl->lcn + rl->length : -1, DATA_ZONE, true);
2182 BUG_ON(rl2->lcn < LCN_HOLE);