H A D | free-space-cache.c | 1655 * This is a little subtle. We *only* have ->max_extent_size set if we actually 1656 * searched through the bitmap and figured out the largest ->max_extent_size, 1658 * allocator the wrong thing, we want to use the actual real max_extent_size 1663 * may pick some previous entry that has a smaller ->max_extent_size than we 1665 * ->max_extent_size set to 4K and ->bytes set to 1M. A second entry hasn't set 1666 * ->max_extent_size yet, has ->bytes set to 8K and it's contiguous. We will 1667 * call into find_free_space(), and return with max_extent_size == 4K, because 1668 * that first bitmap entry had ->max_extent_size set, but the second one did 1673 * don't have ->max_extent_size set. We'll return 16K, and the next time the 1680 if (entry->bitmap && entry->max_extent_size) in get_max_extent_size() 2014 find_free_space(struct btrfs_free_space_ctl * ctl,u64 * offset,u64 * bytes,unsigned long align,u64 * max_extent_size,bool use_bytes_index) find_free_space() argument 3086 btrfs_find_space_for_alloc(struct btrfs_block_group * block_group,u64 offset,u64 bytes,u64 empty_size,u64 * max_extent_size) btrfs_find_space_for_alloc() argument 3192 btrfs_alloc_from_bitmap(struct btrfs_block_group * block_group,struct btrfs_free_cluster * cluster,struct btrfs_free_space * entry,u64 bytes,u64 min_start,u64 * max_extent_size) btrfs_alloc_from_bitmap() argument 3223 btrfs_alloc_from_cluster(struct btrfs_block_group * block_group,struct btrfs_free_cluster * cluster,u64 bytes,u64 min_start,u64 * max_extent_size) btrfs_alloc_from_cluster() argument [all...] |