函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\migrate.c Create Date:2022-07-27 17:33:00
Last Modify:2022-05-20 09:53:13 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Default handling if a filesystem does not provide a migration function.

函数原型:static int fallback_migrate_page(struct address_space *mapping, struct page *newpage, struct page *page, enum migrate_mode mode)

返回类型:int

参数:

类型参数名称
struct address_space *mapping
struct page *newpage
struct page *page
enum migrate_modemode
893  如果PageDirty(page)则
896  :mode恒等于MIGRATE_SYNC
897  :mode恒等于MIGRATE_SYNC_NO_COPY
898  退出
899  默认
900  返回:负EBUSY
902  返回:Writeback a page to clean the dirty state
909  如果页面私有占用且非ry_to_release_page() - release old fs-specific metadata on a page*@page: the page which the kernel is trying to free*@gfp_mask: memory allocation flags (and I/O mode)* The address_space is to try to release any data against the page则返回:如果mode恒等于MIGRATE_SYNC则负EAGAIN否则负EBUSY
913  返回:Common logic to directly migrate a single LRU page suitable for* pages that do not use PagePrivate/PagePrivate2.* Pages are locked upon entry and exit.
调用者
名称描述
move_to_new_pageMove a page to a newly allocated page* The page is locked and all ptes have been successfully removed.* The new page will have replaced the old page if this function* is successful.* Return value:* < 0 - error code* MIGRATEPAGE_SUCCESS - success