Skip to content

Commit

Permalink
Set time granularity for nova to 1 second. Resolves #23, #24, and #26
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjswanson committed Jul 27, 2017
1 parent d3f93b3 commit 2aa6859
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fs/nova/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,7 @@ struct inode *nova_new_vfs_inode(enum nova_new_inode_type type,

inode_init_owner(inode, dir, mode);
inode->i_blocks = inode->i_size = 0;
inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME;
inode->i_mtime = inode->i_atime = inode->i_ctime = current_time(inode);

inode->i_generation = atomic_add_return(1, &sbi->next_generation);
inode->i_size = size;
Expand Down
2 changes: 1 addition & 1 deletion fs/nova/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ static int nova_fill_super(struct super_block *sb, void *data, int silent)
sb->s_magic = le32_to_cpu(sbi->nova_sb->s_magic);
sb->s_op = &nova_sops;
sb->s_maxbytes = nova_max_size(sb->s_blocksize_bits);
sb->s_time_gran = 1;
sb->s_time_gran = 1000000000; // 1 second.
sb->s_export_op = &nova_export_ops;
sb->s_xattr = NULL;
sb->s_flags |= MS_NOSEC;
Expand Down

0 comments on commit 2aa6859

Please sign in to comment.