lkml.org 
[lkml]   [2018]   [Jun]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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@linutronix.de>

\
 
 \ /
  Last update: 2018-06-20 11:11    [W:0.035 / U:0.268 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site