]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: qgroup: show more meaningful qgroup_rescan_init error message
authorQu Wenruo <wqu@suse.com>
Wed, 2 May 2018 05:28:03 +0000 (13:28 +0800)
committerDavid Sterba <dsterba@suse.com>
Wed, 30 May 2018 14:46:43 +0000 (16:46 +0200)
commitff3e7eb180215491bd238a3a9c8276d665ebbee7
tree1ad13b58c54e0e47ce2a1c934bef47f8fc7f0f7d
parent59339899ba638feccce91033f98d8dc2697a6e9b
btrfs: qgroup: show more meaningful qgroup_rescan_init error message

Error message from qgroup_rescan_init() mostly looks like:

  BTRFS info (device nvme0n1p1): qgroup_rescan_init failed with -115

Which is far from meaningful, and sometimes confusing as for above
-EINPROGRESS it's mostly (despite the init race) harmless, but sometimes
it can also indicate problem if the return value is -EINVAL.

Change it to some more meaningful messages like:

  BTRFS info (device nvme0n1p1): qgroup rescan is already in progress

And

  BTRFS err(device nvme0n1p1): qgroup rescan init failed, qgroup is not enabled

Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
[ update the messages and level ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/qgroup.c