diff options
author | Josef Bacik <jbacik@fb.com> | 2016-01-12 01:28:38 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-02-18 13:21:48 +0300 |
commit | fb4b10e5d56639389fbc46dc8a87e81578af0b64 (patch) | |
tree | 8f2d932803d21caafbce03d7c9395b7fb699e051 /fs/btrfs/inode.c | |
parent | 388f7b1d6e8ca06762e2454d28d6c3c55ad0fe95 (diff) | |
download | linux-fb4b10e5d56639389fbc46dc8a87e81578af0b64.tar.xz |
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>
Diffstat (limited to 'fs/btrfs/inode.c')
0 files changed, 0 insertions, 0 deletions