diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-12-07 18:21:57 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-03 22:52:41 -0500 |
commit | 4c1d5a64f134b254552b6211f6f79a1da667eab7 (patch) | |
tree | 130b704f727054b93f2a784a8d08252a1ecda3a0 /drivers/usb/core | |
parent | 32dc730860155b235f13e0cd3fe58b263279baf9 (diff) |
vfs: for usbfs, etc. internal vfsmounts ->mnt_sb->s_root == ->mnt_root
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/usb/core')
-rw-r--r-- | drivers/usb/core/inode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/core/inode.c b/drivers/usb/core/inode.c index 2278dad886e2..0a4613df6c30 100644 --- a/drivers/usb/core/inode.c +++ b/drivers/usb/core/inode.c | |||
@@ -501,7 +501,7 @@ static int fs_create_by_name (const char *name, mode_t mode, | |||
501 | */ | 501 | */ |
502 | if (!parent ) { | 502 | if (!parent ) { |
503 | if (usbfs_mount && usbfs_mount->mnt_sb) { | 503 | if (usbfs_mount && usbfs_mount->mnt_sb) { |
504 | parent = usbfs_mount->mnt_sb->s_root; | 504 | parent = usbfs_mount->mnt_root; |
505 | } | 505 | } |
506 | } | 506 | } |
507 | 507 | ||
@@ -608,7 +608,7 @@ static int create_special_files (void) | |||
608 | 608 | ||
609 | ignore_mount = 0; | 609 | ignore_mount = 0; |
610 | 610 | ||
611 | parent = usbfs_mount->mnt_sb->s_root; | 611 | parent = usbfs_mount->mnt_root; |
612 | devices_usbfs_dentry = fs_create_file ("devices", | 612 | devices_usbfs_dentry = fs_create_file ("devices", |
613 | listmode | S_IFREG, parent, | 613 | listmode | S_IFREG, parent, |
614 | NULL, &usbfs_devices_fops, | 614 | NULL, &usbfs_devices_fops, |
@@ -662,7 +662,7 @@ static void usbfs_add_bus(struct usb_bus *bus) | |||
662 | 662 | ||
663 | sprintf (name, "%03d", bus->busnum); | 663 | sprintf (name, "%03d", bus->busnum); |
664 | 664 | ||
665 | parent = usbfs_mount->mnt_sb->s_root; | 665 | parent = usbfs_mount->mnt_root; |
666 | bus->usbfs_dentry = fs_create_file (name, busmode | S_IFDIR, parent, | 666 | bus->usbfs_dentry = fs_create_file (name, busmode | S_IFDIR, parent, |
667 | bus, NULL, busuid, busgid); | 667 | bus, NULL, busuid, busgid); |
668 | if (bus->usbfs_dentry == NULL) { | 668 | if (bus->usbfs_dentry == NULL) { |