diff options
Diffstat (limited to 'fs/proc/base.c')
-rw-r--r-- | fs/proc/base.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c index fb2a5abd4e4f..9883f1e18332 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c | |||
@@ -1603,6 +1603,7 @@ static struct inode *proc_pid_make_inode(struct super_block * sb, struct task_st | |||
1603 | 1603 | ||
1604 | /* Common stuff */ | 1604 | /* Common stuff */ |
1605 | ei = PROC_I(inode); | 1605 | ei = PROC_I(inode); |
1606 | inode->i_ino = get_next_ino(); | ||
1606 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; | 1607 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; |
1607 | inode->i_op = &proc_def_inode_operations; | 1608 | inode->i_op = &proc_def_inode_operations; |
1608 | 1609 | ||
@@ -2549,6 +2550,7 @@ static struct dentry *proc_base_instantiate(struct inode *dir, | |||
2549 | 2550 | ||
2550 | /* Initialize the inode */ | 2551 | /* Initialize the inode */ |
2551 | ei = PROC_I(inode); | 2552 | ei = PROC_I(inode); |
2553 | inode->i_ino = get_next_ino(); | ||
2552 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; | 2554 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; |
2553 | 2555 | ||
2554 | /* | 2556 | /* |