Lines Matching full:bitmaps
713 * bitmaps, we may end up using more memory than this. in recalculate_thresholds()
743 LIST_HEAD(bitmaps); in __load_free_space_cache()
865 list_add_tail(&e->list, &bitmaps); in __load_free_space_cache()
874 * We add the bitmaps at the end of the entries in order that in __load_free_space_cache()
877 list_for_each_entry_safe(e, n, &bitmaps, list) { in __load_free_space_cache()
1072 int *entries, int *bitmaps, in write_cache_extent_entries() argument
1109 *bitmaps += 1; in write_cache_extent_entries()
1150 int entries, int bitmaps) in update_cache_item() argument
1187 btrfs_set_free_space_bitmaps(leaf, header, bitmaps); in update_cache_item()
1253 /* Write out the bitmaps */ in write_bitmap_entries()
1314 io_ctl->entries, io_ctl->bitmaps); in __btrfs_wait_cache_io()
1384 int bitmaps = 0; in __btrfs_write_out_cache() local
1426 block_group, &entries, &bitmaps, in __btrfs_write_out_cache()
1444 * At last, we write out all the bitmaps and keep cache_writeout_mutex in __btrfs_write_out_cache()
1487 io_ctl->bitmaps = bitmaps; in __btrfs_write_out_cache()
2273 /* This is a way to reclaim large regions from the bitmaps. */ in use_bitmap()
2336 * Since we link bitmaps right into the cluster we need to see if we in insert_into_bitmap()
2441 * 3) Always pull neighboring regions from bitmaps
2593 * there is, migrate that space from the bitmaps to the extent.
2666 * Only steal free space from adjacent bitmaps if we're sure we're not in __btrfs_add_free_space()
2669 * attempt to steal space from bitmaps if we're adding an extent entry. in __btrfs_add_free_space()
2969 * start converting things over to using bitmaps in btrfs_init_free_space_ctl()
3418 struct list_head *bitmaps, u64 offset, u64 bytes, in setup_cluster_no_bitmap() argument
3437 * We don't want bitmaps, so just move along until we find a normal in setup_cluster_no_bitmap()
3442 list_add_tail(&entry->list, bitmaps); in setup_cluster_no_bitmap()
3460 list_add_tail(&entry->list, bitmaps); in setup_cluster_no_bitmap()
3505 * This specifically looks for bitmaps that may work in the cluster, we assume
3511 struct list_head *bitmaps, u64 offset, u64 bytes, in setup_cluster_bitmap() argument
3526 if (!list_empty(bitmaps)) in setup_cluster_bitmap()
3527 entry = list_first_entry(bitmaps, struct btrfs_free_space, list); in setup_cluster_bitmap()
3532 list_add(&entry->list, bitmaps); in setup_cluster_bitmap()
3535 list_for_each_entry(entry, bitmaps, list) { in setup_cluster_bitmap()
3545 * The bitmaps list has all the bitmaps that record free space in setup_cluster_bitmap()
3566 LIST_HEAD(bitmaps); in btrfs_find_space_cluster()
3610 ret = setup_cluster_no_bitmap(block_group, cluster, &bitmaps, offset, in btrfs_find_space_cluster()
3614 ret = setup_cluster_bitmap(block_group, cluster, &bitmaps, in btrfs_find_space_cluster()
3619 list_for_each_entry_safe(entry, tmp, &bitmaps, list) in btrfs_find_space_cluster()
3741 /* Skip bitmaps and if async, already trimmed entries */ in trim_no_bitmap()
3909 * Bitmaps are marked trimmed lossily now to prevent constant in trim_bitmaps()
3911 * by the filters). So, retrim the block group bitmaps when we in trim_bitmaps()