OSDN Git Service

Btrfs: release both paths before logging dir/changed extents
authorJosef Bacik <jbacik@fusionio.com>
Mon, 22 Jul 2013 16:54:30 +0000 (12:54 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Aug 2013 05:59:08 +0000 (22:59 -0700)
commit31a9bd79d76026a8c8cff63c6887483e2e766ee4
treedee00646786cfa8b5f50871da1ab2930ad906440
parent34a24b3fe7ee2234682e3abcad906c8c9c6de9aa
Btrfs: release both paths before logging dir/changed extents

commit f3b15ccdbb9a79781578249a63318805e55a6c34 upstream.

The ceph guys tripped over this bug where we were still holding onto the
original path that we used to copy the inode with when logging.  This is based
on Chris's fix which was reported to fix the problem.  We need to drop the paths
in two cases anyway so just move the drop up so that we don't have duplicate
code.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/btrfs/tree-log.c