Lines Matching full:trimmed
2417 * 1) Merge trimmed areas together
2418 * 2) Let untrimmed areas coalesce with trimmed areas
2426 * space is trimmed, it will prevent aggregating trimmed new region and
2756 * it on loading of a block group, we want to consider it trimmed.
3032 * btrfs_is_free_space_trimmed - see if everything is trimmed
3035 * Walk @block_group's free space rb_tree to determine if everything is trimmed.
3639 u64 trimmed = 0; in do_trimming() local
3651 ret = btrfs_discard_extent(fs_info, start, bytes, &trimmed); in do_trimming()
3653 *total_trimmed += trimmed; in do_trimming()
3715 /* Skip bitmaps and if async, already trimmed entries */ in trim_no_bitmap()
3883 * Bitmaps are marked trimmed lossily now to prevent constant in trim_bitmaps()
3911 * We lossily consider a bitmap trimmed if we only skip in trim_bitmaps()
3925 * We already trimmed a region, but are using the locking above in trim_bitmaps()
3997 u64 *trimmed, u64 start, u64 end, u64 minlen) in btrfs_trim_block_group() argument
4005 *trimmed = 0; in btrfs_trim_block_group()
4015 ret = trim_no_bitmap(block_group, trimmed, start, end, minlen, false); in btrfs_trim_block_group()
4019 ret = trim_bitmaps(block_group, trimmed, start, end, minlen, 0, false); in btrfs_trim_block_group()
4030 u64 *trimmed, u64 start, u64 end, u64 minlen, in btrfs_trim_block_group_extents() argument
4035 *trimmed = 0; in btrfs_trim_block_group_extents()
4045 ret = trim_no_bitmap(block_group, trimmed, start, end, minlen, async); in btrfs_trim_block_group_extents()
4052 u64 *trimmed, u64 start, u64 end, u64 minlen, in btrfs_trim_block_group_bitmaps() argument
4057 *trimmed = 0; in btrfs_trim_block_group_bitmaps()
4067 ret = trim_bitmaps(block_group, trimmed, start, end, minlen, maxlen, in btrfs_trim_block_group_bitmaps()