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
59a34b75
Commit
59a34b75
authored
Jun 03, 2004
by
Alexander Viro
Committed by
Linus Torvalds
Jun 03, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] sparse: hugetlb sysctl annotation
parent
73a66020
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
include/linux/hugetlb.h
include/linux/hugetlb.h
+1
-1
mm/hugetlb.c
mm/hugetlb.c
+2
-1
No files found.
include/linux/hugetlb.h
View file @
59a34b75
...
...
@@ -12,7 +12,7 @@ static inline int is_vm_hugetlb_page(struct vm_area_struct *vma)
return
vma
->
vm_flags
&
VM_HUGETLB
;
}
int
hugetlb_sysctl_handler
(
struct
ctl_table
*
,
int
,
struct
file
*
,
void
*
,
size_t
*
);
int
hugetlb_sysctl_handler
(
struct
ctl_table
*
,
int
,
struct
file
*
,
void
__user
*
,
size_t
*
);
int
copy_hugetlb_page_range
(
struct
mm_struct
*
,
struct
mm_struct
*
,
struct
vm_area_struct
*
);
int
follow_hugetlb_page
(
struct
mm_struct
*
,
struct
vm_area_struct
*
,
struct
page
**
,
struct
vm_area_struct
**
,
unsigned
long
*
,
int
*
,
int
);
void
zap_hugepage_range
(
struct
vm_area_struct
*
,
unsigned
long
,
unsigned
long
);
...
...
mm/hugetlb.c
View file @
59a34b75
...
...
@@ -182,7 +182,8 @@ static unsigned long set_max_huge_pages(unsigned long count)
#ifdef CONFIG_SYSCTL
int
hugetlb_sysctl_handler
(
struct
ctl_table
*
table
,
int
write
,
struct
file
*
file
,
void
*
buffer
,
size_t
*
length
)
struct
file
*
file
,
void
__user
*
buffer
,
size_t
*
length
)
{
proc_doulongvec_minmax
(
table
,
write
,
file
,
buffer
,
length
);
max_huge_pages
=
set_max_huge_pages
(
max_huge_pages
);
...
...
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