]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: change how we update the global block rsv
authorJosef Bacik <jbacik@fb.com>
Mon, 11 Jan 2016 22:28:38 +0000 (17:28 -0500)
committerDavid Sterba <dsterba@suse.com>
Thu, 18 Feb 2016 10:21:48 +0000 (11:21 +0100)
commit56234b6a1b1814890463ae78287495afb22eeb2b
tree8f2d932803d21caafbce03d7c9395b7fb699e051
parent2827ae15dc0f2c90e519a70f2b9ddebe33f2361f
Btrfs: change how we update the global block rsv

I'm writing a tool to visualize the enospc system in order to help debug enospc
bugs and I found weird data and ran it down to when we update the global block
rsv.  We add all of the remaining free space to the block rsv, do a trace event,
then remove the extra and do another trace event.  This makes my visualization
look silly and is unintuitive code as well.  Fix this stuff to only add the
amount we are missing, or free the amount we are missing.  This is less clean to
read but more explicit in what it is doing, as well as only emitting events for
values that make sense.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-tree.c