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
3f52c652
Commit
3f52c652
authored
Jun 15, 2002
by
William Lee Irwin III
Committed by
Linus Torvalds
Jun 15, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] remove forget_pte() remnants
parent
d5ba0bf6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
16 deletions
+2
-16
mm/memory.c
mm/memory.c
+2
-16
No files found.
mm/memory.c
View file @
3f52c652
...
...
@@ -310,17 +310,6 @@ cont_copy_pmd_range: src_pmd++;
return
-
ENOMEM
;
}
/*
* Return indicates whether a page was freed so caller can adjust rss
*/
static
inline
void
forget_pte
(
pte_t
page
)
{
if
(
!
pte_none
(
page
))
{
printk
(
"forget_pte: old mapping existed!
\n
"
);
BUG
();
}
}
static
void
zap_pte_range
(
mmu_gather_t
*
tlb
,
pmd_t
*
pmd
,
unsigned
long
address
,
unsigned
long
size
)
{
unsigned
long
offset
;
...
...
@@ -777,9 +766,8 @@ static inline void zeromap_pte_range(pte_t * pte, unsigned long address,
end
=
PMD_SIZE
;
do
{
pte_t
zero_pte
=
pte_wrprotect
(
mk_pte
(
ZERO_PAGE
(
address
),
prot
));
pte_t
oldpage
=
ptep_get_and_clear
(
pte
);
BUG_ON
(
!
pte_none
(
*
pte
)
);
set_pte
(
pte
,
zero_pte
);
forget_pte
(
oldpage
);
address
+=
PAGE_SIZE
;
pte
++
;
}
while
(
address
&&
(
address
<
end
));
...
...
@@ -853,11 +841,9 @@ static inline void remap_pte_range(pte_t * pte, unsigned long address, unsigned
end
=
PMD_SIZE
;
pfn
=
phys_addr
>>
PAGE_SHIFT
;
do
{
pte_t
oldpage
=
ptep_get_and_clear
(
pte
);
BUG_ON
(
!
pte_none
(
*
pte
));
if
(
!
pfn_valid
(
pfn
)
||
PageReserved
(
pfn_to_page
(
pfn
)))
set_pte
(
pte
,
pfn_pte
(
pfn
,
prot
));
forget_pte
(
oldpage
);
address
+=
PAGE_SIZE
;
pfn
++
;
pte
++
;
...
...
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