]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: add missing annotation for btrfs_tree_lock()
authorJules Irenge <jbi.octave@gmail.com>
Tue, 31 Mar 2020 20:46:42 +0000 (21:46 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 May 2020 09:25:16 +0000 (11:25 +0200)
commitf837e012555053beb384d4a1652602e743a1238a
tree227bb960e5d20671727325ce0058979935c29336
parent06c25c9a240611a2a5b336ee626475780848212c
btrfs: add missing annotation for btrfs_tree_lock()

Sparse reports a warning at btrfs_tree_lock()

warning: context imbalance in btrfs_tree_lock() - wrong count at exit

The root cause is the missing annotation at btrfs_tree_lock()
Add the missing __acquires(&eb->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/locking.c