]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fixup reserved trace points
authorJosef Bacik <jbacik@fusionio.com>
Mon, 7 Oct 2013 19:18:52 +0000 (15:18 -0400)
committerChris Mason <chris.mason@fusionio.com>
Tue, 12 Nov 2013 02:56:31 +0000 (21:56 -0500)
commit3f43f6eabfddf17c2b2cb6174de4e0fd6dd198c6
tree0265e91c3b07d10e75a95627295680e1c733c355
parent7b9813982e5c6d241bf46bda65e45d464b15556c
Btrfs: fixup reserved trace points

In trying to track down where we were leaking reserved space I noticed our
reserve extent tracepoints are a little off.  First we were saying that the
reserved space had been alloced in btrfs_reserve_extent, which isn't the case,
this needs to be triggered when we actually allocate the space when we run the
delayed ref.  We were also missing a few places where we should have been
tracing the btrfs_reserve_extent_free tracepoint.  With these in place I was
able to put together where we were leaking reserved space.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/extent-tree.c