Lines Matching defs:lcn

33  * Locking: - The volume lcn bitmap must be locked for writing on entry and is
48 if (rl->lcn < 0)
50 err = ntfs_bitmap_clear_run(lcnbmp_vi, rl->lcn, rl->length);
63 * @start_lcn: starting lcn at which to allocate the clusters (or -1 if none)
100 * access to the lcn bitmap in portions of up to 8192 bytes at a time, so we
127 * Locking: - The volume lcn bitmap must be unlocked on entry and is unlocked
129 * - This function takes the volume lcn bitmap lock for writing and
137 LCN zone_start, zone_end, bmp_pos, bmp_initial_pos, last_read_pos, lcn;
284 lcn = bmp_pos & 7;
286 ntfs_debug("Before inner while loop: buf_size %i, lcn 0x%llx, "
288 (unsigned long long)lcn,
290 while (lcn < buf_size && lcn + bmp_pos < zone_end) {
291 byte = buf + (lcn >> 3);
293 "lcn 0x%llx, bmp_pos 0x%llx, "
296 (unsigned long long)lcn,
299 (unsigned int)(lcn >> 3),
303 lcn = (lcn + 8) & ~(LCN)7;
307 bit = 1 << (lcn & 7);
311 lcn++;
328 (lcn + bmp_pos));
353 ntfs_debug("Adding run (lcn 0x%llx, len 0x%llx), "
354 "prev_lcn 0x%llx, lcn 0x%llx, "
357 (unsigned long long)(lcn + bmp_pos),
359 (unsigned long long)lcn,
363 if (prev_lcn == lcn + bmp_pos - prev_run_len && rlpos) {
364 ntfs_debug("Coalescing to run (lcn 0x%llx, "
367 rl[rlpos - 1].lcn,
371 ntfs_debug("Run now (lcn 0x%llx, len 0x%llx), "
374 rl[rlpos - 1].lcn,
382 "run lcn 0x%llx, "
385 rl[rlpos - 1].lcn,
395 rl[rlpos].lcn = prev_lcn = lcn + bmp_pos;
407 tc = lcn + bmp_pos + 1;
480 lcn++;
483 ntfs_debug("After inner while loop: buf_size 0x%x, lcn "
485 buf_size, (unsigned long long)lcn,
551 tc = rl[rlpos - 1].lcn +
594 tc = rl[rlpos - 1].lcn +
635 tc = rl[rlpos - 1].lcn +
727 rl[rlpos].lcn = is_extension ? LCN_ENOENT : LCN_RL_NOT_MAPPED;
751 "err -ENOSPC, first free lcn 0x%llx, "
754 (unsigned long long)rl[0].lcn,
769 "lcn = 0x%llx.",
826 * - The volume lcn bitmap must be unlocked on entry and is unlocked
828 * - This function takes the volume lcn bitmap lock for writing and
855 * Lock the lcn bitmap for writing but only if not rolling back. We
875 if (unlikely(rl->lcn < LCN_HOLE)) {
878 "invalid lcn, aborting.");
890 if (likely(rl->lcn >= 0)) {
892 err = ntfs_bitmap_set_bits_in_run(lcnbmp_vi, rl->lcn + delta,
915 if (unlikely(rl->lcn < LCN_HOLE)) {
931 if (unlikely(rl->lcn < LCN_HOLE)) {
934 "has invalid lcn "
937 rl->lcn);
947 if (likely(rl->lcn >= 0)) {
949 err = ntfs_bitmap_set_bits_in_run(lcnbmp_vi, rl->lcn,