函数逻辑报告 |
Source Code:mm\zswap.c |
Create Date:2022-07-27 16:53:39 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:zswap_writeback_entry
函数原型:static int zswap_writeback_entry(struct zpool *pool, unsigned long handle)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct zpool * | pool | |
| unsigned long | handle |
| 852 | struct writeback_control wbc = {sync_mode = WB_SYNC_NONE, } |
| 859 | tree等于zswap_trees[Extract the `type' field from a swp_entry_t. The swp_entry_t is in* arch-independent format] |
| 860 | offset等于Extract the `offset' field from a swp_entry_t. The swp_entry_t is in* arch-independent format |
| 863 | 加自旋锁 |
| 865 | 如果非entry则 |
| 871 | 自旋锁解锁 |
| 884 | 转到:fail |
| 889 | src等于zhdr加sizeof(structzswap_header) |
| 890 | dst等于kmap_atomic(page) |
| 891 | tfm等于get_cpu_ptr(tfm) |
| 892 | ret等于crypto_comp_decompress(tfm, src, the length in bytes of the compressed page data. Needed during, dst, & dlen) |
| 894 | put_cpu_ptr(tfm) |
| 895 | Prevent people trying to call kunmap_atomic() as if it were kunmap()* kunmap_atomic() should get the return value of kmap_atomic, not the page.(dst) |
| 900 | SetPageUptodate(page) |
| 907 | __swap_writepage(page, & wbc, end_swap_bio_write) |
| 911 | 加自旋锁 |
| 922 | 如果entry恒等于ree functions则aller must hold the tree lock* remove from the tree and free it, if nobody reference the entry |
| 924 | 自旋锁解锁 |
| 926 | 转到:end |
| 935 | fail : |
| 936 | 加自旋锁 |
| 938 | 自旋锁解锁 |
| 940 | end : |
| 941 | zpool_unmap_handle(pool, handle) |
| 942 | 返回:ret |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |