Function report |
Source Code:mm\migrate.c |
Create Date:2022-07-28 15:59:08 |
Last Modify:2022-05-20 09:53:13 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Obtain the lock on page, remove all ptes and migrate the page* to the newly allocated page in newpage.
Proto:static __attribute__((__noinline__)) int unmap_and_move(new_page_t get_new_page, free_page_t put_new_page, unsigned long private, struct page *page, int force, enum migrate_mode mode, enum migrate_reason reason)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
new_page_t | get_new_page | |
free_page_t | put_new_page | |
unsigned long | private | |
struct page * | page | |
int | force | |
enum migrate_mode | mode | |
enum migrate_reason | reason |
1170 | rc = Return values from addresss_space_operations.migratepage():* - negative errno on page migration failure;* - zero on page migration success; |
1176 | If page_count(page) == 1 Then |
1178 | ClearPageActive(page) |
1179 | ClearPageUnevictable(page) |
1182 | If Not PageMovable(page) Then __ClearPageIsolated(page) |
1186 | Go to out |
1189 | newpage = get_new_page(page, private) |
1197 | out : |
1224 | If reason == MR_MEMORY_FAILURE Then |
1233 | Else |
1235 | If Value is more likely to compile time(!__PageMovable(page)) Then |
1237 | Go to put_new |
1241 | If PageMovable(page) Then It should be called on page which is PG_movable |
1243 | Else __ClearPageIsolated(page) |
1248 | put_new : |
1249 | If put_new_page Then put_new_page(newpage, private) |
1255 | Return rc |
Name | Describe |
---|---|
migrate_pages | migrate_pages - migrate the pages specified in a list, to the free pages* supplied as the target for the page migration*@from: The list of pages to be migrated.*@get_new_page: The function used to allocate free pages to be used |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |