Lines Matching refs:rlpos
146 int err = 0, rlpos, rlsize, buf_size; in ntfs_cluster_alloc() local
240 rlpos = rlsize = 0; in ntfs_cluster_alloc()
252 (unsigned long long)bmp_pos, rlpos, rlsize); in ntfs_cluster_alloc()
320 if ((rlpos + 2) * sizeof(*rl) > rlsize) { in ntfs_cluster_alloc()
362 rlpos); 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()
369 rl[rlpos - 1].length); in ntfs_cluster_alloc()
370 rl[rlpos - 1].length = ++prev_run_len; in ntfs_cluster_alloc()
374 rl[rlpos - 1].lcn, in ntfs_cluster_alloc()
376 rl[rlpos - 1].length, in ntfs_cluster_alloc()
380 if (likely(rlpos)) { in ntfs_cluster_alloc()
385 rl[rlpos - 1].lcn, in ntfs_cluster_alloc()
387 rl[rlpos - 1].length); in ntfs_cluster_alloc()
388 rl[rlpos].vcn = rl[rlpos - 1].vcn + in ntfs_cluster_alloc()
393 rl[rlpos].vcn = start_vcn; in ntfs_cluster_alloc()
395 rl[rlpos].lcn = prev_lcn = lcn + bmp_pos; in ntfs_cluster_alloc()
396 rl[rlpos].length = prev_run_len = 1; in ntfs_cluster_alloc()
397 rlpos++; in ntfs_cluster_alloc()
543 if (rlpos) { in ntfs_cluster_alloc()
551 tc = rl[rlpos - 1].lcn + in ntfs_cluster_alloc()
552 rl[rlpos - 1].length; in ntfs_cluster_alloc()
586 if (rlpos) { in ntfs_cluster_alloc()
594 tc = rl[rlpos - 1].lcn + in ntfs_cluster_alloc()
595 rl[rlpos - 1].length; in ntfs_cluster_alloc()
627 if (rlpos) { in ntfs_cluster_alloc()
635 tc = rl[rlpos - 1].lcn + in ntfs_cluster_alloc()
636 rl[rlpos - 1].length; in ntfs_cluster_alloc()
726 rl[rlpos].vcn = rl[rlpos - 1].vcn + rl[rlpos - 1].length; in ntfs_cluster_alloc()
727 rl[rlpos].lcn = is_extension ? LCN_ENOENT : LCN_RL_NOT_MAPPED; in ntfs_cluster_alloc()
728 rl[rlpos].length = 0; in ntfs_cluster_alloc()