btrfs: don't print information about space cache or tree every remount
authorMaciej S. Szmigiero <maciej.szmigiero@oracle.com>
Tue, 23 Aug 2022 15:28:20 +0000 (17:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Oct 2022 10:35:44 +0000 (12:35 +0200)
commit4a89c0befca795579a9fdf6dd7b64a5248233540
treedc1876cfeee6d7ebec977d8a1e1ebdc1fdaf958a
parent39a07058c7628dc6dbdde0829be649ef4e678599
btrfs: don't print information about space cache or tree every remount

[ Upstream commit dbecac26630014d336a8e5ea67096ff18210fb9c ]

btrfs currently prints information about space cache or free space tree
being in use on every remount, regardless whether such remount actually
enabled or disabled one of these features.

This is actually unnecessary since providing remount options changing the
state of these features will explicitly print the appropriate notice.

Let's instead print such unconditional information just on an initial mount
to avoid filling the kernel log when, for example, laptop-mode-tools
remount the fs on some events.

Signed-off-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/btrfs/super.c