Skip to content
Commit e38fdb71 authored by Josef Bacik's avatar Josef Bacik Committed by David Sterba
Browse files

btrfs: print the block rsv type when we fail our reservation



To help with debugging, print the type of the block rsv when we fail to
use our target block rsv in btrfs_use_block_rsv.

This now produces:

 [  544.672035] BTRFS: block rsv 1 returned -28

which is still cryptic without consulting the enum in block-rsv.h but I
guess it's better than nothing.

Reviewed-by: default avatarNikolay Borisov <nborisov@suse.com>
Signed-off-by: default avatarJosef Bacik <josef@toxicpanda.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
[ add note from Nikolay ]
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent a1fbc675
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment