Skip to content

Commit

Permalink
Fix usage of CURRENT_TIME macro.
Browse files Browse the repository at this point in the history
The CURRENT_TIME macro is no longer valid with the latest kernel
(commit bfe1c566453a0979c0b3cd3728d0de962272f034). Replace usage
with current_time() function.
  • Loading branch information
gshrikant committed Jun 14, 2017
1 parent 5d00eeb commit 3866925
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3866925

Please sign in to comment.