btrfs: assert extent map tree lock in add_extent_mapping
authorDavid Sterba <dsterba@suse.com>
Wed, 27 Mar 2019 15:19:55 +0000 (16:19 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 9 Sep 2019 12:59:00 +0000 (14:59 +0200)
commitd23ea3fa7dcb0d4a2c405de0879bc4ddcf521d7d
tree7c2137a3d680ffabd22c8b09f365e3c1da20ceec
parent982f1f5d161735efb85f85cd9c5fb4d61ccfc0aa
btrfs: assert extent map tree lock in add_extent_mapping

As add_extent_mapping is called from several functions, let's add the
lock annotation. The tree is going to be modified so it must be the
exclusive lock.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_map.c