diff options
author | Allen Pais | 2018-06-12 13:48:25 +0200 |
---|---|---|
committer | David Sterba | 2018-08-06 13:12:29 +0200 |
commit | a944442c2b8a420301e7830f976bab8cc86a2b4d (patch) | |
tree | f8150413f77e09eab7d76e94b739b9c3bcd56a34 /fs/btrfs/ctree.h | |
parent | Linux 4.18-rc8 (diff) | |
download | kernel-qcow2-linux-a944442c2b8a420301e7830f976bab8cc86a2b4d.tar.gz kernel-qcow2-linux-a944442c2b8a420301e7830f976bab8cc86a2b4d.tar.xz kernel-qcow2-linux-a944442c2b8a420301e7830f976bab8cc86a2b4d.zip |
btrfs: replace get_seconds with new 64bit time API
The get_seconds() function is deprecated as it truncates the timestamp
to 32 bits. Change it to or ktime_get_real_seconds().
Signed-off-by: Allen Pais <allen.lkml@gmail.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ update changelog ]
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 118346aceea9..e671a1fcbbec 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -342,8 +342,8 @@ struct btrfs_path { sizeof(struct btrfs_item)) struct btrfs_dev_replace { u64 replace_state; /* see #define above */ - u64 time_started; /* seconds since 1-Jan-1970 */ - u64 time_stopped; /* seconds since 1-Jan-1970 */ + time64_t time_started; /* seconds since 1-Jan-1970 */ + time64_t time_stopped; /* seconds since 1-Jan-1970 */ atomic64_t num_write_errors; atomic64_t num_uncorrectable_read_errors; |