summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/transaction.c
diff options
context:
space:
mode:
authorAllen Pais <allen.lkml@gmail.com>2018-06-12 13:48:25 +0200
committerDavid Sterba <dsterba@suse.com>2018-08-06 13:12:29 +0200
commita944442c2b8a420301e7830f976bab8cc86a2b4d (patch)
treef8150413f77e09eab7d76e94b739b9c3bcd56a34 /fs/btrfs/transaction.c
parentLinux 4.18-rc8 (diff)
downloadlinux-a944442c2b8a420301e7830f976bab8cc86a2b4d.tar.xz
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/transaction.c')
-rw-r--r--fs/btrfs/transaction.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c
index ff5f6c719976..56c8bab0b816 100644
--- a/fs/btrfs/transaction.c
+++ b/fs/btrfs/transaction.c
@@ -241,7 +241,7 @@ loop:
refcount_set(&cur_trans->use_count, 2);
atomic_set(&cur_trans->pending_ordered, 0);
cur_trans->flags = 0;
- cur_trans->start_time = get_seconds();
+ cur_trans->start_time = ktime_get_real_seconds();
memset(&cur_trans->delayed_refs, 0, sizeof(cur_trans->delayed_refs));