btrfs: Add enospc_debug printing in metadata_reserve_bytes
authorNikolay Borisov <nborisov@suse.com>
Fri, 15 Dec 2017 10:05:37 +0000 (12:05 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Mar 2018 13:09:35 +0000 (15:09 +0200)
commit9a3daff320260723b9e64b5b3b9c6592a0cd006a
tree62f49eaa7887126348d424010dff68aa0e48cfa4
parent45ae2c1841c31c90077cf427c09ea0e83e381026
btrfs: Add enospc_debug printing in metadata_reserve_bytes

Currently when enospc_debug mount option is turned on we do not print
any debug info in case metadata reservation failures happen. Fix this
by adding the necessary hook in reserve_metadata_bytes.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-tree.c