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
20890479
Commit
20890479
authored
Apr 20, 2016
by
Eric W. Biederman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
devpts: Move parse_mount_options into fill_super
Signed-off-by:
"Eric W. Biederman"
<
ebiederm@xmission.com
>
parent
df75e774
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
fs/devpts/inode.c
fs/devpts/inode.c
+8
-8
No files found.
fs/devpts/inode.c
View file @
20890479
...
...
@@ -395,6 +395,7 @@ static int
devpts_fill_super
(
struct
super_block
*
s
,
void
*
data
,
int
silent
)
{
struct
inode
*
inode
;
int
error
;
s
->
s_iflags
&=
~
SB_I_NODEV
;
s
->
s_blocksize
=
1024
;
...
...
@@ -403,10 +404,16 @@ devpts_fill_super(struct super_block *s, void *data, int silent)
s
->
s_op
=
&
devpts_sops
;
s
->
s_time_gran
=
1
;
error
=
-
ENOMEM
;
s
->
s_fs_info
=
new_pts_fs_info
(
s
);
if
(
!
s
->
s_fs_info
)
goto
fail
;
error
=
parse_mount_options
(
data
,
PARSE_MOUNT
,
&
DEVPTS_SB
(
s
)
->
mount_opts
);
if
(
error
)
goto
fail
;
error
=
-
ENOMEM
;
inode
=
new_inode
(
s
);
if
(
!
inode
)
goto
fail
;
...
...
@@ -424,7 +431,7 @@ devpts_fill_super(struct super_block *s, void *data, int silent)
pr_err
(
"get root dentry failed
\n
"
);
fail:
return
-
ENOMEM
;
return
error
;
}
/*
...
...
@@ -437,13 +444,8 @@ static struct dentry *devpts_mount(struct file_system_type *fs_type,
int
flags
,
const
char
*
dev_name
,
void
*
data
)
{
int
error
;
struct
pts_mount_opts
opts
;
struct
super_block
*
s
;
error
=
parse_mount_options
(
data
,
PARSE_MOUNT
,
&
opts
);
if
(
error
)
return
ERR_PTR
(
error
);
s
=
sget
(
fs_type
,
NULL
,
set_anon_super
,
flags
,
NULL
);
if
(
IS_ERR
(
s
))
return
ERR_CAST
(
s
);
...
...
@@ -455,8 +457,6 @@ static struct dentry *devpts_mount(struct file_system_type *fs_type,
s
->
s_flags
|=
MS_ACTIVE
;
}
memcpy
(
&
(
DEVPTS_SB
(
s
))
->
mount_opts
,
&
opts
,
sizeof
(
opts
));
error
=
mknod_ptmx
(
s
);
if
(
error
)
goto
out_undo_sget
;
...
...
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