mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
vfs: for usbfs, etc. internal vfsmounts ->mnt_sb->s_root == ->mnt_root
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
32dc730860
commit
4c1d5a64f1
6 changed files with 8 additions and 8 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue