Lines Matching refs:lcn
120 CLST vcn_next, vcn0 = vcn, lcn, clen, dn = 0; in run_deallocate_ex() local
126 if (!run_lookup_entry(run, vcn, &lcn, &clen, &idx)) { in run_deallocate_ex()
142 if (lcn != SPARSE_LCN) { in run_deallocate_ex()
143 mark_as_free_ex(sbi, lcn, clen, trim); in run_deallocate_ex()
152 if (!run_get_entry(run, ++idx, &vcn, &lcn, &clen) || in run_deallocate_ex()
170 CLST vcn, CLST lcn, CLST len, CLST *pre_alloc, in attr_allocate_clusters() argument
180 err = ntfs_look_for_free_space(sbi, lcn, len + pre, &lcn, &flen, in attr_allocate_clusters()
194 *new_lcn = lcn; in attr_allocate_clusters()
197 if (!run_add_entry(run, vcn, lcn, flen, opt == ALLOCATE_MFT)) { in attr_allocate_clusters()
200 wnd_set_free(wnd, lcn, flen); in attr_allocate_clusters()
420 CLST alen, vcn, lcn, new_alen, old_alen, svcn, evcn; in attr_set_size() local
512 lcn = 0; in attr_set_size()
530 !run_lookup_entry(run, vcn, &lcn, NULL, NULL)) { in attr_set_size()
531 lcn = SPARSE_LCN; in attr_set_size()
534 if (lcn == SPARSE_LCN) in attr_set_size()
535 lcn = 0; in attr_set_size()
536 else if (lcn) in attr_set_size()
537 lcn += 1; in attr_set_size()
561 sbi, run, vcn, lcn, to_allocate, &pre_alloc, in attr_set_size()
806 int attr_data_get_block(struct ntfs_inode *ni, CLST vcn, CLST clen, CLST *lcn, in attr_data_get_block() argument
825 ok = run_lookup_entry(run, vcn, lcn, len, NULL); in attr_data_get_block()
828 if (ok && (*lcn != SPARSE_LCN || !new)) { in attr_data_get_block()
853 *lcn = RESIDENT_LCN; in attr_data_get_block()
893 ok = run_lookup_entry(run, vcn, lcn, len, NULL); in attr_data_get_block()
894 if (ok && (*lcn != SPARSE_LCN || !new)) { in attr_data_get_block()
934 lcn); in attr_data_get_block()
1178 CLST lcn, clen; in attr_load_runs_range() local
1182 if (!run_lookup_entry(run, vcn, &lcn, &clen, NULL)) { in attr_load_runs_range()
1350 CLST clen, lcn, vcn, alen, slen, vcn_next; in attr_is_frame_compressed() local
1366 if (!run_lookup_entry(run, vcn, &lcn, &clen, &idx)) { in attr_is_frame_compressed()
1372 if (!run_lookup_entry(run, vcn, &lcn, &clen, &idx)) in attr_is_frame_compressed()
1376 if (lcn == SPARSE_LCN) { in attr_is_frame_compressed()
1401 if (!run_get_entry(run, ++idx, &vcn, &lcn, &clen) || in attr_is_frame_compressed()
1410 if (!run_lookup_entry(run, vcn, &lcn, &clen, &idx)) in attr_is_frame_compressed()
1414 if (lcn == SPARSE_LCN) { in attr_is_frame_compressed()
1458 CLST svcn, evcn1, next_svcn, lcn, len; in attr_allocate_frame() local
1535 &alen, 0, &lcn); in attr_allocate_frame()