summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Irenge <jbi.octave@gmail.com>2020-02-23 23:16:42 +0000
committerDavid Sterba <dsterba@suse.com>2020-03-23 17:01:42 +0100
commit5ce48d0f0e2656050a68dc3dbbf0d7d1be862c99 (patch)
tree6a576bbef3db2e4a2a8b014e323a26fd08f95395
parent75ec1db8717a8f0a9d9c8d033e542fdaa7b73898 (diff)
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>
-rw-r--r--fs/btrfs/extent_io.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index 4f4b41c454f2..14b7007634b7 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -5276,6 +5276,7 @@ static inline void btrfs_release_extent_buffer_rcu(struct rcu_head *head)
}
static int release_extent_buffer(struct extent_buffer *eb)
+ __releases(&eb->refs_lock)
{
lockdep_assert_held(&eb->refs_lock);