Lines Matching refs:thresh
885 static int check_defrag_in_cache(struct inode *inode, u64 offset, u32 thresh) in check_defrag_in_cache() argument
899 if (end - offset > thresh) in check_defrag_in_cache()
903 thresh /= 2; in check_defrag_in_cache()
904 end = count_range_bits(io_tree, &offset, offset + thresh, in check_defrag_in_cache()
905 thresh, EXTENT_DELALLOC, 1); in check_defrag_in_cache()
906 if (end >= thresh) in check_defrag_in_cache()
920 u64 *off, u32 thresh) in find_new_extents() argument
954 btrfs_file_extent_num_bytes(leaf, extent) < thresh && in find_new_extents()
955 check_defrag_in_cache(inode, min_key.offset, thresh)) { in find_new_extents()
1029 static int should_defrag_range(struct inode *inode, u64 start, u32 thresh, in should_defrag_range() argument
1061 if (!compress && (*last_len == 0 || *last_len >= thresh) && in should_defrag_range()
1062 (em->len >= thresh || !next_mergeable)) in should_defrag_range()