Re: [PATCH] Re: filesystem being remounted supports timestamps until 2038

From: Linus Torvalds
Date: Sun Dec 29 2019 - 13:01:30 EST


On Thu, Dec 26, 2019 at 5:54 PM Christian Kujau <lists@xxxxxxxxxxxxxxx> wrote:
>
> When file systems are remounted a couple of times per day (e.g. rw/ro for backup
> purposes), dmesg gets flooded with these messages. Change pr_warn into pr_debug
> to make it stop.

How about just doing it once per mount?

IOW, if your issue is that you re-mount things read-only for backups
and then remount it rw again soon afterwards, but it's not actually
_unmounted_, maybe you could instead just add a flag to the 'struct
super_block' saying "this mount has been warned about already"?

That would seem to make sense regardless. No? Partoicularly since we
also don't want to warn multiple times just because the same thing
gets mounted in multiple places.

Of course, if you actually unmount and completely re-mount a
filesystem, then that would still warn multiple times, but at that
point I think it's reasonable to do.

Linus