diff options
author | Deepa Dinamani <deepa.kernel@gmail.com> | 2016-02-07 10:57:21 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-02-18 13:46:03 +0300 |
commit | 04b285f35e2086b69682c7ed054aa35eebea9f72 (patch) | |
tree | 72120ea015c4234a1a2533184ac23b925a36a086 /fs/btrfs/root-tree.c | |
parent | 8f682f6955b94ddfb548a1db23c1dd633d90f7de (diff) | |
download | linux-04b285f35e2086b69682c7ed054aa35eebea9f72.tar.xz |
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, struct btrfs_root *root) { struct btrfs_root_item *item = &root->root_item; - struct timespec ct = CURRENT_TIME; + struct timespec ct = current_fs_time(root->fs_info->sb); spin_lock(&root->root_item_lock); btrfs_set_root_ctransid(item, trans->transid); |