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
a20d5200
Commit
a20d5200
authored
Feb 05, 2003
by
Andrew Morton
Committed by
Linus Torvalds
Feb 05, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] ia32 hugetlb cleanup
- whitespace - remove unneeded spinlocking no-op.
parent
8b5111ec
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
arch/i386/mm/hugetlbpage.c
arch/i386/mm/hugetlbpage.c
+7
-6
No files found.
arch/i386/mm/hugetlbpage.c
View file @
a20d5200
...
@@ -248,7 +248,8 @@ void huge_page_release(struct page *page)
...
@@ -248,7 +248,8 @@ void huge_page_release(struct page *page)
free_huge_page
(
page
);
free_huge_page
(
page
);
}
}
void
unmap_hugepage_range
(
struct
vm_area_struct
*
vma
,
unsigned
long
start
,
unsigned
long
end
)
void
unmap_hugepage_range
(
struct
vm_area_struct
*
vma
,
unsigned
long
start
,
unsigned
long
end
)
{
{
struct
mm_struct
*
mm
=
vma
->
vm_mm
;
struct
mm_struct
*
mm
=
vma
->
vm_mm
;
unsigned
long
address
;
unsigned
long
address
;
...
@@ -258,8 +259,6 @@ void unmap_hugepage_range(struct vm_area_struct *vma, unsigned long start, unsig
...
@@ -258,8 +259,6 @@ void unmap_hugepage_range(struct vm_area_struct *vma, unsigned long start, unsig
BUG_ON
(
start
&
(
HPAGE_SIZE
-
1
));
BUG_ON
(
start
&
(
HPAGE_SIZE
-
1
));
BUG_ON
(
end
&
(
HPAGE_SIZE
-
1
));
BUG_ON
(
end
&
(
HPAGE_SIZE
-
1
));
spin_lock
(
&
htlbpage_lock
);
spin_unlock
(
&
htlbpage_lock
);
for
(
address
=
start
;
address
<
end
;
address
+=
HPAGE_SIZE
)
{
for
(
address
=
start
;
address
<
end
;
address
+=
HPAGE_SIZE
)
{
pte
=
huge_pte_offset
(
mm
,
address
);
pte
=
huge_pte_offset
(
mm
,
address
);
if
(
pte_none
(
*
pte
))
if
(
pte_none
(
*
pte
))
...
@@ -272,7 +271,9 @@ void unmap_hugepage_range(struct vm_area_struct *vma, unsigned long start, unsig
...
@@ -272,7 +271,9 @@ void unmap_hugepage_range(struct vm_area_struct *vma, unsigned long start, unsig
flush_tlb_range
(
vma
,
start
,
end
);
flush_tlb_range
(
vma
,
start
,
end
);
}
}
void
zap_hugepage_range
(
struct
vm_area_struct
*
vma
,
unsigned
long
start
,
unsigned
long
length
)
void
zap_hugepage_range
(
struct
vm_area_struct
*
vma
,
unsigned
long
start
,
unsigned
long
length
)
{
{
struct
mm_struct
*
mm
=
vma
->
vm_mm
;
struct
mm_struct
*
mm
=
vma
->
vm_mm
;
spin_lock
(
&
mm
->
page_table_lock
);
spin_lock
(
&
mm
->
page_table_lock
);
...
@@ -477,8 +478,8 @@ int is_hugepage_mem_enough(size_t size)
...
@@ -477,8 +478,8 @@ int is_hugepage_mem_enough(size_t size)
* hugegpage VMA. do_page_fault() is supposed to trap this, so BUG is we get
* hugegpage VMA. do_page_fault() is supposed to trap this, so BUG is we get
* this far.
* this far.
*/
*/
static
struct
page
*
static
struct
page
*
hugetlb_nopage
(
struct
vm_area_struct
*
vma
,
hugetlb_nopage
(
struct
vm_area_struct
*
vma
,
unsigned
long
address
,
int
unused
)
unsigned
long
address
,
int
unused
)
{
{
BUG
();
BUG
();
return
NULL
;
return
NULL
;
...
...
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