|
@@ -388,6 +388,7 @@ int simple_fill_super(struct super_block *s, int magic, struct tree_descr *files
|
|
inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME;
|
|
inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME;
|
|
inode->i_op = &simple_dir_inode_operations;
|
|
inode->i_op = &simple_dir_inode_operations;
|
|
inode->i_fop = &simple_dir_operations;
|
|
inode->i_fop = &simple_dir_operations;
|
|
|
|
+ inode->i_nlink = 2;
|
|
root = d_alloc_root(inode);
|
|
root = d_alloc_root(inode);
|
|
if (!root) {
|
|
if (!root) {
|
|
iput(inode);
|
|
iput(inode);
|