alloc_state
enum { SPU_FREE, SPU_USED } alloc_state;
spu->alloc_state = SPU_FREE;
if (spu->alloc_state != SPU_FREE)
spu->alloc_state = SPU_FREE;
if (spu->alloc_state != SPU_FREE) {
if (spu && spu->alloc_state == SPU_FREE)
if (spu->alloc_state == SPU_FREE)
spu->alloc_state = SPU_USED;
spu->alloc_state = SPU_USED;
spu->alloc_state = SPU_FREE;
while (btrfs_find_first_extent_bit(&srcdev->alloc_state, start,
ret = btrfs_set_extent_bit(&tgtdev->alloc_state, found_start,
btrfs_find_first_clear_extent_bit(&device->alloc_state, start,
btrfs_set_extent_bit(&device->alloc_state, start,
btrfs_extent_io_tree_init(fs_info, &dev->alloc_state, 0);
btrfs_extent_io_tree_release(&dev->alloc_state);
btrfs_set_extent_bit(&device->alloc_state,
btrfs_clear_extent_bit(&device->alloc_state, 0, (u64)-1,
btrfs_set_extent_bit(&device->alloc_state,
btrfs_clear_extent_bit(&device->alloc_state, 0, (u64)-1,
btrfs_extent_io_tree_release(&device->alloc_state);
if (btrfs_find_first_extent_bit(&device->alloc_state, start,
btrfs_extent_io_tree_release(&device->alloc_state);
btrfs_clear_extent_bit(&device->alloc_state, new_size, (u64)-1,
btrfs_set_extent_bit(&device->alloc_state, stripe->physical,
btrfs_clear_extent_bit(&device->alloc_state, stripe->physical,
btrfs_extent_io_tree_init(fs_info, &dev->alloc_state, IO_TREE_DEVICE_ALLOC_STATE);
struct extent_io_tree alloc_state;
enum alloc_state state;
enum s_alloc alloc_state = sa_none;
alloc_state = __visit_domain_allocation_hell(&d, cpu_map);
if (alloc_state != sa_rootdomain)
__free_domain_allocs(&d, alloc_state, cpu_map);
struct xt_percpu_counter_alloc_state *alloc_state)
if (!xt_percpu_counter_alloc(alloc_state, &e->counters))
struct xt_percpu_counter_alloc_state alloc_state = { 0 };
&alloc_state);
struct xt_percpu_counter_alloc_state *alloc_state)
if (!xt_percpu_counter_alloc(alloc_state, &e->counters))
struct xt_percpu_counter_alloc_state alloc_state = { 0 };
&alloc_state);
struct xt_percpu_counter_alloc_state *alloc_state)
if (!xt_percpu_counter_alloc(alloc_state, &e->counters))
struct xt_percpu_counter_alloc_state alloc_state = { 0 };
&alloc_state);
state = alloc_state();