]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd3a0827268b1cb5a993fd643c7f78f74cfb83c51
tree20749d5e90763e8c1746d36b00c5beec5e3660b9
parent4eca6cc2e56c64f863034ea7c217c83f114a1638
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