函数逻辑报告 |
Source Code:mm\z3fold.c |
Create Date:2022-07-27 18:05:50 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:z3fold_page_migrate
函数原型:static int z3fold_page_migrate(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_mode | mode |
1611 | VM_BUG_ON_PAGE(!PageMovable(page), page) |
1612 | VM_BUG_ON_PAGE(!PageIsolated(page), page) |
1613 | VM_BUG_ON_PAGE(!PageLocked(newpage), newpage) |
1615 | zhdr等于page_address(page) |
1616 | pool等于zhdr_to_pool(zhdr) |
1618 | 如果非Try to lock a z3fold page 则 |
1619 | 返回:负EAGAIN |
1621 | 如果mapped_count不等于0或foreign_handles不等于0则 |
1622 | Unlock a z3fold page |
1623 | 返回:负EBUSY |
1626 | Unlock a z3fold page |
1627 | 返回:负EAGAIN |
1629 | new_zhdr等于page_address(newpage) |
1632 | 私有数据指针等于0 |
1633 | Unlock a z3fold page |
1634 | spin_lock_init( & page_lock) |
1635 | INIT_WORK( & work, compact_page_work) |
1640 | 初始化链表头 |
1641 | new_mapping等于page_mapping(page) |
1642 | __ClearPageMovable(page) |
1646 | Lock a z3fold page |
1647 | 如果first_chunks则encode_handle(new_zhdr, FIRST) |
1649 | 如果last_chunks则encode_handle(new_zhdr, LAST) |
1651 | 如果middle_chunks则encode_handle(new_zhdr, MIDDLE) |
1653 | 设置内存位 |
1655 | 加自旋锁 |
1656 | 添加链表项 |
1657 | 自旋锁解锁 |
1658 | __SetPageMovable(newpage, new_mapping) |
1659 | Unlock a z3fold page |
1665 | 返回:0 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |