OSDN Git Service

btrfs: add missing annotation for btrfs_lock_cluster()
authorJules Irenge <jbi.octave@gmail.com>
Tue, 31 Mar 2020 20:46:41 +0000 (21:46 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 May 2020 09:25:16 +0000 (11:25 +0200)
commitc142c6a449c7765b0d3b6ecce0be8d783a19abcb
tree6ae466d53bbf70114d51b3d6784203fb2d67ba7e
parent9cb1fd0efd195590b828b9b865421ad345a4a145
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>
fs/btrfs/extent-tree.c