Lines Matching full:extent
40 * The extent size threshold for autodefrag.
589 * Defrag specific helper to get an extent map.
602 * Return valid em if we find a file extent matching the requirement.
603 * Return NULL if we can not find a file extent matching the requirement.
663 /* Iterate through the path to find a file extent covering @start */ in defrag_get_extent()
680 /* It's beyond our target range, definitely not extent found */ in defrag_get_extent()
685 * | |<- File extent ->| in defrag_get_extent()
705 * |<- file extent ->| | in defrag_get_extent()
713 /* Now this extent covers @start, convert it to em */ in defrag_get_extent()
743 * Hopefully we have this extent in the tree already, try without the in defrag_lookup_extent()
744 * full extent lock. in defrag_lookup_extent()
751 * We can get a merged extent, in that case, we need to re-search in defrag_lookup_extent()
756 * so that we use less metadata (extent items in the extent tree and in defrag_lookup_extent()
757 * file extent items in the inode's subvolume tree). in defrag_lookup_extent()
798 /* This is the last extent */ in defrag_check_next_extent()
803 * Here we need to pass @newer_then when checking the next extent, or in defrag_check_next_extent()
804 * we will hit a case we mark current extent for defrag, but the next in defrag_check_next_extent()
815 * If the next extent is at its max capacity, defragging current extent in defrag_check_next_extent()
820 /* Skip older extent */ in defrag_check_next_extent()
823 /* Also check extent size */ in defrag_check_next_extent()
839 * - No ordered extent exists in the page.
888 /* Wait for any existing ordered extent in the range */ in defrag_prepare_one_folio()
914 * Now the page range has no ordered extent any more. Read the page to in defrag_prepare_one_folio()
945 * @extent_thresh: file extent size threshold, any extent size >= this value
951 * @locked: if the range has already held extent lock
977 * If the file extent is an inlined one, we may still want to in defrag_collect_targets()
978 * defrag it (fallthrough) if it will cause a regular extent. in defrag_collect_targets()
991 /* Skip older extent */ in defrag_collect_targets()
1000 * Our start offset might be in the middle of an existing extent in defrag_collect_targets()
1005 * If this range of the extent map is already flagged for delalloc, in defrag_collect_targets()
1014 * extent, requires locking the range; in defrag_collect_targets()
1019 * extent). If we mark pages in an adjacent range for defrag, in defrag_collect_targets()
1021 * very likely resulting in a larger extent after writeback is in defrag_collect_targets()
1035 /* Skip too large extent */ in defrag_collect_targets()
1049 * So if an inline extent passed all above checks, just add it in defrag_collect_targets()
1119 * If the last extent is not a target, the caller can skip to in defrag_collect_targets()
1120 * the end of that extent. in defrag_collect_targets()
1145 * Pages should be locked, no ordered extent in the pages range,
1148 * - Extent bits are locked
1234 * Now we have a consistent view about the extent map, re-check in defrag_one_range()
1237 * And this time we have extent locked already, pass @locked = true in defrag_one_range()
1238 * so that we won't relock the extent range and cause deadlock. in defrag_one_range()