• Home
  • Raw
  • Download

Lines Matching refs:rl

77 	runlist_element *rl;  in ntfs_map_runlist_nolock()  local
173 rl = ntfs_mapping_pairs_decompress(ni->vol, a, ni->runlist.rl); in ntfs_map_runlist_nolock()
174 if (IS_ERR(rl)) in ntfs_map_runlist_nolock()
175 err = PTR_ERR(rl); in ntfs_map_runlist_nolock()
177 ni->runlist.rl = rl; in ntfs_map_runlist_nolock()
290 if (likely(ntfs_rl_vcn_to_lcn(ni->runlist.rl, vcn) <= in ntfs_map_runlist()
340 if (!ni->runlist.rl) { in ntfs_attr_vcn_to_lcn_nolock()
350 lcn = ntfs_rl_vcn_to_lcn(ni->runlist.rl, vcn); in ntfs_attr_vcn_to_lcn_nolock()
364 if (unlikely(ntfs_rl_vcn_to_lcn(ni->runlist.rl, vcn) != in ntfs_attr_vcn_to_lcn_nolock()
454 runlist_element *rl; in ntfs_attr_find_vcn_nolock() local
463 if (!ni->runlist.rl) { in ntfs_attr_find_vcn_nolock()
472 rl = ni->runlist.rl; in ntfs_attr_find_vcn_nolock()
473 if (likely(rl && vcn >= rl[0].vcn)) { in ntfs_attr_find_vcn_nolock()
474 while (likely(rl->length)) { in ntfs_attr_find_vcn_nolock()
475 if (unlikely(vcn < rl[1].vcn)) { in ntfs_attr_find_vcn_nolock()
476 if (likely(rl->lcn >= LCN_HOLE)) { in ntfs_attr_find_vcn_nolock()
478 return rl; in ntfs_attr_find_vcn_nolock()
482 rl++; in ntfs_attr_find_vcn_nolock()
484 if (likely(rl->lcn != LCN_RL_NOT_MAPPED)) { in ntfs_attr_find_vcn_nolock()
485 if (likely(rl->lcn == LCN_ENOENT)) in ntfs_attr_find_vcn_nolock()
726 runlist_element *rl; in load_attribute_list() local
746 rl = runlist->rl; in load_attribute_list()
747 if (!rl) { in load_attribute_list()
753 while (rl->length) { in load_attribute_list()
754 lcn = ntfs_rl_vcn_to_lcn(rl, rl->vcn); in load_attribute_list()
756 (unsigned long long)rl->vcn, in load_attribute_list()
766 max_block = block + (rl->length << vol->cluster_size_bits >> in load_attribute_list()
783 rl++; in load_attribute_list()
1555 runlist_element *rl; in ntfs_attr_make_non_resident() local
1595 rl = ntfs_cluster_alloc(vol, 0, new_size >> in ntfs_attr_make_non_resident()
1597 if (IS_ERR(rl)) { in ntfs_attr_make_non_resident()
1598 err = PTR_ERR(rl); in ntfs_attr_make_non_resident()
1606 rl = NULL; in ntfs_attr_make_non_resident()
1610 mp_size = ntfs_get_size_for_mapping_pairs(vol, rl, 0, -1); in ntfs_attr_make_non_resident()
1715 arec_size - mp_ofs, rl, 0, -1, NULL); in ntfs_attr_make_non_resident()
1722 ni->runlist.rl = rl; in ntfs_attr_make_non_resident()
1834 ni->runlist.rl = NULL; in ntfs_attr_make_non_resident()
1837 if (rl) { in ntfs_attr_make_non_resident()
1838 if (ntfs_cluster_free_from_rl(vol, rl) < 0) { in ntfs_attr_make_non_resident()
1845 ntfs_free(rl); in ntfs_attr_make_non_resident()
1925 runlist_element *rl, *rl2; in ntfs_attr_extend_allocation() local
2182 rl = ni->runlist.rl; in ntfs_attr_extend_allocation()
2183 if (likely(rl)) { in ntfs_attr_extend_allocation()
2185 while (rl->length) in ntfs_attr_extend_allocation()
2186 rl++; in ntfs_attr_extend_allocation()
2189 if (unlikely(!rl || rl->lcn == LCN_RL_NOT_MAPPED || in ntfs_attr_extend_allocation()
2190 (rl->lcn == LCN_ENOENT && rl > ni->runlist.rl && in ntfs_attr_extend_allocation()
2191 (rl-1)->lcn == LCN_RL_NOT_MAPPED))) { in ntfs_attr_extend_allocation()
2192 if (!rl && !allocated_size) in ntfs_attr_extend_allocation()
2194 rl = ntfs_mapping_pairs_decompress(vol, a, ni->runlist.rl); in ntfs_attr_extend_allocation()
2195 if (IS_ERR(rl)) { in ntfs_attr_extend_allocation()
2196 err = PTR_ERR(rl); in ntfs_attr_extend_allocation()
2210 ni->runlist.rl = rl; in ntfs_attr_extend_allocation()
2212 while (rl->length) in ntfs_attr_extend_allocation()
2213 rl++; in ntfs_attr_extend_allocation()
2223 while (rl->lcn < 0 && rl > ni->runlist.rl) in ntfs_attr_extend_allocation()
2224 rl--; in ntfs_attr_extend_allocation()
2231 vol->cluster_size_bits, (rl && (rl->lcn >= 0)) ? in ntfs_attr_extend_allocation()
2232 rl->lcn + rl->length : -1, DATA_ZONE, true); in ntfs_attr_extend_allocation()
2245 rl = ntfs_runlists_merge(ni->runlist.rl, rl2); in ntfs_attr_extend_allocation()
2246 if (IS_ERR(rl)) { in ntfs_attr_extend_allocation()
2247 err = PTR_ERR(rl); in ntfs_attr_extend_allocation()
2266 ni->runlist.rl = rl; in ntfs_attr_extend_allocation()
2271 rl2 = ntfs_rl_find_vcn_nolock(rl, ll); in ntfs_attr_extend_allocation()