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
b6c2abee
Commit
b6c2abee
authored
Jun 03, 2013
by
Andrea Arcangeli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mm: zone_reclaim: compaction: export compact_zone_order()
Needed by zone_reclaim_mode compaction-awareness.
parent
b14cae31
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
include/linux/compaction.h
include/linux/compaction.h
+10
-0
mm/compaction.c
mm/compaction.c
+1
-1
No files found.
include/linux/compaction.h
View file @
b6c2abee
...
...
@@ -40,6 +40,9 @@ extern int fragmentation_index(struct zone *zone, unsigned int order);
extern
unsigned
long
try_to_compact_pages
(
gfp_t
gfp_mask
,
unsigned
int
order
,
int
alloc_flags
,
const
struct
alloc_context
*
ac
,
enum
migrate_mode
mode
,
int
*
contended
);
extern
unsigned
long
compact_zone_order
(
struct
zone
*
zone
,
int
order
,
gfp_t
gfp_mask
,
enum
migrate_mode
mode
,
int
*
contended
,
int
alloc_flags
,
int
classzone_idx
);
extern
void
compact_pgdat
(
pg_data_t
*
pgdat
,
int
order
);
extern
unsigned
long
compaction_suitable
(
struct
zone
*
zone
,
int
order
,
int
alloc_flags
,
int
classzone_idx
);
...
...
@@ -59,6 +62,13 @@ static inline unsigned long try_to_compact_pages(gfp_t gfp_mask,
return
COMPACT_CONTINUE
;
}
static
inline
unsigned
long
compact_zone_order
(
struct
zone
*
zone
,
int
order
,
gfp_t
gfp_mask
,
enum
migrate_mode
mode
,
int
*
contended
,
int
alloc_flags
,
int
classzone_idx
)
{
return
COMPACT_CONTINUE
;
}
static
inline
void
compact_pgdat
(
pg_data_t
*
pgdat
,
int
order
)
{
}
...
...
mm/compaction.c
View file @
b6c2abee
...
...
@@ -1440,7 +1440,7 @@ static int compact_zone(struct zone *zone, struct compact_control *cc)
return
ret
;
}
static
unsigned
long
compact_zone_order
(
struct
zone
*
zone
,
int
order
,
unsigned
long
compact_zone_order
(
struct
zone
*
zone
,
int
order
,
gfp_t
gfp_mask
,
enum
migrate_mode
mode
,
int
*
contended
,
int
alloc_flags
,
int
classzone_idx
)
{
...
...
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