Commit 9ad568e6 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

fix i_nlink for root inode in usbfs

parent c6c2b19f
......@@ -162,6 +162,9 @@ static struct inode *usbfs_get_inode (struct super_block *sb, int mode, int dev)
case S_IFDIR:
inode->i_op = &usbfs_dir_inode_operations;
inode->i_fop = &simple_dir_operations;
/* directory inodes start off with i_nlink == 2 (for "." entry) */
inode->i_nlink++;
break;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment