Searched refs:rlpos (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/fs/ntfs/
H A Dlcnalloc.c160 int err = 0, rlpos, rlsize, buf_size; ntfs_cluster_alloc() local
254 rlpos = rlsize = 0; ntfs_cluster_alloc()
261 "bmp_pos 0x%llx, rlpos %i, rlsize %i.", ntfs_cluster_alloc()
266 (unsigned long long)bmp_pos, rlpos, rlsize); ntfs_cluster_alloc()
334 if ((rlpos + 2) * sizeof(*rl) > rlsize) { ntfs_cluster_alloc()
370 "rlpos %i.", ntfs_cluster_alloc()
376 rlpos); ntfs_cluster_alloc()
377 if (prev_lcn == lcn + bmp_pos - prev_run_len && rlpos) { ntfs_cluster_alloc()
381 rl[rlpos - 1].lcn, ntfs_cluster_alloc()
383 rl[rlpos - 1].length); ntfs_cluster_alloc()
384 rl[rlpos - 1].length = ++prev_run_len; ntfs_cluster_alloc()
388 rl[rlpos - 1].lcn, ntfs_cluster_alloc()
390 rl[rlpos - 1].length, ntfs_cluster_alloc()
394 if (likely(rlpos)) { ntfs_cluster_alloc()
399 rl[rlpos - 1].lcn, ntfs_cluster_alloc()
401 rl[rlpos - 1].length); ntfs_cluster_alloc()
402 rl[rlpos].vcn = rl[rlpos - 1].vcn + ntfs_cluster_alloc()
407 rl[rlpos].vcn = start_vcn; ntfs_cluster_alloc()
409 rl[rlpos].lcn = prev_lcn = lcn + bmp_pos; ntfs_cluster_alloc()
410 rl[rlpos].length = prev_run_len = 1; ntfs_cluster_alloc()
411 rlpos++; ntfs_cluster_alloc()
557 if (rlpos) { ntfs_cluster_alloc()
565 tc = rl[rlpos - 1].lcn + ntfs_cluster_alloc()
566 rl[rlpos - 1].length; ntfs_cluster_alloc()
600 if (rlpos) { ntfs_cluster_alloc()
608 tc = rl[rlpos - 1].lcn + ntfs_cluster_alloc()
609 rl[rlpos - 1].length; ntfs_cluster_alloc()
641 if (rlpos) { ntfs_cluster_alloc()
649 tc = rl[rlpos - 1].lcn + ntfs_cluster_alloc()
650 rl[rlpos - 1].length; ntfs_cluster_alloc()
740 rl[rlpos].vcn = rl[rlpos - 1].vcn + rl[rlpos - 1].length; ntfs_cluster_alloc()
741 rl[rlpos].lcn = is_extension ? LCN_ENOENT : LCN_RL_NOT_MAPPED; ntfs_cluster_alloc()
742 rl[rlpos].length = 0; ntfs_cluster_alloc()
H A Drunlist.c759 u16 rlpos; /* Current runlist position in units of ntfs_mapping_pairs_decompress() local
786 rlpos = 0; ntfs_mapping_pairs_decompress()
796 rlpos++; ntfs_mapping_pairs_decompress()
804 if (((rlpos + 3) * sizeof(*old_rl)) > rlsize) { ntfs_mapping_pairs_decompress()
818 rl[rlpos].vcn = vcn; ntfs_mapping_pairs_decompress()
850 rl[rlpos].length = deltaxcn; ntfs_mapping_pairs_decompress()
859 rl[rlpos].lcn = LCN_HOLE; ntfs_mapping_pairs_decompress()
892 rl[rlpos].lcn = lcn; ntfs_mapping_pairs_decompress()
895 rlpos++; ntfs_mapping_pairs_decompress()
938 rl[rlpos].vcn = vcn; ntfs_mapping_pairs_decompress()
939 vcn += rl[rlpos].length = max_cluster - ntfs_mapping_pairs_decompress()
941 rl[rlpos].lcn = LCN_RL_NOT_MAPPED; ntfs_mapping_pairs_decompress()
942 rlpos++; ntfs_mapping_pairs_decompress()
953 rl[rlpos].lcn = LCN_ENOENT; ntfs_mapping_pairs_decompress()
955 rl[rlpos].lcn = LCN_RL_NOT_MAPPED; ntfs_mapping_pairs_decompress()
958 rl[rlpos].vcn = vcn; ntfs_mapping_pairs_decompress()
959 rl[rlpos].length = (s64)0; ntfs_mapping_pairs_decompress()

Completed in 101 milliseconds