Messages in this thread Patch in this message | | | From | Jules Irenge <> | Subject | [PATCH 5/7] btrfs: Add missing annotation for btrfs_lock_cluster() | Date | Tue, 31 Mar 2020 21:46:41 +0100 |
| |
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> --- fs/btrfs/extent-tree.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 0163fdd59f8f..9057a5ca6678 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c @@ -3395,6 +3395,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; -- 2.24.1
| |