Commit c142c6a4 authored by Jules Irenge's avatar Jules Irenge Committed by David Sterba

btrfs: add missing annotation for btrfs_lock_cluster()

Sparse reports a warning at btrfs_lock_cluster()

warning: context imbalance in btrfs_lock_cluster()
	- wrong count

The root cause is the missing annotation at btrfs_lock_cluster()
Add the missing __acquires(&cluster->refill_lock) annotation.
Signed-off-by: default avatarJules Irenge <jbi.octave@gmail.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 9cb1fd0e
...@@ -3369,6 +3369,7 @@ static struct btrfs_block_group *btrfs_lock_cluster( ...@@ -3369,6 +3369,7 @@ static struct btrfs_block_group *btrfs_lock_cluster(
struct btrfs_block_group *block_group, struct btrfs_block_group *block_group,
struct btrfs_free_cluster *cluster, struct btrfs_free_cluster *cluster,
int delalloc) int delalloc)
__acquires(&cluster->refill_lock)
{ {
struct btrfs_block_group *used_bg = NULL; struct btrfs_block_group *used_bg = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment