lkml.org 
[lkml]   [2018]   [Jun]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] ufs: use ktime_get_real_seconds for sb and cg timestamps
On Tue, 19 Jun 2018, Arnd Bergmann wrote:

> get_seconds() is deprecated because of the 32-bit overflow and will
> be removed. All callers in ufs also truncate to a 32-bit number, so
> nothing changes during the conversion, but this should be harmless as the
> superblock and cylinder group timestamps are not visible to user space,
> except for checking the fs-dirty state, wich works fine across the
> overflow.
>
> This moves the call to get_seconds() into a new inline function, with
> a comment explaining the constraints, while converting it to
> ktime_get_real_seconds().

Acked-by: Thomas Gleixner <tglx@linutronix.de>

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