btrfs: enable a tracepoint when we fail tickets
authorJosef Bacik <josef@toxicpanda.com>
Wed, 14 Jul 2021 18:47:19 +0000 (14:47 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Aug 2021 11:19:06 +0000 (13:19 +0200)
commitfcdef39c03c5beb2a7bcb627addb0b259b9c5164
treee1d5dcb07ee1b0bd8805275f9e07e7033febc087
parent8197766d806f02d69d2f54563e0b4672bddcc535
btrfs: enable a tracepoint when we fail tickets

When debugging early enospc problems it was useful to have a tracepoint
where we failed all tickets so I could check the state of the enospc
counters at failure time to validate my fixes.  This adds the tracpoint
so you can easily get that information.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/space-info.c
include/trace/events/btrfs.h