Lines Matching refs:lcn

48 		if (rl->lcn < 0)  in ntfs_cluster_free_from_rl_nolock()
50 err = ntfs_bitmap_clear_run(lcnbmp_vi, rl->lcn, rl->length); in ntfs_cluster_free_from_rl_nolock()
137 LCN zone_start, zone_end, bmp_pos, bmp_initial_pos, last_read_pos, lcn; in ntfs_cluster_alloc() local
284 lcn = bmp_pos & 7; in ntfs_cluster_alloc()
288 (unsigned long long)lcn, in ntfs_cluster_alloc()
290 while (lcn < buf_size && lcn + bmp_pos < zone_end) { in ntfs_cluster_alloc()
291 byte = buf + (lcn >> 3); in ntfs_cluster_alloc()
296 (unsigned long long)lcn, in ntfs_cluster_alloc()
299 (unsigned int)(lcn >> 3), in ntfs_cluster_alloc()
303 lcn = (lcn + 8) & ~(LCN)7; in ntfs_cluster_alloc()
307 bit = 1 << (lcn & 7); in ntfs_cluster_alloc()
311 lcn++; in ntfs_cluster_alloc()
328 (lcn + bmp_pos)); in ntfs_cluster_alloc()
357 (unsigned long long)(lcn + bmp_pos), in ntfs_cluster_alloc()
359 (unsigned long long)lcn, in ntfs_cluster_alloc()
363 if (prev_lcn == lcn + bmp_pos - prev_run_len && rlpos) { in ntfs_cluster_alloc()
367 rl[rlpos - 1].lcn, in ntfs_cluster_alloc()
374 rl[rlpos - 1].lcn, in ntfs_cluster_alloc()
385 rl[rlpos - 1].lcn, in ntfs_cluster_alloc()
395 rl[rlpos].lcn = prev_lcn = lcn + bmp_pos; in ntfs_cluster_alloc()
407 tc = lcn + bmp_pos + 1; in ntfs_cluster_alloc()
480 lcn++; in ntfs_cluster_alloc()
485 buf_size, (unsigned long long)lcn, in ntfs_cluster_alloc()
551 tc = rl[rlpos - 1].lcn + in ntfs_cluster_alloc()
594 tc = rl[rlpos - 1].lcn + in ntfs_cluster_alloc()
635 tc = rl[rlpos - 1].lcn + in ntfs_cluster_alloc()
727 rl[rlpos].lcn = is_extension ? LCN_ENOENT : LCN_RL_NOT_MAPPED; in ntfs_cluster_alloc()
754 (unsigned long long)rl[0].lcn, in ntfs_cluster_alloc()
875 if (unlikely(rl->lcn < LCN_HOLE)) { in __ntfs_cluster_free()
890 if (likely(rl->lcn >= 0)) { in __ntfs_cluster_free()
892 err = ntfs_bitmap_set_bits_in_run(lcnbmp_vi, rl->lcn + delta, in __ntfs_cluster_free()
915 if (unlikely(rl->lcn < LCN_HOLE)) { in __ntfs_cluster_free()
931 if (unlikely(rl->lcn < LCN_HOLE)) { in __ntfs_cluster_free()
937 rl->lcn); in __ntfs_cluster_free()
947 if (likely(rl->lcn >= 0)) { in __ntfs_cluster_free()
949 err = ntfs_bitmap_set_bits_in_run(lcnbmp_vi, rl->lcn, in __ntfs_cluster_free()