btrfs: qgroup: update rescan message levels and error codes
authorDavid Sterba <dsterba@suse.com>
Thu, 2 May 2024 20:45:58 +0000 (22:45 +0200)
committerDavid Sterba <dsterba@suse.com>
Wed, 15 May 2024 15:57:00 +0000 (17:57 +0200)
commit1fa7603d569b9e738e9581937ba8725cd7d39b48
treef84e1392af13179bedf6c3363e80a9550e358db1
parent0e39c9e524479b85c1b83134df0cfc6e3cb5353a
btrfs: qgroup: update rescan message levels and error codes

On filesystems without enabled quotas there's still a warning message in
the logs when rescan is called. In that case it's not a problem that
should be reported, rescan can be called unconditionally.  Change the
error code to ENOTCONN which is used for 'quotas not enabled' elsewhere.

Remove message (also a warning) when rescan is called during an ongoing
rescan, this brings no useful information and the error code is
sufficient.

Change message levels to debug for now, they can be removed eventually.

CC: stable@vger.kernel.org # 6.6+
Reviewed-by: Boris Burkov <boris@bur.io>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/qgroup.c