[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20180621172440.GT24375@twin.jikos.cz>
Date: Thu, 21 Jun 2018 19:24:40 +0200
From: David Sterba <dsterba@...e.cz>
To: Arnd Bergmann <arnd@...db.de>
Cc: Chris Mason <clm@...com>, Josef Bacik <jbacik@...com>,
David Sterba <dsterba@...e.com>, Qu Wenruo <wqu@...e.com>,
Nikolay Borisov <nborisov@...e.com>,
Anand Jain <anand.jain@...cle.com>,
Liu Bo <bo.liu@...ux.alibaba.com>, linux-btrfs@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/2] [v2] btrfs: use monotonic time for transaction
handling
On Thu, Jun 21, 2018 at 06:04:05PM +0200, Arnd Bergmann wrote:
> The transaction times were changed to ktime_get_real_seconds to avoid
> the y2038 overflow, but they still have a minor problem when they go
> backwards or jump due to settimeofday() or leap seconds.
>
> This changes the transaction handling to instead use ktime_get_seconds(),
> which returns a CLOCK_MONOTONIC timestamp that has neither of those
> problems.
>
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
> ---
> v2: Rebased on top of an earlier patch by Allen Pais, which
> also obsoleted the original patch 2/3
1 and 2 added to patch queue, thanks.
Powered by blists - more mailing lists