Lines Matching refs:end
150 ext4_lblk_t end, int *reserved,
261 ext4_lblk_t lblk, ext4_lblk_t end, in __es_find_extent_range() argument
269 WARN_ON(end < lblk); in __es_find_extent_range()
289 if (es1->es_lblk > end) { in __es_find_extent_range()
312 ext4_lblk_t lblk, ext4_lblk_t end, in ext4_es_find_extent_range() argument
321 __es_find_extent_range(inode, matching_fn, lblk, end, es); in ext4_es_find_extent_range()
344 ext4_lblk_t start, ext4_lblk_t end) in __es_scan_range() argument
348 __es_find_extent_range(inode, matching_fn, start, end, &es); in __es_scan_range()
354 else if (start <= es.es_lblk && es.es_lblk <= end) in __es_scan_range()
364 ext4_lblk_t lblk, ext4_lblk_t end) in ext4_es_scan_range() argument
372 ret = __es_scan_range(inode, matching_fn, lblk, end); in ext4_es_scan_range()
855 ext4_lblk_t end = lblk + len - 1; in ext4_es_insert_extent() local
872 BUG_ON(end < lblk); in ext4_es_insert_extent()
902 err1 = __es_remove_extent(inode, lblk, end, NULL, es1); in ext4_es_insert_extent()
953 ext4_lblk_t end = lblk + len - 1; in ext4_es_cache_extent() local
966 BUG_ON(end < lblk); in ext4_es_cache_extent()
971 if (!es || es->es_lblk > end) in ext4_es_cache_extent()
1121 ext4_lblk_t i, end, nclu; in count_rsvd() local
1136 end = lblk + (ext4_lblk_t) len - 1; in count_rsvd()
1137 end = (end > ext4_es_end(es)) ? ext4_es_end(es) : end; in count_rsvd()
1146 rc->last_do_lblk = end; in count_rsvd()
1162 if (end >= EXT4_LBLK_CFILL(sbi, i)) { in count_rsvd()
1173 if ((i + sbi->s_cluster_ratio - 1) <= end) { in count_rsvd()
1174 nclu = (end - i + 1) >> sbi->s_cluster_bits; in count_rsvd()
1183 if (!rc->partial && i <= end) { in count_rsvd()
1240 static unsigned int get_rsvd(struct inode *inode, ext4_lblk_t end, in get_rsvd() argument
1284 if (end < ext4_es_end(right_es)) { in get_rsvd()
1370 ext4_lblk_t end, int *reserved, in __es_remove_extent() argument
1389 if (es->es_lblk > end) in __es_remove_extent()
1402 len2 = ext4_es_end(es) > end ? ext4_es_end(es) - end : 0; in __es_remove_extent()
1409 newes.es_lblk = end + 1; in __es_remove_extent()
1428 es->es_lblk = end + 1; in __es_remove_extent()
1453 while (es && ext4_es_end(es) <= end) { in __es_remove_extent()
1466 if (es && es->es_lblk < end + 1) { in __es_remove_extent()
1469 len1 = ext4_es_end(es) - end; in __es_remove_extent()
1473 es->es_lblk = end + 1; in __es_remove_extent()
1483 *reserved = get_rsvd(inode, end, es, &rc); in __es_remove_extent()
1501 ext4_lblk_t end; in ext4_es_remove_extent() local
1516 end = lblk + len - 1; in ext4_es_remove_extent()
1517 BUG_ON(end < lblk); in ext4_es_remove_extent()
1528 err = __es_remove_extent(inode, lblk, end, &reserved, es); in ext4_es_remove_extent()
1768 static int es_do_reclaim_extents(struct ext4_inode_info *ei, ext4_lblk_t end, in es_do_reclaim_extents() argument
1781 if (es->es_lblk > end) { in es_do_reclaim_extents()
1782 ei->i_es_shrink_lblk = end + 1; in es_do_reclaim_extents()
2151 ext4_lblk_t end) in __es_delayed_clu() argument
2166 while (es && (es->es_lblk <= end)) { in __es_delayed_clu()
2173 if (ext4_es_end(es) >= end) in __es_delayed_clu()
2174 last_lclu = EXT4_B2C(sbi, end); in __es_delayed_clu()
2207 ext4_lblk_t end; in ext4_es_delayed_clu() local
2213 end = lblk + len - 1; in ext4_es_delayed_clu()
2214 WARN_ON(end < lblk); in ext4_es_delayed_clu()
2218 n = __es_delayed_clu(inode, lblk, end); in ext4_es_delayed_clu()
2246 ext4_lblk_t end = lblk + len - 1; in __revise_pending() local
2267 if (EXT4_B2C(sbi, lblk) == EXT4_B2C(sbi, end)) { in __revise_pending()
2277 last = EXT4_LBLK_CMASK(sbi, end) + in __revise_pending()
2279 if (last != end) in __revise_pending()
2282 end + 1, last); in __revise_pending()
2302 last = EXT4_LBLK_CMASK(sbi, end) + sbi->s_cluster_ratio - 1; in __revise_pending()
2303 if (last != end) in __revise_pending()
2305 end + 1, last); in __revise_pending()