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
Kirill Smelkov
linux
Commits
63a81db1
Commit
63a81db1
authored
May 30, 2012
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge do_mremap() into sys_mremap()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
657bec85
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
14 deletions
+5
-14
mm/mremap.c
mm/mremap.c
+5
-14
No files found.
mm/mremap.c
View file @
63a81db1
...
...
@@ -432,15 +432,17 @@ static int vma_expandable(struct vm_area_struct *vma, unsigned long delta)
* MREMAP_FIXED option added 5-Dec-1999 by Benjamin LaHaise
* This option implies MREMAP_MAYMOVE.
*/
unsigned
long
do_mremap
(
unsigned
long
addr
,
unsigned
long
old_len
,
unsigned
long
new_len
,
unsigned
long
flags
,
unsigned
long
new_addr
)
SYSCALL_DEFINE5
(
mremap
,
unsigned
long
,
addr
,
unsigned
long
,
old_len
,
unsigned
long
,
new_len
,
unsigned
long
,
flags
,
unsigned
long
,
new_addr
)
{
struct
mm_struct
*
mm
=
current
->
mm
;
struct
vm_area_struct
*
vma
;
unsigned
long
ret
=
-
EINVAL
;
unsigned
long
charged
=
0
;
down_write
(
&
current
->
mm
->
mmap_sem
);
if
(
flags
&
~
(
MREMAP_FIXED
|
MREMAP_MAYMOVE
))
goto
out
;
...
...
@@ -538,17 +540,6 @@ unsigned long do_mremap(unsigned long addr,
out:
if
(
ret
&
~
PAGE_MASK
)
vm_unacct_memory
(
charged
);
return
ret
;
}
SYSCALL_DEFINE5
(
mremap
,
unsigned
long
,
addr
,
unsigned
long
,
old_len
,
unsigned
long
,
new_len
,
unsigned
long
,
flags
,
unsigned
long
,
new_addr
)
{
unsigned
long
ret
;
down_write
(
&
current
->
mm
->
mmap_sem
);
ret
=
do_mremap
(
addr
,
old_len
,
new_len
,
flags
,
new_addr
);
up_write
(
&
current
->
mm
->
mmap_sem
);
return
ret
;
}
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