From: Jules Irenge Date: Tue, 31 Mar 2020 20:46:41 +0000 (+0100) Subject: btrfs: add missing annotation for btrfs_lock_cluster() X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=c142c6a449c7765b0d3b6ecce0be8d783a19abcb;p=uclinux-h8%2Flinux.git 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 Reviewed-by: David Sterba Signed-off-by: David Sterba --- diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 54a64d1e18c6..752b229cbb13 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c @@ -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;