• Home
  • Raw
  • Download

Lines Matching refs:rl

91 	runlist_element *rl;  in ntfs_map_runlist_nolock()  local
187 rl = ntfs_mapping_pairs_decompress(ni->vol, a, ni->runlist.rl); in ntfs_map_runlist_nolock()
188 if (IS_ERR(rl)) in ntfs_map_runlist_nolock()
189 err = PTR_ERR(rl); in ntfs_map_runlist_nolock()
191 ni->runlist.rl = rl; in ntfs_map_runlist_nolock()
304 if (likely(ntfs_rl_vcn_to_lcn(ni->runlist.rl, vcn) <= in ntfs_map_runlist()
354 if (!ni->runlist.rl) { in ntfs_attr_vcn_to_lcn_nolock()
364 lcn = ntfs_rl_vcn_to_lcn(ni->runlist.rl, vcn); in ntfs_attr_vcn_to_lcn_nolock()
378 if (unlikely(ntfs_rl_vcn_to_lcn(ni->runlist.rl, vcn) != in ntfs_attr_vcn_to_lcn_nolock()
468 runlist_element *rl; in ntfs_attr_find_vcn_nolock() local
477 if (!ni->runlist.rl) { in ntfs_attr_find_vcn_nolock()
486 rl = ni->runlist.rl; in ntfs_attr_find_vcn_nolock()
487 if (likely(rl && vcn >= rl[0].vcn)) { in ntfs_attr_find_vcn_nolock()
488 while (likely(rl->length)) { in ntfs_attr_find_vcn_nolock()
489 if (unlikely(vcn < rl[1].vcn)) { in ntfs_attr_find_vcn_nolock()
490 if (likely(rl->lcn >= LCN_HOLE)) { in ntfs_attr_find_vcn_nolock()
492 return rl; in ntfs_attr_find_vcn_nolock()
496 rl++; in ntfs_attr_find_vcn_nolock()
498 if (likely(rl->lcn != LCN_RL_NOT_MAPPED)) { in ntfs_attr_find_vcn_nolock()
499 if (likely(rl->lcn == LCN_ENOENT)) in ntfs_attr_find_vcn_nolock()
716 runlist_element *rl; in load_attribute_list() local
736 rl = runlist->rl; in load_attribute_list()
737 if (!rl) { in load_attribute_list()
743 while (rl->length) { in load_attribute_list()
744 lcn = ntfs_rl_vcn_to_lcn(rl, rl->vcn); in load_attribute_list()
746 (unsigned long long)rl->vcn, in load_attribute_list()
756 max_block = block + (rl->length << vol->cluster_size_bits >> in load_attribute_list()
773 rl++; in load_attribute_list()
1545 runlist_element *rl; in ntfs_attr_make_non_resident() local
1585 rl = ntfs_cluster_alloc(vol, 0, new_size >> in ntfs_attr_make_non_resident()
1587 if (IS_ERR(rl)) { in ntfs_attr_make_non_resident()
1588 err = PTR_ERR(rl); in ntfs_attr_make_non_resident()
1596 rl = NULL; in ntfs_attr_make_non_resident()
1600 mp_size = ntfs_get_size_for_mapping_pairs(vol, rl, 0, -1); in ntfs_attr_make_non_resident()
1705 arec_size - mp_ofs, rl, 0, -1, NULL); in ntfs_attr_make_non_resident()
1712 ni->runlist.rl = rl; in ntfs_attr_make_non_resident()
1824 ni->runlist.rl = NULL; in ntfs_attr_make_non_resident()
1827 if (rl) { in ntfs_attr_make_non_resident()
1828 if (ntfs_cluster_free_from_rl(vol, rl) < 0) { in ntfs_attr_make_non_resident()
1835 ntfs_free(rl); in ntfs_attr_make_non_resident()
1915 runlist_element *rl, *rl2; in ntfs_attr_extend_allocation() local
2172 rl = ni->runlist.rl; in ntfs_attr_extend_allocation()
2173 if (likely(rl)) { in ntfs_attr_extend_allocation()
2175 while (rl->length) in ntfs_attr_extend_allocation()
2176 rl++; in ntfs_attr_extend_allocation()
2179 if (unlikely(!rl || rl->lcn == LCN_RL_NOT_MAPPED || in ntfs_attr_extend_allocation()
2180 (rl->lcn == LCN_ENOENT && rl > ni->runlist.rl && in ntfs_attr_extend_allocation()
2181 (rl-1)->lcn == LCN_RL_NOT_MAPPED))) { in ntfs_attr_extend_allocation()
2182 if (!rl && !allocated_size) in ntfs_attr_extend_allocation()
2184 rl = ntfs_mapping_pairs_decompress(vol, a, ni->runlist.rl); in ntfs_attr_extend_allocation()
2185 if (IS_ERR(rl)) { in ntfs_attr_extend_allocation()
2186 err = PTR_ERR(rl); in ntfs_attr_extend_allocation()
2200 ni->runlist.rl = rl; in ntfs_attr_extend_allocation()
2202 while (rl->length) in ntfs_attr_extend_allocation()
2203 rl++; in ntfs_attr_extend_allocation()
2213 while (rl->lcn < 0 && rl > ni->runlist.rl) in ntfs_attr_extend_allocation()
2214 rl--; in ntfs_attr_extend_allocation()
2221 vol->cluster_size_bits, (rl && (rl->lcn >= 0)) ? in ntfs_attr_extend_allocation()
2222 rl->lcn + rl->length : -1, DATA_ZONE, true); in ntfs_attr_extend_allocation()
2235 rl = ntfs_runlists_merge(ni->runlist.rl, rl2); in ntfs_attr_extend_allocation()
2236 if (IS_ERR(rl)) { in ntfs_attr_extend_allocation()
2237 err = PTR_ERR(rl); in ntfs_attr_extend_allocation()
2256 ni->runlist.rl = rl; in ntfs_attr_extend_allocation()
2261 rl2 = ntfs_rl_find_vcn_nolock(rl, ll); in ntfs_attr_extend_allocation()