[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.21.1806201034010.10546@nanos.tec.linutronix.de>
Date: Wed, 20 Jun 2018 10:34:44 +0200 (CEST)
From: Thomas Gleixner <tglx@...utronix.de>
To: Arnd Bergmann <arnd@...db.de>
cc: Christoph Hellwig <hch@...radead.org>, y2038@...ts.linaro.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] sysvfs: use ktime_get_real_seconds() for superblock
stamp
On Tue, 19 Jun 2018, Arnd Bergmann wrote:
> get_seconds() is deprecated in favor of ktime_get_real_seconds(),
> which returns a 64-bit timestamp.
>
> In the SYSV file system, the superblock timestamp is only 32 bits
> wide, and it is used to check whether a file system is clean, so
> the best solution seems to be to force a wraparound and explicitly
> convert it to an unsigned 32-bit value.
>
> This is independent of the inode timestamps that are also 32-bit
> wide on disk and that come from current_time().
Acked-by: Thomas Gleixner <tglx@...utronix.de>
Powered by blists - more mailing lists