]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Sep 2022 10:27:58 +0000 (12:27 +0200)
commitdbecac26630014d336a8e5ea67096ff18210fb9c
tree8c14c0e77ffc8fd8298850e97572ec2033b28471
parent1fdbd03d3d924415eb8abfb5d3b5e50ca0775469
btrfs: don't print information about space cache or tree every remount

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>
fs/btrfs/super.c