btrfs: fix race in reada
authorArne Jansen <sensille@gmx.net>
Sat, 25 Feb 2012 08:09:30 +0000 (09:09 +0100)
committerDavid Sterba <dsterba@suse.cz>
Wed, 18 Apr 2012 17:12:44 +0000 (19:12 +0200)
When inserting into the radix tree returns EEXIST, get the existing
entry without giving up the spinlock in between.
There was a race for both the zones trees and the extent tree.

Signed-off-by: Arne Jansen <sensille@gmx.net>
fs/btrfs/inode.c
fs/btrfs/reada.c

Simple merge
Simple merge