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
344afa65
Commit
344afa65
authored
Oct 17, 2012
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MIPS: Hugetlbfs: Handle huge pages correctly in pmd_bad()
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
359187d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
arch/mips/include/asm/pgtable-64.h
arch/mips/include/asm/pgtable-64.h
+14
-1
No files found.
arch/mips/include/asm/pgtable-64.h
View file @
344afa65
...
...
@@ -9,6 +9,7 @@
#ifndef _ASM_PGTABLE_64_H
#define _ASM_PGTABLE_64_H
#include <linux/compiler.h>
#include <linux/linkage.h>
#include <asm/addrspace.h>
...
...
@@ -172,7 +173,19 @@ static inline int pmd_none(pmd_t pmd)
return
pmd_val
(
pmd
)
==
(
unsigned
long
)
invalid_pte_table
;
}
#define pmd_bad(pmd) (pmd_val(pmd) & ~PAGE_MASK)
static
inline
int
pmd_bad
(
pmd_t
pmd
)
{
#ifdef CONFIG_HUGETLB_PAGE
/* pmd_huge(pmd) but inline */
if
(
unlikely
(
pmd_val
(
pmd
)
&
_PAGE_HUGE
))
return
0
;
#endif
if
(
unlikely
(
pmd_val
(
pmd
)
&
~
PAGE_MASK
))
return
1
;
return
0
;
}
static
inline
int
pmd_present
(
pmd_t
pmd
)
{
...
...
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