btrfs: Add missing lock annotation for release_extent_buffer()
authorJules Irenge <jbi.octave@gmail.com>
Sun, 23 Feb 2020 23:16:42 +0000 (23:16 +0000)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Mar 2020 16:01:42 +0000 (17:01 +0100)
commit5ce48d0f0e2656050a68dc3dbbf0d7d1be862c99
tree6a576bbef3db2e4a2a8b014e323a26fd08f95395
parent75ec1db8717a8f0a9d9c8d033e542fdaa7b73898
btrfs: Add missing lock annotation for release_extent_buffer()

Sparse reports a warning at release_extent_buffer()
warning: context imbalance in release_extent_buffer() - unexpected unlock

The root cause is the missing annotation at release_extent_buffer()
Add the missing __releases(&eb->refs_lock) annotation

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
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_io.c