Lines Matching refs:thresh
902 static int check_defrag_in_cache(struct inode *inode, u64 offset, u32 thresh) in check_defrag_in_cache() argument
916 if (end - offset > thresh) in check_defrag_in_cache()
920 thresh /= 2; in check_defrag_in_cache()
921 end = count_range_bits(io_tree, &offset, offset + thresh, in check_defrag_in_cache()
922 thresh, EXTENT_DELALLOC, 1); in check_defrag_in_cache()
923 if (end >= thresh) in check_defrag_in_cache()
937 u64 *off, u32 thresh) in find_new_extents() argument
971 btrfs_file_extent_num_bytes(leaf, extent) < thresh && in find_new_extents()
972 check_defrag_in_cache(inode, min_key.offset, thresh)) { in find_new_extents()
1046 static int should_defrag_range(struct inode *inode, u64 start, u32 thresh, in should_defrag_range() argument
1082 if (!compress && (*last_len == 0 || *last_len >= thresh) && in should_defrag_range()
1083 (em->len >= thresh || (!next_mergeable && !prev_mergeable))) in should_defrag_range()