vfs: for usbfs, etc. internal vfsmounts ->mnt_sb->s_root == ->mnt_root

Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
Al Viro 2011-12-07 18:21:57 -05:00
commit 4c1d5a64f1
6 changed files with 8 additions and 8 deletions

View file

@ -501,7 +501,7 @@ static int fs_create_by_name (const char *name, mode_t mode,
*/
if (!parent ) {
if (usbfs_mount && usbfs_mount->mnt_sb) {
parent = usbfs_mount->mnt_sb->s_root;
parent = usbfs_mount->mnt_root;
}
}
@ -608,7 +608,7 @@ static int create_special_files (void)
ignore_mount = 0;
parent = usbfs_mount->mnt_sb->s_root;
parent = usbfs_mount->mnt_root;
devices_usbfs_dentry = fs_create_file ("devices",
listmode | S_IFREG, parent,
NULL, &usbfs_devices_fops,
@ -662,7 +662,7 @@ static void usbfs_add_bus(struct usb_bus *bus)
sprintf (name, "%03d", bus->busnum);
parent = usbfs_mount->mnt_sb->s_root;
parent = usbfs_mount->mnt_root;
bus->usbfs_dentry = fs_create_file (name, busmode | S_IFDIR, parent,
bus, NULL, busuid, busgid);
if (bus->usbfs_dentry == NULL) {