diff options
| author | Arnd Bergmann <[email protected]> | 2018-06-21 16:04:05 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2018-08-06 11:12:38 +0000 |
| commit | afd48513f0019a2048afed0d98904d3fec7e05dd (patch) | |
| tree | e1d06270a9aff6d87329b7a7ebb4fac2557a7888 /fs/btrfs/btrfs_inode.h | |
| parent | btrfs: Get rid of the confusing btrfs_file_extent_inline_len (diff) | |
| download | kernel-afd48513f0019a2048afed0d98904d3fec7e05dd.tar.gz kernel-afd48513f0019a2048afed0d98904d3fec7e05dd.zip | |
btrfs: use monotonic time for transaction handling
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 <[email protected]>
Reviewed-by: Nikolay Borisov <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/btrfs_inode.h')
0 files changed, 0 insertions, 0 deletions
