Skip to content

Commit

Permalink
fs: debugfs: Replace CURRENT_TIME by current_fs_time()
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Deepa Dinamani authored and Greg Kroah-Hartman committed Mar 29, 2016
1 parent a8f324a commit 1b48b53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fs/debugfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ static struct inode *debugfs_get_inode(struct super_block *sb)
struct inode *inode = new_inode(sb);
if (inode) {
inode->i_ino = get_next_ino();
inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME;
inode->i_atime = inode->i_mtime =
inode->i_ctime = current_fs_time(sb);
}
return inode;
}
Expand Down

0 comments on commit 1b48b53

Please sign in to comment.