mirror of
https://github.com/psankar/simplefs.git
synced 2025-07-27 16:04:14 +02:00
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.
This commit is contained in:
parent
5d00eebd45
commit
38669257c5
2
simple.c
2
simple.c
@ -522,7 +522,7 @@ static int simplefs_create_fs_object(struct inode *dir, struct dentry *dentry,
|
|||||||
|
|
||||||
inode->i_sb = sb;
|
inode->i_sb = sb;
|
||||||
inode->i_op = &simplefs_inode_ops;
|
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);
|
inode->i_ino = (count + SIMPLEFS_START_INO - SIMPLEFS_RESERVED_INODES + 1);
|
||||||
|
|
||||||
sfs_inode = kmem_cache_alloc(sfs_inode_cachep, GFP_KERNEL);
|
sfs_inode = kmem_cache_alloc(sfs_inode_cachep, GFP_KERNEL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user