]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4ef4469fd002de0108496f184573eb4454ad2642
tree7c73c9326cd558e9a5ae34381a6450e354a65a9d
parent7673a32d1199461a93bba7bc8d1aa12172d33ed4
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