Lines Matching refs:lcn
313 struct runlist_element *ntfs_attr_vcn_to_rl(struct ntfs_inode *ni, s64 vcn, s64 *lcn) in ntfs_attr_vcn_to_rl() argument
330 *lcn = ntfs_rl_vcn_to_lcn(rl, vcn); in ntfs_attr_vcn_to_rl()
332 if (*lcn <= LCN_RL_NOT_MAPPED && is_retry == false) { in ntfs_attr_vcn_to_rl()
376 s64 lcn; in ntfs_attr_vcn_to_lcn_nolock() local
393 lcn = ntfs_rl_vcn_to_lcn(ni->runlist.rl, vcn); in ntfs_attr_vcn_to_lcn_nolock()
394 if (likely(lcn >= LCN_HOLE)) { in ntfs_attr_vcn_to_lcn_nolock()
395 ntfs_debug("Done, lcn 0x%llx.", (long long)lcn); in ntfs_attr_vcn_to_lcn_nolock()
396 return lcn; in ntfs_attr_vcn_to_lcn_nolock()
398 if (lcn != LCN_RL_NOT_MAPPED) { in ntfs_attr_vcn_to_lcn_nolock()
399 if (lcn != LCN_ENOENT) in ntfs_attr_vcn_to_lcn_nolock()
400 lcn = LCN_EIO; in ntfs_attr_vcn_to_lcn_nolock()
424 lcn = LCN_ENOENT; in ntfs_attr_vcn_to_lcn_nolock()
426 lcn = LCN_ENOMEM; in ntfs_attr_vcn_to_lcn_nolock()
428 lcn = LCN_EIO; in ntfs_attr_vcn_to_lcn_nolock()
430 if (lcn != LCN_ENOENT) in ntfs_attr_vcn_to_lcn_nolock()
432 (long long)lcn); in ntfs_attr_vcn_to_lcn_nolock()
433 return lcn; in ntfs_attr_vcn_to_lcn_nolock()
548 else if (rl->lcn >= LCN_HOLE) in ntfs_attr_find_vcn_nolock()
550 else if (rl->lcn <= LCN_ENOENT) in ntfs_attr_find_vcn_nolock()
4276 rl[last].lcn = LCN_HOLE; in ntfs_non_resident_attr_expand()
4282 rl[last].lcn = LCN_ENOENT; in ntfs_non_resident_attr_expand()
4295 rl[0].lcn = LCN_HOLE; in ntfs_non_resident_attr_expand()
4299 rl[1].lcn = LCN_ENOENT; in ntfs_non_resident_attr_expand()
4319 while (rl->lcn < 0 && rl != ni->runlist.rl) in ntfs_non_resident_attr_expand()
4324 if (rl->lcn >= 0) in ntfs_non_resident_attr_expand()
4325 lcn_seek_from = rl->lcn + rl->length; in ntfs_non_resident_attr_expand()
4829 s64 vcn = vcn_start, lcn, clu_count; in ntfs_attr_map_cluster() local
4863 lcn = ntfs_rl_vcn_to_lcn(rl, vcn); in ntfs_attr_map_cluster()
4865 if (lcn >= LCN_HOLE) { in ntfs_attr_map_cluster()
4866 if (lcn > LCN_DELALLOC || in ntfs_attr_map_cluster()
4867 (lcn == LCN_HOLE && skip_holes)) { in ntfs_attr_map_cluster()
4868 *lcn_start = lcn; in ntfs_attr_map_cluster()
4874 WARN_ON(lcn == LCN_RL_NOT_MAPPED); in ntfs_attr_map_cluster()
4875 if (lcn == LCN_ENOENT) in ntfs_attr_map_cluster()
4886 if (rlc->lcn >= 0) { in ntfs_attr_map_cluster()
4894 lcn_seek_from = rlc->lcn + rlc->length; in ntfs_attr_map_cluster()
4896 lcn_seek_from = rlc->lcn + (vcn - rlc->vcn); in ntfs_attr_map_cluster()
4906 if (rlc->lcn >= 0) { in ntfs_attr_map_cluster()
4907 lcn_seek_from = rlc->lcn - (rlc->vcn - vcn); in ntfs_attr_map_cluster()
4923 lcn = rlc->lcn; in ntfs_attr_map_cluster()
4964 *lcn_start = lcn; in ntfs_attr_map_cluster()
5170 hole_rl[0].lcn = LCN_HOLE; in ntfs_non_resident_attr_insert_range()
5173 hole_rl[1].lcn = LCN_ENOENT; in ntfs_non_resident_attr_insert_range()
5390 s64 lcn, alloc_cnt; in ntfs_attr_fallocate() local
5476 if (rl->lcn > 0) { in ntfs_attr_fallocate()
5478 } else if (rl->lcn == LCN_DELALLOC || rl->lcn == LCN_HOLE) { in ntfs_attr_fallocate()
5482 if (rl->lcn == LCN_DELALLOC) { in ntfs_attr_fallocate()
5490 err = ntfs_attr_map_cluster(ni, vcn, &lcn, &alloc_cnt, in ntfs_attr_fallocate()
5498 lcn << vol->cluster_size_bits, in ntfs_attr_fallocate()
5520 err = ntfs_attr_map_cluster(ni, vcn, &lcn, &alloc_cnt, in ntfs_attr_fallocate()