Lines Matching refs:lcn
53 if (rl->lcn < 0) in ntfs_cluster_free_from_rl_nolock()
55 err = ntfs_bitmap_clear_run(lcnbmp_vi, rl->lcn, rl->length); in ntfs_cluster_free_from_rl_nolock()
190 s64 zone_start, zone_end, bmp_pos, bmp_initial_pos, last_read_pos, lcn; in ntfs_cluster_alloc() local
337 lcn = bmp_pos & 7; in ntfs_cluster_alloc()
353 buf_size, lcn, bmp_pos, need_writeback); in ntfs_cluster_alloc()
354 while (lcn < buf_size && lcn + bmp_pos < zone_end) { in ntfs_cluster_alloc()
355 byte = buf + (lcn >> 3); in ntfs_cluster_alloc()
357 buf_size, lcn, bmp_pos, need_writeback, in ntfs_cluster_alloc()
358 (unsigned int)(lcn >> 3), in ntfs_cluster_alloc()
360 bit = 1 << (lcn & 7); in ntfs_cluster_alloc()
372 lcn = max_empty_bit_range(buf, buf_size >> 3); in ntfs_cluster_alloc()
373 if (lcn < 0) in ntfs_cluster_alloc()
389 lcn + bmp_pos); in ntfs_cluster_alloc()
417 lcn + bmp_pos, 1ULL, prev_lcn, in ntfs_cluster_alloc()
418 lcn, bmp_pos, prev_run_len, rlpos); in ntfs_cluster_alloc()
419 if (prev_lcn == lcn + bmp_pos - prev_run_len && rlpos) { in ntfs_cluster_alloc()
421 rl[rlpos - 1].lcn, in ntfs_cluster_alloc()
425 rl[rlpos - 1].lcn, in ntfs_cluster_alloc()
431 rl[rlpos - 1].lcn, rl[rlpos - 1].length); in ntfs_cluster_alloc()
438 rl[rlpos].lcn = prev_lcn = lcn + bmp_pos; in ntfs_cluster_alloc()
453 tc = lcn + bmp_pos + 1; in ntfs_cluster_alloc()
505 lcn++; in ntfs_cluster_alloc()
527 buf_size, lcn, bmp_pos, need_writeback); in ntfs_cluster_alloc()
581 tc = rl[rlpos - 1].lcn + in ntfs_cluster_alloc()
617 tc = rl[rlpos - 1].lcn + in ntfs_cluster_alloc()
651 tc = rl[rlpos - 1].lcn + in ntfs_cluster_alloc()
726 rl[rlpos].lcn = is_extension ? LCN_ENOENT : LCN_RL_NOT_MAPPED; in ntfs_cluster_alloc()
758 rl[0].lcn, count - clusters); in ntfs_cluster_alloc()
894 if (unlikely(rl->lcn < LCN_HOLE)) { in __ntfs_cluster_free()
908 if (likely(rl->lcn >= 0)) { in __ntfs_cluster_free()
910 err = ntfs_bitmap_set_bits_in_run(lcnbmp_vi, rl->lcn + delta, in __ntfs_cluster_free()
934 if (unlikely(rl->lcn < LCN_HOLE)) { in __ntfs_cluster_free()
947 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()
1001 if (rl->lcn >= 0) { in __ntfs_cluster_free()
1005 start_sector = ALIGN(NTFS_CLU_TO_B(vol, rl->lcn + rl_off), in __ntfs_cluster_free()
1008 rl->lcn + rl_off + to_discard), in __ntfs_cluster_free()