Btrfs: reset path lock state to zero
authorLiu Bo <bo.li.liu@oracle.com>
Fri, 28 Dec 2012 09:33:19 +0000 (09:33 +0000)
committerJosef Bacik <josef@toxicpanda.com>
Mon, 14 Jan 2013 18:52:53 +0000 (13:52 -0500)
commit3268a2468eb6a31af89930cbae58a62fe6ca6d2d
treec8385d5ea8b3e27da7ec1d46a030a1f4f74b9bb6
parentac5c93005b7073732e268606688fb6c821d5310e
Btrfs: reset path lock state to zero

We forgot to reset the path lock state to zero after we unlock the path block,
and this can lead to the ASSERT checker in tree unlock API.

Reported-by: Slava Barinov <rayslava@gmail.com>
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/extent-tree.c