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
a53bc753
Commit
a53bc753
authored
Mar 04, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC]: Pass a real page into do_mount() a final arg.
parent
23893419
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
6 deletions
+24
-6
arch/sparc/kernel/sys_sunos.c
arch/sparc/kernel/sys_sunos.c
+12
-3
arch/sparc64/kernel/sys_sunos32.c
arch/sparc64/kernel/sys_sunos32.c
+12
-3
No files found.
arch/sparc/kernel/sys_sunos.c
View file @
a53bc753
...
...
@@ -682,8 +682,8 @@ static int get_default (int value, int def_value)
static
int
sunos_nfs_mount
(
char
*
dir_name
,
int
linux_flags
,
void
*
data
)
{
int
server_fd
;
char
*
the_name
;
int
server_fd
,
err
;
char
*
the_name
,
*
mount_page
;
struct
nfs_mount_data
linux_nfs_mount
;
struct
sunos_nfs_mount_args
sunos_mount
;
...
...
@@ -736,7 +736,16 @@ static int sunos_nfs_mount(char *dir_name, int linux_flags, void *data)
sizeof
(
linux_nfs_mount
.
hostname
));
putname
(
the_name
);
return
do_mount
(
""
,
dir_name
,
"nfs"
,
linux_flags
,
&
linux_nfs_mount
);
mount_page
=
(
char
*
)
get_zeroed_page
(
GFP_KERNEL
);
if
(
!
mount_page
)
return
-
ENOMEM
;
memcpy
(
mount_page
,
&
linux_nfs_mount
,
sizeof
(
linux_nfs_mount
));
err
=
do_mount
(
""
,
dir_name
,
"nfs"
,
linux_flags
,
mount_page
);
free_page
((
unsigned
long
)
mount_page
);
return
err
;
}
asmlinkage
int
...
...
arch/sparc64/kernel/sys_sunos32.c
View file @
a53bc753
...
...
@@ -650,8 +650,8 @@ static int get_default (int value, int def_value)
/* XXXXXXXXXXXXXXXXXXXX */
static
int
sunos_nfs_mount
(
char
*
dir_name
,
int
linux_flags
,
void
*
data
)
{
int
server_fd
;
char
*
the_name
;
int
server_fd
,
err
;
char
*
the_name
,
*
mount_page
;
struct
nfs_mount_data
linux_nfs_mount
;
struct
sunos_nfs_mount_args
sunos_mount
;
...
...
@@ -704,7 +704,16 @@ static int sunos_nfs_mount(char *dir_name, int linux_flags, void *data)
sizeof
(
linux_nfs_mount
.
hostname
));
putname
(
the_name
);
return
do_mount
(
""
,
dir_name
,
"nfs"
,
linux_flags
,
&
linux_nfs_mount
);
mount_page
=
(
char
*
)
get_zeroed_page
(
GFP_KERNEL
);
if
(
!
mount_page
)
return
-
ENOMEM
;
memcpy
(
mount_page
,
&
linux_nfs_mount
,
sizeof
(
linux_nfs_mount
));
err
=
do_mount
(
""
,
dir_name
,
"nfs"
,
linux_flags
,
mount_page
);
free_page
((
unsigned
long
)
mount_page
);
return
err
;
}
/* XXXXXXXXXXXXXXXXXXXX */
...
...
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