History

mm/page_isolation.c: change the prototype of undo_isolate_page_range()

undo_isolate_page_range() never fails, so no need to return value.

Pingfan Liu committed 7 years ago

Commit 1fcf0a51 parent ac1c3e42 files · +2 −3Browse files

Unified · Split

2 files
  1. include/linux/page-isolation.h +1 −1
  2. mm/page_isolation.c +1 −2
include/linux/page-isolation.h+1−1
@@ -50,7 +50,7 @@ start_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn, · 49 unmodified lines
5050 * Changes MIGRATE_ISOLATE to MIGRATE_MOVABLE.
5151 * target range is [start_pfn, end_pfn)
5252 */
53−int
53+void
5454 undo_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn,
5555 unsigned migratetype);
5656
mm/page_isolation.c+1−2
@@ -230,7 +230,7 @@ undo: · 229 unmodified lines
230230 /*
231231 * Make isolated pages available again.
232232 */
233−int undo_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn,
233+void undo_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn,
234234 unsigned migratetype)
235235 {
236236 unsigned long pfn;
@@ -247,7 +247,6 @@ int undo_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn, · 10 unmodified lines
247247 continue;
248248 unset_migratetype_isolate(page, migratetype);
249249 }
250− return 0;
251250 }
252251 /*
253252 * Test all pages in the range is free(means isolated) or not.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t