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
6fac98dd
Commit
6fac98dd
authored
May 08, 2009
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Push BKL into do_mount()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
bbd6851a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
7 deletions
+2
-7
arch/alpha/kernel/osf_sys.c
arch/alpha/kernel/osf_sys.c
+0
-3
fs/compat.c
fs/compat.c
+0
-2
fs/namespace.c
fs/namespace.c
+2
-2
No files found.
arch/alpha/kernel/osf_sys.c
View file @
6fac98dd
...
...
@@ -371,8 +371,6 @@ SYSCALL_DEFINE4(osf_mount, unsigned long, typenr, char __user *, path,
int
retval
=
-
EINVAL
;
char
*
name
;
lock_kernel
();
name
=
getname
(
path
);
retval
=
PTR_ERR
(
name
);
if
(
IS_ERR
(
name
))
...
...
@@ -392,7 +390,6 @@ SYSCALL_DEFINE4(osf_mount, unsigned long, typenr, char __user *, path,
}
putname
(
name
);
out:
unlock_kernel
();
return
retval
;
}
...
...
fs/compat.c
View file @
6fac98dd
...
...
@@ -812,10 +812,8 @@ asmlinkage long compat_sys_mount(char __user * dev_name, char __user * dir_name,
}
}
lock_kernel
();
retval
=
do_mount
((
char
*
)
dev_page
,
dir_page
,
(
char
*
)
type_page
,
flags
,
(
void
*
)
data_page
);
unlock_kernel
();
out4:
free_page
(
data_page
);
...
...
fs/namespace.c
View file @
6fac98dd
...
...
@@ -1921,6 +1921,7 @@ long do_mount(char *dev_name, char *dir_name, char *type_page,
if
(
retval
)
goto
dput_out
;
lock_kernel
();
if
(
flags
&
MS_REMOUNT
)
retval
=
do_remount
(
&
path
,
flags
&
~
MS_REMOUNT
,
mnt_flags
,
data_page
);
...
...
@@ -1933,6 +1934,7 @@ long do_mount(char *dev_name, char *dir_name, char *type_page,
else
retval
=
do_new_mount
(
&
path
,
type_page
,
flags
,
mnt_flags
,
dev_name
,
data_page
);
unlock_kernel
();
dput_out:
path_put
(
&
path
);
return
retval
;
...
...
@@ -2046,10 +2048,8 @@ SYSCALL_DEFINE5(mount, char __user *, dev_name, char __user *, dir_name,
if
(
retval
<
0
)
goto
out3
;
lock_kernel
();
retval
=
do_mount
((
char
*
)
dev_page
,
dir_page
,
(
char
*
)
type_page
,
flags
,
(
void
*
)
data_page
);
unlock_kernel
();
free_page
(
data_page
);
out3:
...
...
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