• J
    Btrfs: change how we update the global block rsv · fb4b10e5
    Josef Bacik 提交于
    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: NJosef Bacik <jbacik@fb.com>
    Signed-off-by: NDavid Sterba <dsterba@suse.com>
    fb4b10e5
extent-tree.c 292.6 KB