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
aed1d84f
Commit
aed1d84f
authored
Jul 26, 2010
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch procfs to ->mount()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
579441a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
fs/proc/root.c
fs/proc/root.c
+6
-7
No files found.
fs/proc/root.c
View file @
aed1d84f
...
...
@@ -35,8 +35,8 @@ static int proc_set_super(struct super_block *sb, void *data)
return
set_anon_super
(
sb
,
NULL
);
}
static
int
proc_get_sb
(
struct
file_system_type
*
fs_type
,
int
flags
,
const
char
*
dev_name
,
void
*
data
,
struct
vfsmount
*
mnt
)
static
struct
dentry
*
proc_mount
(
struct
file_system_type
*
fs_type
,
int
flags
,
const
char
*
dev_name
,
void
*
data
)
{
int
err
;
struct
super_block
*
sb
;
...
...
@@ -61,14 +61,14 @@ static int proc_get_sb(struct file_system_type *fs_type,
sb
=
sget
(
fs_type
,
proc_test_super
,
proc_set_super
,
ns
);
if
(
IS_ERR
(
sb
))
return
PTR_ERR
(
sb
);
return
ERR_CAST
(
sb
);
if
(
!
sb
->
s_root
)
{
sb
->
s_flags
=
flags
;
err
=
proc_fill_super
(
sb
);
if
(
err
)
{
deactivate_locked_super
(
sb
);
return
err
;
return
ERR_PTR
(
err
)
;
}
ei
=
PROC_I
(
sb
->
s_root
->
d_inode
);
...
...
@@ -81,8 +81,7 @@ static int proc_get_sb(struct file_system_type *fs_type,
sb
->
s_flags
|=
MS_ACTIVE
;
}
simple_set_mnt
(
mnt
,
sb
);
return
0
;
return
dget
(
sb
->
s_root
);
}
static
void
proc_kill_sb
(
struct
super_block
*
sb
)
...
...
@@ -96,7 +95,7 @@ static void proc_kill_sb(struct super_block *sb)
static
struct
file_system_type
proc_fs_type
=
{
.
name
=
"proc"
,
.
get_sb
=
proc_get_sb
,
.
mount
=
proc_mount
,
.
kill_sb
=
proc_kill_sb
,
};
...
...
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