Function report |
Source Code:mm\zswap.c |
Create Date:2022-07-28 15:23:04 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:zswap_writeback_entry
Proto:static int zswap_writeback_entry(struct zpool *pool, unsigned long handle)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
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 |
865 | If Not entry Then |
871 | spin_unlock( & lock) |
884 | Go to 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) |
922 | If entry == ree functions Then aller must hold the tree lock* remove from the tree and free it, if nobody reference the entry |
924 | spin_unlock( & lock) |
926 | Go to end |
935 | fail : |
938 | spin_unlock( & lock) |
940 | end : |
941 | zpool_unmap_handle(pool, handle) |
942 | Return ret |
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 |