Btrfs: add missing read locks in backref.c
authorJan Schmidt <list.btrfs@jan-o-sch.net>
Fri, 13 Apr 2012 10:28:08 +0000 (12:28 +0200)
committerDavid Sterba <dsterba@suse.cz>
Wed, 18 Apr 2012 17:22:23 +0000 (19:22 +0200)
commitb916a59adfdc875381b68ced258694b434cf43ae
tree7c73c9326cd558e9a5ae34381a6450e354a65a9d
parentaefc1eb13ebbb86c5ffade8a9e2425cd71032d7e
Btrfs: add missing read locks in backref.c

iref_to_path and iterate_irefs both increment the eb's refcount to use it
after releasing the path. Both depend on consistent data remaining in the
extent buffer and need a read lock to protect it.

Signed-off-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
fs/btrfs/backref.c