Searched refs:sys_bg (Results 1 – 2 of 2) sorted by relevance
3442 struct btrfs_block_group *sys_bg; in do_chunk_alloc() local3444 sys_bg = btrfs_alloc_chunk(trans, sys_flags); in do_chunk_alloc()3445 if (IS_ERR(sys_bg)) { in do_chunk_alloc()3446 ret = PTR_ERR(sys_bg); in do_chunk_alloc()3451 ret = btrfs_chunk_alloc_add_chunk_item(trans, sys_bg); in do_chunk_alloc()
3097 struct btrfs_block_group *sys_bg; in btrfs_remove_chunk() local3099 sys_bg = btrfs_alloc_chunk(trans, sys_flags); in btrfs_remove_chunk()3100 if (IS_ERR(sys_bg)) { in btrfs_remove_chunk()3101 ret = PTR_ERR(sys_bg); in btrfs_remove_chunk()3106 ret = btrfs_chunk_alloc_add_chunk_item(trans, sys_bg); in btrfs_remove_chunk()5557 struct btrfs_block_group *sys_bg; in init_first_rw_device() local5586 sys_bg = btrfs_alloc_chunk(trans, alloc_profile); in init_first_rw_device()5587 if (IS_ERR(sys_bg)) in init_first_rw_device()5588 return PTR_ERR(sys_bg); in init_first_rw_device()