Searched refs:used_bg (Results 1 – 1 of 1) sorted by relevance
3404 struct btrfs_block_group *used_bg = NULL; in btrfs_lock_cluster() local3408 used_bg = cluster->block_group; in btrfs_lock_cluster()3409 if (!used_bg) in btrfs_lock_cluster()3412 if (used_bg == block_group) in btrfs_lock_cluster()3413 return used_bg; in btrfs_lock_cluster()3415 btrfs_get_block_group(used_bg); in btrfs_lock_cluster()3418 return used_bg; in btrfs_lock_cluster()3420 if (down_read_trylock(&used_bg->data_rwsem)) in btrfs_lock_cluster()3421 return used_bg; in btrfs_lock_cluster()3426 down_read_nested(&used_bg->data_rwsem, SINGLE_DEPTH_NESTING); in btrfs_lock_cluster()[all …]