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
Kirill Smelkov
linux
Commits
36f6aa1b
Commit
36f6aa1b
authored
Apr 20, 2003
by
Andrew Morton
Committed by
Linus Torvalds
Apr 20, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] use __GFP_REPEAT in pmd_alloc_one()
Convert all pmd_alloc_one() implementations to use __GFP_REPEAT
parent
68b5a30f
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
12 additions
and
20 deletions
+12
-20
arch/sparc/mm/sun4c.c
arch/sparc/mm/sun4c.c
+1
-1
include/asm-alpha/pgalloc.h
include/asm-alpha/pgalloc.h
+1
-1
include/asm-ia64/pgalloc.h
include/asm-ia64/pgalloc.h
+1
-1
include/asm-m68k/sun3_pgalloc.h
include/asm-m68k/sun3_pgalloc.h
+1
-1
include/asm-mips64/pgalloc.h
include/asm-mips64/pgalloc.h
+1
-1
include/asm-parisc/pgalloc.h
include/asm-parisc/pgalloc.h
+1
-1
include/asm-ppc64/pgalloc.h
include/asm-ppc64/pgalloc.h
+3
-11
include/asm-sparc64/pgalloc.h
include/asm-sparc64/pgalloc.h
+1
-1
include/asm-x86_64/pgalloc.h
include/asm-x86_64/pgalloc.h
+2
-2
No files found.
arch/sparc/mm/sun4c.c
View file @
36f6aa1b
...
@@ -2194,7 +2194,7 @@ void __init ld_mmu_sun4c(void)
...
@@ -2194,7 +2194,7 @@ void __init ld_mmu_sun4c(void)
BTFIXUPSET_CALL
(
pte_alloc_one_kernel
,
sun4c_pte_alloc_one_kernel
,
BTFIXUPCALL_NORM
);
BTFIXUPSET_CALL
(
pte_alloc_one_kernel
,
sun4c_pte_alloc_one_kernel
,
BTFIXUPCALL_NORM
);
BTFIXUPSET_CALL
(
pte_alloc_one
,
sun4c_pte_alloc_one
,
BTFIXUPCALL_NORM
);
BTFIXUPSET_CALL
(
pte_alloc_one
,
sun4c_pte_alloc_one
,
BTFIXUPCALL_NORM
);
BTFIXUPSET_CALL
(
free_pmd_fast
,
sun4c_free_pmd_fast
,
BTFIXUPCALL_NOP
);
BTFIXUPSET_CALL
(
free_pmd_fast
,
sun4c_free_pmd_fast
,
BTFIXUPCALL_NOP
);
BTFIXUPSET_CALL
(
pmd_alloc_one
,
sun4c_pmd_alloc_one
,
BTFIXUPCALL_RETO0
);
BTFIXUPSET_CALL
(
pmd_alloc_one
,
sun4c_
l
pmd_alloc_one
,
BTFIXUPCALL_RETO0
);
BTFIXUPSET_CALL
(
free_pgd_fast
,
sun4c_free_pgd_fast
,
BTFIXUPCALL_NORM
);
BTFIXUPSET_CALL
(
free_pgd_fast
,
sun4c_free_pgd_fast
,
BTFIXUPCALL_NORM
);
BTFIXUPSET_CALL
(
get_pgd_fast
,
sun4c_get_pgd_fast
,
BTFIXUPCALL_NORM
);
BTFIXUPSET_CALL
(
get_pgd_fast
,
sun4c_get_pgd_fast
,
BTFIXUPCALL_NORM
);
...
...
include/asm-alpha/pgalloc.h
View file @
36f6aa1b
...
@@ -40,7 +40,7 @@ pgd_free(pgd_t *pgd)
...
@@ -40,7 +40,7 @@ pgd_free(pgd_t *pgd)
static
inline
pmd_t
*
static
inline
pmd_t
*
pmd_alloc_one
(
struct
mm_struct
*
mm
,
unsigned
long
address
)
pmd_alloc_one
(
struct
mm_struct
*
mm
,
unsigned
long
address
)
{
{
pmd_t
*
ret
=
(
pmd_t
*
)
__get_free_page
(
GFP_KERNEL
);
pmd_t
*
ret
=
(
pmd_t
*
)
__get_free_page
(
GFP_KERNEL
|
__GFP_REPEAT
);
if
(
ret
)
if
(
ret
)
clear_page
(
ret
);
clear_page
(
ret
);
return
ret
;
return
ret
;
...
...
include/asm-ia64/pgalloc.h
View file @
36f6aa1b
...
@@ -93,7 +93,7 @@ pmd_alloc_one_fast (struct mm_struct *mm, unsigned long addr)
...
@@ -93,7 +93,7 @@ pmd_alloc_one_fast (struct mm_struct *mm, unsigned long addr)
static
inline
pmd_t
*
static
inline
pmd_t
*
pmd_alloc_one
(
struct
mm_struct
*
mm
,
unsigned
long
addr
)
pmd_alloc_one
(
struct
mm_struct
*
mm
,
unsigned
long
addr
)
{
{
pmd_t
*
pmd
=
(
pmd_t
*
)
__get_free_page
(
GFP_KERNEL
);
pmd_t
*
pmd
=
(
pmd_t
*
)
__get_free_page
(
GFP_KERNEL
|
__GFP_REPEAT
);
if
(
likely
(
pmd
!=
NULL
))
if
(
likely
(
pmd
!=
NULL
))
clear_page
(
pmd
);
clear_page
(
pmd
);
...
...
include/asm-m68k/sun3_pgalloc.h
View file @
36f6aa1b
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
extern
const
char
bad_pmd_string
[];
extern
const
char
bad_pmd_string
[];
#define pmd_alloc_one(mm,address) ({ BUG(); ((pmd_t *)2); })
#define
l
pmd_alloc_one(mm,address) ({ BUG(); ((pmd_t *)2); })
static
inline
void
pte_free_kernel
(
pte_t
*
pte
)
static
inline
void
pte_free_kernel
(
pte_t
*
pte
)
...
...
include/asm-mips64/pgalloc.h
View file @
36f6aa1b
...
@@ -141,7 +141,7 @@ static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address)
...
@@ -141,7 +141,7 @@ static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address)
{
{
pmd_t
*
pmd
;
pmd_t
*
pmd
;
pmd
=
(
pmd_t
*
)
__get_free_pages
(
GFP_KERNEL
,
1
);
pmd
=
(
pmd_t
*
)
__get_free_pages
(
GFP_KERNEL
|
__GFP_REPEAT
,
1
);
if
(
pmd
)
if
(
pmd
)
pmd_init
((
unsigned
long
)
pmd
,
(
unsigned
long
)
invalid_pte_table
);
pmd_init
((
unsigned
long
)
pmd
,
(
unsigned
long
)
invalid_pte_table
);
return
pmd
;
return
pmd
;
...
...
include/asm-parisc/pgalloc.h
View file @
36f6aa1b
...
@@ -35,7 +35,7 @@ static inline void pgd_populate(struct mm_struct *mm, pgd_t *pgd, pmd_t *pmd)
...
@@ -35,7 +35,7 @@ static inline void pgd_populate(struct mm_struct *mm, pgd_t *pgd, pmd_t *pmd)
static
inline
pmd_t
*
pmd_alloc_one
(
struct
mm_struct
*
mm
,
unsigned
long
address
)
static
inline
pmd_t
*
pmd_alloc_one
(
struct
mm_struct
*
mm
,
unsigned
long
address
)
{
{
pmd_t
*
pmd
=
(
pmd_t
*
)
__get_free_page
(
GFP_KERNEL
);
pmd_t
*
pmd
=
(
pmd_t
*
)
__get_free_page
(
GFP_KERNEL
|
__GFP_REPEAT
);
if
(
pmd
)
if
(
pmd
)
clear_page
(
pmd
);
clear_page
(
pmd
);
return
pmd
;
return
pmd
;
...
...
include/asm-ppc64/pgalloc.h
View file @
36f6aa1b
...
@@ -31,19 +31,11 @@ pgd_free(pgd_t *pgd)
...
@@ -31,19 +31,11 @@ pgd_free(pgd_t *pgd)
static
inline
pmd_t
*
static
inline
pmd_t
*
pmd_alloc_one
(
struct
mm_struct
*
mm
,
unsigned
long
addr
)
pmd_alloc_one
(
struct
mm_struct
*
mm
,
unsigned
long
addr
)
{
{
int
count
=
0
;
pmd_t
*
pmd
;
pmd_t
*
pmd
;
do
{
pmd
=
(
pmd_t
*
)
__get_free_page
(
GFP_KERNEL
|
__GFP_REPEAT
);
pmd
=
(
pmd_t
*
)
__get_free_page
(
GFP_KERNEL
);
if
(
pmd
)
if
(
pmd
)
clear_page
(
pmd
);
clear_page
(
pmd
);
else
{
current
->
state
=
TASK_UNINTERRUPTIBLE
;
schedule_timeout
(
HZ
);
}
}
while
(
!
pmd
&&
(
count
++
<
10
));
return
pmd
;
return
pmd
;
}
}
...
...
include/asm-sparc64/pgalloc.h
View file @
36f6aa1b
...
@@ -159,7 +159,7 @@ static __inline__ pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long addre
...
@@ -159,7 +159,7 @@ static __inline__ pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long addre
pmd
=
pmd_alloc_one_fast
(
mm
,
address
);
pmd
=
pmd_alloc_one_fast
(
mm
,
address
);
if
(
!
pmd
)
{
if
(
!
pmd
)
{
pmd
=
(
pmd_t
*
)
__get_free_page
(
GFP_KERNEL
);
pmd
=
(
pmd_t
*
)
__get_free_page
(
GFP_KERNEL
|
__GFP_REPEAT
);
if
(
pmd
)
if
(
pmd
)
memset
(
pmd
,
0
,
PAGE_SIZE
);
memset
(
pmd
,
0
,
PAGE_SIZE
);
}
}
...
...
include/asm-x86_64/pgalloc.h
View file @
36f6aa1b
...
@@ -31,12 +31,12 @@ extern __inline__ void pmd_free(pmd_t *pmd)
...
@@ -31,12 +31,12 @@ extern __inline__ void pmd_free(pmd_t *pmd)
static
inline
pmd_t
*
pmd_alloc_one
(
struct
mm_struct
*
mm
,
unsigned
long
addr
)
static
inline
pmd_t
*
pmd_alloc_one
(
struct
mm_struct
*
mm
,
unsigned
long
addr
)
{
{
return
(
pmd_t
*
)
get_zeroed_page
(
GFP_KERNEL
);
return
(
pmd_t
*
)
get_zeroed_page
(
GFP_KERNEL
|
__GFP_REPEAT
);
}
}
static
inline
pgd_t
*
pgd_alloc
(
struct
mm_struct
*
mm
)
static
inline
pgd_t
*
pgd_alloc
(
struct
mm_struct
*
mm
)
{
{
return
(
pgd_t
*
)
get_zeroed_page
(
GFP_KERNEL
);
return
(
pgd_t
*
)
get_zeroed_page
(
GFP_KERNEL
|
__GFP_REPEAT
);
}
}
static
inline
void
pgd_free
(
pgd_t
*
pgd
)
static
inline
void
pgd_free
(
pgd_t
*
pgd
)
...
...
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