Skip to content

Commit 5ce48d0

Browse files
irengekdave
authored andcommitted
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>
1 parent 75ec1db commit 5ce48d0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎fs/btrfs/extent_io.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5276,6 +5276,7 @@ static inline void btrfs_release_extent_buffer_rcu(struct rcu_head *head)
52765276
}
52775277

52785278
static int release_extent_buffer(struct extent_buffer *eb)
5279+
__releases(&eb->refs_lock)
52795280
{
52805281
lockdep_assert_held(&eb->refs_lock);
52815282

0 commit comments

Comments
 (0)