btrfs: pretty print leaked root name
authorJosef Bacik <josef@toxicpanda.com>
Thu, 3 Sep 2020 18:29:51 +0000 (14:29 -0400)
committerDavid Sterba <dsterba@suse.com>
Wed, 7 Oct 2020 10:12:20 +0000 (12:12 +0200)
commit457f1864b569c4a5d49046fb9a88ab82e108cdfd
treed18eaf54a07b758e727de76318b9314582fb43ca
parent66a2823c54367b4d366cfa5dc12ef99ef560f428
btrfs: pretty print leaked root name

I'm a actual human being so am incapable of converting u64 to s64 in my
head, so add a helper to get the pretty name of a root objectid and use
that helper to spit out the name for any special roots for leaked roots,
so I don't have to scratch my head and figure out which root I messed up
the refs for.

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/disk-io.c
fs/btrfs/print-tree.c
fs/btrfs/print-tree.h