Function report |
Source Code:mm\memory-failure.c |
Create Date:2022-07-28 16:19:54 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__soft_offline_page
Proto:static int __soft_offline_page(struct page *page, int flags)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct page * | page | |
| int | flags |
| 1731 | pfn = page_to_pfn(page) |
| 1741 | If PageHWPoison(page) Then |
| 1743 | put_hwpoison_page(page) |
| 1745 | Return -EBUSY |
| 1751 | ret = Safely invalidate one page from its pagecache mapping.* It only drops clean, unused pages. The page must be locked.* Returns 1 if the page is successfully invalidated, otherwise 0. |
| 1757 | If ret == 1 Then |
| 1772 | Else ret = isolate_movable_page(page, Isolate unevictable pages ) |
| 1778 | put_hwpoison_page(page) |
| 1779 | If Not ret Then |
| 1792 | If ret Then |
| 1796 | pr_info("soft offline: %#lx: migration failed %d, type %lx (%pGp)\n", pfn, ret, Atomic flags, some possibly * updated asynchronously , & Atomic flags, some possibly * updated asynchronously ) |
| 1801 | Else |
| 1802 | pr_info("soft offline: %#lx: isolation failed: %d, page count %d, type %lx (%pGp)\n", pfn, ret, page_count(page), Atomic flags, some possibly * updated asynchronously , & Atomic flags, some possibly * updated asynchronously ) |
| 1805 | Return ret |
| Name | Describe |
|---|---|
| soft_offline_in_use_page |
| 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 |