Lines Matching refs:thresh
888 static int check_defrag_in_cache(struct inode *inode, u64 offset, u32 thresh) in check_defrag_in_cache() argument
902 if (end - offset > thresh) in check_defrag_in_cache()
906 thresh /= 2; in check_defrag_in_cache()
907 end = count_range_bits(io_tree, &offset, offset + thresh, in check_defrag_in_cache()
908 thresh, EXTENT_DELALLOC, 1); in check_defrag_in_cache()
909 if (end >= thresh) in check_defrag_in_cache()
923 u64 *off, u32 thresh) in find_new_extents() argument
957 btrfs_file_extent_num_bytes(leaf, extent) < thresh && in find_new_extents()
958 check_defrag_in_cache(inode, min_key.offset, thresh)) { in find_new_extents()
1032 static int should_defrag_range(struct inode *inode, u64 start, u32 thresh, in should_defrag_range() argument
1068 if (!compress && (*last_len == 0 || *last_len >= thresh) && in should_defrag_range()
1069 (em->len >= thresh || (!next_mergeable && !prev_mergeable))) in should_defrag_range()