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
50 * Changes MIGRATE_ISOLATE to MIGRATE_MOVABLE.50 * Changes MIGRATE_ISOLATE to MIGRATE_MOVABLE.
51 * target range is [start_pfn, end_pfn)51 * target range is [start_pfn, end_pfn)
52 */52 */
53int53void
54undo_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn,54undo_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn,
55 unsigned migratetype);55 unsigned migratetype);
56 56
mm/page_isolation.c+1−2
@@ -230,7 +230,7 @@ undo: · 229 unmodified lines
230/*230/*
231 * Make isolated pages available again.231 * Make isolated pages available again.
232 */232 */
233int undo_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn,233void undo_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn,
234 unsigned migratetype)234 unsigned migratetype)
235{235{
236 unsigned long pfn;236 unsigned long pfn;
@@ -247,7 +247,6 @@ int undo_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn, · 10 unmodified lines
247 continue;247 continue;
248 unset_migratetype_isolate(page, migratetype);248 unset_migratetype_isolate(page, migratetype);
249 }249 }
250 return 0;
251}250}
252/*251/*
253 * Test all pages in the range is free(means isolated) or not.252 * 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