Merge pull request #14 from psankar/revert-13-Port_Centos75_Kernel_310

Revert "Backport to kernel version 3.10"
This commit is contained in:
Arshad Hussain 2021-02-11 11:52:06 +05:30 committed by GitHub
commit c3b69c8940
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -526,7 +526,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);
@ -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);