Lines Matching refs:lcn
62 if (rl->lcn < 0) in ntfs_cluster_free_from_rl_nolock()
64 err = ntfs_bitmap_clear_run(lcnbmp_vi, rl->lcn, rl->length); in ntfs_cluster_free_from_rl_nolock()
151 LCN zone_start, zone_end, bmp_pos, bmp_initial_pos, last_read_pos, lcn; in ntfs_cluster_alloc() local
298 lcn = bmp_pos & 7; in ntfs_cluster_alloc()
302 (unsigned long long)lcn, in ntfs_cluster_alloc()
304 while (lcn < buf_size && lcn + bmp_pos < zone_end) { in ntfs_cluster_alloc()
305 byte = buf + (lcn >> 3); in ntfs_cluster_alloc()
310 (unsigned long long)lcn, in ntfs_cluster_alloc()
313 (unsigned int)(lcn >> 3), in ntfs_cluster_alloc()
317 lcn = (lcn + 8) & ~(LCN)7; in ntfs_cluster_alloc()
321 bit = 1 << (lcn & 7); in ntfs_cluster_alloc()
325 lcn++; in ntfs_cluster_alloc()
342 (lcn + bmp_pos)); in ntfs_cluster_alloc()
371 (unsigned long long)(lcn + bmp_pos), in ntfs_cluster_alloc()
373 (unsigned long long)lcn, in ntfs_cluster_alloc()
377 if (prev_lcn == lcn + bmp_pos - prev_run_len && rlpos) { in ntfs_cluster_alloc()
381 rl[rlpos - 1].lcn, in ntfs_cluster_alloc()
388 rl[rlpos - 1].lcn, in ntfs_cluster_alloc()
399 rl[rlpos - 1].lcn, in ntfs_cluster_alloc()
409 rl[rlpos].lcn = prev_lcn = lcn + bmp_pos; in ntfs_cluster_alloc()
421 tc = lcn + bmp_pos + 1; in ntfs_cluster_alloc()
494 lcn++; in ntfs_cluster_alloc()
499 buf_size, (unsigned long long)lcn, in ntfs_cluster_alloc()
565 tc = rl[rlpos - 1].lcn + in ntfs_cluster_alloc()
608 tc = rl[rlpos - 1].lcn + in ntfs_cluster_alloc()
649 tc = rl[rlpos - 1].lcn + in ntfs_cluster_alloc()
741 rl[rlpos].lcn = is_extension ? LCN_ENOENT : LCN_RL_NOT_MAPPED; in ntfs_cluster_alloc()
768 (unsigned long long)rl[0].lcn, in ntfs_cluster_alloc()
889 if (unlikely(rl->lcn < LCN_HOLE)) { in __ntfs_cluster_free()
904 if (likely(rl->lcn >= 0)) { in __ntfs_cluster_free()
906 err = ntfs_bitmap_set_bits_in_run(lcnbmp_vi, rl->lcn + delta, in __ntfs_cluster_free()
929 if (unlikely(rl->lcn < LCN_HOLE)) { in __ntfs_cluster_free()
945 if (unlikely(rl->lcn < LCN_HOLE)) { in __ntfs_cluster_free()
951 rl->lcn); in __ntfs_cluster_free()
961 if (likely(rl->lcn >= 0)) { in __ntfs_cluster_free()
963 err = ntfs_bitmap_set_bits_in_run(lcnbmp_vi, rl->lcn, in __ntfs_cluster_free()