Btrfs: add nested locking mode for paths
authorArne Jansen <sensille@gmx.net>
Tue, 13 Sep 2011 08:55:48 +0000 (10:55 +0200)
committerJan Schmidt <list.btrfs@jan-o-sch.net>
Wed, 4 Jan 2012 15:12:29 +0000 (16:12 +0100)
commit5b25f70f4200766355cdabda604e131d2fb6010d
tree20749d5e90763e8c1746d36b00c5beec5e3660b9
parenteebe063b7f916087cd5c61de57b20a3a30894a96
Btrfs: add nested locking mode for paths

This patch adds the possibilty to read-lock an extent even if it is already
write-locked from the same thread. btrfs_find_all_roots() needs this
capability.

Signed-off-by: Arne Jansen <sensille@gmx.net>
Signed-off-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h
fs/btrfs/locking.c