From 38669257c5ee947e9d0b62ba17962f65cf5b2d53 Mon Sep 17 00:00:00 2001 From: Shrikant Giridhar Date: Wed, 14 Jun 2017 00:38:19 -0400 Subject: [PATCH] Fix usage of CURRENT_TIME macro. The CURRENT_TIME macro is no longer valid with the latest kernel (commit bfe1c566453a0979c0b3cd3728d0de962272f034). Replace usage with current_time() function. --- simple.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simple.c b/simple.c index c2bb5e2..99cf043 100644 --- a/simple.c +++ b/simple.c @@ -522,7 +522,7 @@ static int simplefs_create_fs_object(struct inode *dir, struct dentry *dentry, inode->i_sb = sb; inode->i_op = &simplefs_inode_ops; - inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; + inode->i_atime = inode->i_mtime = inode->i_ctime = current_time(inode); inode->i_ino = (count + SIMPLEFS_START_INO - SIMPLEFS_RESERVED_INODES + 1); sfs_inode = kmem_cache_alloc(sfs_inode_cachep, GFP_KERNEL);