mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-30 02:54:35 +00:00
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: Jules Irenge <jbi.octave@gmail.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
9cb1fd0efd
commit
c142c6a449
1 changed files with 1 additions and 0 deletions
|
@ -3369,6 +3369,7 @@ static struct btrfs_block_group *btrfs_lock_cluster(
|
|||
struct btrfs_block_group *block_group,
|
||||
struct btrfs_free_cluster *cluster,
|
||||
int delalloc)
|
||||
__acquires(&cluster->refill_lock)
|
||||
{
|
||||
struct btrfs_block_group *used_bg = NULL;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue