Lines Matching full:bitmaps
723 * bitmaps, we may end up using more memory than this. in recalculate_thresholds()
753 LIST_HEAD(bitmaps); in __load_free_space_cache()
873 list_add_tail(&e->list, &bitmaps); in __load_free_space_cache()
882 * We add the bitmaps at the end of the entries in order that in __load_free_space_cache()
885 list_for_each_entry_safe(e, n, &bitmaps, list) { in __load_free_space_cache()
1074 int *entries, int *bitmaps, in write_cache_extent_entries() argument
1111 *bitmaps += 1; in write_cache_extent_entries()
1152 int entries, int bitmaps) in update_cache_item() argument
1189 btrfs_set_free_space_bitmaps(leaf, header, bitmaps); in update_cache_item()
1257 /* Write out the bitmaps */ in write_bitmap_entries()
1318 io_ctl->entries, io_ctl->bitmaps); in __btrfs_wait_cache_io()
1389 int bitmaps = 0; in __btrfs_write_out_cache() local
1430 block_group, &entries, &bitmaps, in __btrfs_write_out_cache()
1448 * At last, we write out all the bitmaps and keep cache_writeout_mutex in __btrfs_write_out_cache()
1486 io_ctl->bitmaps = bitmaps; in __btrfs_write_out_cache()
2251 /* This is a way to reclaim large regions from the bitmaps. */ in use_bitmap()
2314 * Since we link bitmaps right into the cluster we need to see if we in insert_into_bitmap()
2419 * 3) Always pull neighboring regions from bitmaps
2568 * there is, migrate that space from the bitmaps to the extent.
2641 * Only steal free space from adjacent bitmaps if we're sure we're not in __btrfs_add_free_space()
2644 * attempt to steal space from bitmaps if we're adding an extent entry. in __btrfs_add_free_space()
2941 * start converting things over to using bitmaps in btrfs_init_free_space_ctl()
3393 struct list_head *bitmaps, u64 offset, u64 bytes, in setup_cluster_no_bitmap() argument
3410 * We don't want bitmaps, so just move along until we find a normal in setup_cluster_no_bitmap()
3415 list_add_tail(&entry->list, bitmaps); in setup_cluster_no_bitmap()
3433 list_add_tail(&entry->list, bitmaps); in setup_cluster_no_bitmap()
3479 * This specifically looks for bitmaps that may work in the cluster, we assume
3485 struct list_head *bitmaps, u64 offset, u64 bytes, in setup_cluster_bitmap() argument
3500 if (!list_empty(bitmaps)) in setup_cluster_bitmap()
3501 entry = list_first_entry(bitmaps, struct btrfs_free_space, list); in setup_cluster_bitmap()
3506 list_add(&entry->list, bitmaps); in setup_cluster_bitmap()
3509 list_for_each_entry(entry, bitmaps, list) { in setup_cluster_bitmap()
3519 * The bitmaps list has all the bitmaps that record free space in setup_cluster_bitmap()
3540 LIST_HEAD(bitmaps); in btrfs_find_space_cluster()
3584 ret = setup_cluster_no_bitmap(block_group, cluster, &bitmaps, offset, in btrfs_find_space_cluster()
3588 ret = setup_cluster_bitmap(block_group, cluster, &bitmaps, in btrfs_find_space_cluster()
3593 list_for_each_entry_safe(entry, tmp, &bitmaps, list) in btrfs_find_space_cluster()
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()
3885 * by the filters). So, retrim the block group bitmaps when we in trim_bitmaps()