Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
4c1d5a64
Commit
4c1d5a64
authored
Dec 07, 2011
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vfs: for usbfs, etc. internal vfsmounts ->mnt_sb->s_root == ->mnt_root
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
32dc7308
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
8 deletions
+8
-8
arch/ia64/kernel/perfmon.c
arch/ia64/kernel/perfmon.c
+1
-1
drivers/usb/core/inode.c
drivers/usb/core/inode.c
+3
-3
fs/configfs/dir.c
fs/configfs/dir.c
+1
-1
fs/debugfs/inode.c
fs/debugfs/inode.c
+1
-1
fs/hppfs/hppfs.c
fs/hppfs/hppfs.c
+1
-1
security/inode.c
security/inode.c
+1
-1
No files found.
arch/ia64/kernel/perfmon.c
View file @
4c1d5a64
...
...
@@ -2228,7 +2228,7 @@ pfm_alloc_file(pfm_context_t *ctx)
/*
* allocate a new dcache entry
*/
path
.
dentry
=
d_alloc
(
pfmfs_mnt
->
mnt_
sb
->
s_
root
,
&
this
);
path
.
dentry
=
d_alloc
(
pfmfs_mnt
->
mnt_root
,
&
this
);
if
(
!
path
.
dentry
)
{
iput
(
inode
);
return
ERR_PTR
(
-
ENOMEM
);
...
...
drivers/usb/core/inode.c
View file @
4c1d5a64
...
...
@@ -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
)
{
...
...
fs/configfs/dir.c
View file @
4c1d5a64
...
...
@@ -312,7 +312,7 @@ static int configfs_create_dir(struct config_item * item, struct dentry *dentry)
if
(
item
->
ci_parent
)
parent
=
item
->
ci_parent
->
ci_dentry
;
else
if
(
configfs_mount
&&
configfs_mount
->
mnt_sb
)
parent
=
configfs_mount
->
mnt_
sb
->
s_
root
;
parent
=
configfs_mount
->
mnt_root
;
else
return
-
EFAULT
;
...
...
fs/debugfs/inode.c
View file @
4c1d5a64
...
...
@@ -160,7 +160,7 @@ static int debugfs_create_by_name(const char *name, mode_t mode,
* have around.
*/
if
(
!
parent
)
parent
=
debugfs_mount
->
mnt_
sb
->
s_
root
;
parent
=
debugfs_mount
->
mnt_root
;
*
dentry
=
NULL
;
mutex_lock
(
&
parent
->
d_inode
->
i_mutex
);
...
...
fs/hppfs/hppfs.c
View file @
4c1d5a64
...
...
@@ -725,7 +725,7 @@ static int hppfs_fill_super(struct super_block *sb, void *d, int silent)
sb
->
s_fs_info
=
proc_mnt
;
err
=
-
ENOMEM
;
root_inode
=
get_inode
(
sb
,
dget
(
proc_mnt
->
mnt_
sb
->
s_
root
));
root_inode
=
get_inode
(
sb
,
dget
(
proc_mnt
->
mnt_root
));
if
(
!
root_inode
)
goto
out_mntput
;
...
...
security/inode.c
View file @
4c1d5a64
...
...
@@ -159,7 +159,7 @@ static int create_by_name(const char *name, mode_t mode,
* have around.
*/
if
(
!
parent
)
parent
=
mount
->
mnt_
sb
->
s_
root
;
parent
=
mount
->
mnt_root
;
mutex_lock
(
&
parent
->
d_inode
->
i_mutex
);
*
dentry
=
lookup_one_len
(
name
,
parent
,
strlen
(
name
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment