summaryrefslogtreecommitdiff
path: root/include/linux/zutil.h
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@fusionio.com>2012-11-07 18:44:13 (GMT)
committerChris Mason <chris.mason@fusionio.com>2012-12-17 01:46:27 (GMT)
commit5124e00ec5b0be56155a11aec416fcc5125339f1 (patch)
treeedf9d51c481b4b7cf62a47986d13227ec36c541e /include/linux/zutil.h
parent0b1c6ccadee4ea4adb98799f3430fc72e57a187f (diff)
downloadlinux-fsl-qoriq-5124e00ec5b0be56155a11aec416fcc5125339f1.tar.xz
Btrfs: only unlock and relock if we have to
I noticed while doing fsync tests that we were always dropping the path and re-searching when we first cow the log root even though we've already gotten the write lock on the root. That's because we don't take into account that there might not be a parent node, so fix the check to make sure there is actually a parent node before we undo all of this work for nothing. Thanks, Signed-off-by: Josef Bacik <jbacik@fusionio.com> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'include/linux/zutil.h')
0 files changed, 0 insertions, 0 deletions