Searched refs:used_bg (Results 1 – 1 of 1) sorted by relevance
3794 struct btrfs_block_group *used_bg = NULL; in btrfs_lock_cluster() local3798 used_bg = cluster->block_group; in btrfs_lock_cluster()3799 if (!used_bg) in btrfs_lock_cluster()3802 if (used_bg == block_group) in btrfs_lock_cluster()3803 return used_bg; in btrfs_lock_cluster()3805 btrfs_get_block_group(used_bg); in btrfs_lock_cluster()3808 return used_bg; in btrfs_lock_cluster()3810 if (down_read_trylock(&used_bg->data_rwsem)) in btrfs_lock_cluster()3811 return used_bg; in btrfs_lock_cluster()3816 down_read_nested(&used_bg->data_rwsem, SINGLE_DEPTH_NESTING); in btrfs_lock_cluster()[all …]