Function report |
Source Code:mm\page_io.c |
Create Date:2022-07-28 15:13:47 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__swap_writepage
Proto:int __swap_writepage(struct page *page, struct writeback_control *wbc, bio_end_io_t end_write_func)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct page * | page | |
struct writeback_control * | wbc | |
bio_end_io_t | end_write_func |
283 | sis = page_swap_info(page) |
285 | VM_BUG_ON_PAGE(!PageSwapCache(page), page) |
286 | If SWP_USED etc: see above & SWP_FS Then |
288 | swap_file = seldom referenced |
297 | iov_iter_bvec( & from, WRITE, & bv, 1, PAGE_SIZE) |
298 | init_sync_kiocb( & kiocb, swap_file) |
301 | set_page_writeback(page) |
305 | Disable counters |
306 | ret = 0 |
307 | Else |
318 | Dirty a page |
320 | pr_err_ratelimited("Write error on dio swapfile (%llu)\n", page_file_offset(page)) |
324 | Return ret |
328 | If Not ret Then |
330 | Return 0 |
333 | ret = 0 |
334 | bio = get_swap_bio(GFP_NOIO, page, end_write_func) |
335 | If (bio == NULL) Then |
336 | Dirty a page |
339 | Go to out |
341 | bottom bits req flags, * top bits REQ_OP. Use * accessors. = REQ_OP_WRITE | REQ_SWAP | wbc_to_write_flags(wbc) |
344 | set_page_writeback(page) |
346 | submit_bio(bio) |
347 | out : |
348 | Return ret |
Name | Describe |
---|---|
swap_writepage | We may have stale swap cache pages in memory: notice* them here and get rid of the unnecessary final write. |
zswap_writeback_entry |
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 |