diff options
author | Deepa Dinamani <deepa.kernel@gmail.com> | 2016-02-07 02:57:21 -0500 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-02-18 05:46:03 -0500 |
commit | 04b285f35e2086b69682c7ed054aa35eebea9f72 (patch) | |
tree | 72120ea015c4234a1a2533184ac23b925a36a086 /fs/btrfs/root-tree.c | |
parent | 8f682f6955b94ddfb548a1db23c1dd633d90f7de (diff) |
btrfs: Replace CURRENT_TIME by current_fs_time()
CURRENT_TIME macro is not appropriate for filesystems as it
doesn't use the right granularity for filesystem timestamps.
Use current_fs_time() instead.
Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com>
Cc: Chris Mason <clm@fb.com>
Cc: Josef Bacik <jbacik@fb.com>
Cc: linux-btrfs@vger.kernel.org
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/root-tree.c')
-rw-r--r-- | fs/btrfs/root-tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/root-tree.c b/fs/btrfs/root-tree.c index 7cf8509deda7..a25f3b21491b 100644 --- a/fs/btrfs/root-tree.c +++ b/fs/btrfs/root-tree.c | |||
@@ -488,7 +488,7 @@ void btrfs_update_root_times(struct btrfs_trans_handle *trans, | |||
488 | struct btrfs_root *root) | 488 | struct btrfs_root *root) |
489 | { | 489 | { |
490 | struct btrfs_root_item *item = &root->root_item; | 490 | struct btrfs_root_item *item = &root->root_item; |
491 | struct timespec ct = CURRENT_TIME; | 491 | struct timespec ct = current_fs_time(root->fs_info->sb); |
492 | 492 | ||
493 | spin_lock(&root->root_item_lock); | 493 | spin_lock(&root->root_item_lock); |
494 | btrfs_set_root_ctransid(item, trans->transid); | 494 | btrfs_set_root_ctransid(item, trans->transid); |