From df5314f27deb2ac956bca7f43453cc23af48ce53 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Fri, 20 Apr 2018 02:29:15 +0300 Subject: [PATCH] Use current_time() over CURRENT_TIME macro And this wasn't done undef #ifdef due to we already had current_time() users --- simple.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simple.c b/simple.c index 802caac..e793da9 100644 --- a/simple.c +++ b/simple.c @@ -639,7 +639,7 @@ static struct inode *simplefs_iget(struct super_block *sb, int ino) /* FIXME: We should store these times to disk and retrieve them */ inode->i_atime = inode->i_mtime = inode->i_ctime = - CURRENT_TIME; + current_time(inode); inode->i_private = sfs_inode; @@ -875,7 +875,7 @@ int simplefs_fill_super(struct super_block *sb, void *data, int silent) root_inode->i_op = &simplefs_inode_ops; root_inode->i_fop = &simplefs_dir_operations; root_inode->i_atime = root_inode->i_mtime = root_inode->i_ctime = - CURRENT_TIME; + current_time(root_inode); root_inode->i_private = simplefs_get_inode(sb, SIMPLEFS_ROOTDIR_INODE_NUMBER);