Btrfs: read lock extent buffer while walking backrefs
authorFilipe Manana <fdmanana@suse.com>
Wed, 2 Jul 2014 19:07:54 +0000 (20:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Sep 2014 23:34:16 +0000 (16:34 -0700)
commit8a6de3b6c9dd8b1fb52b40e4aa4d6c8bd9ce0a26
tree67b542670ebb5109628105e7751e64bc0ef0e48a
parentdcc48de73f9a8d7c85f27579ba9cc11000910cd7
Btrfs: read lock extent buffer while walking backrefs

commit 6f7ff6d7832c6be13e8c95598884dbc40ad69fb7 upstream.

Before processing the extent buffer, acquire a read lock on it, so
that we're safe against concurrent updates on the extent buffer.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Chris Mason <clm@fb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/btrfs/backref.c