Btrfs: read lock extent buffer while walking backrefs
authorFilipe Manana <fdmanana@suse.com>
Wed, 2 Jul 2014 19:07:54 +0000 (20:07 +0100)
committerChris Mason <clm@fb.com>
Fri, 15 Aug 2014 14:43:13 +0000 (07:43 -0700)
commit6f7ff6d7832c6be13e8c95598884dbc40ad69fb7
tree77cfeb9532c7eb15a9d6a1c880066e49e24a9e96
parente339a6b097c515a31ce230d498c44ff2e89f1cf4
Btrfs: read lock extent buffer while walking backrefs

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>
fs/btrfs/backref.c