Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
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
Joshua
wendelin.core
Commits
8a9b6af8
Commit
8a9b6af8
authored
Sep 24, 2015
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
t/shm-punch-hole: hugetlbfs supports fallocate() since linux 4.3-rc1
parent
45db6007
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
13 deletions
+2
-13
t/shm-punch-hole.c
t/shm-punch-hole.c
+2
-13
No files found.
t/shm-punch-hole.c
View file @
8a9b6af8
...
@@ -33,20 +33,9 @@
...
@@ -33,20 +33,9 @@
* in hugetlbfs_setattr() and it looks like extending this support to cover
* in hugetlbfs_setattr() and it looks like extending this support to cover
* "truncating range" (i.e. holepunch) should not be that hard.
* "truncating range" (i.e. holepunch) should not be that hard.
*
*
* ->
TODO fix hugetlbfs
* ->
hugetlbfs supports fallocate starting from 4.3-rc1
*
*
* NOTE care should be taken to correctly maintain huge-pages reservation
* https://git.kernel.org/linus/70c3547e36f5c9fbc4caecfeca98f0effa6932c5
* numbers etc (HugePages_Rsvd in /proc/meminfo) as hugetlbfs plays own
* games with reservation on each mmap to be able to promise not to get
* SIGBUS at later page access.
*
* https://lkml.org/lkml/2011/11/16/499
*
* patch: http://lwn.net/Articles/640751/ (hugetlbfs: add fallocate support)
* http://lwn.net/Articles/641681/ v2
* http://lwn.net/Articles/645458/ v3
* http://lwn.net/Articles/647962/ v4
* http://lwn.net/Articles/649077/ v5
*/
*/
#define _GNU_SOURCE
#define _GNU_SOURCE
#include <sys/types.h>
#include <sys/types.h>
...
...
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