函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page_io.c Create Date:2022-07-27 16:44:00
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:We may have stale swap cache pages in memory: notice* them here and get rid of the unnecessary final write.

函数原型:int swap_writepage(struct page *page, struct writeback_control *wbc)

返回类型:int

参数:

类型参数名称
struct page *page
struct writeback_control *wbc
247  ret等于0
249  如果try_to_free_swap(page)则
250  lock_page - unlock a locked page*@page: the page* Unlocks the page and wakes up sleepers in ___wait_on_page_locked().* Also wakes sleepers in wait_on_page_writeback() because the wakeup* mechanism between PageLocked pages and PageWriteback pages is shared.
251  转到:out
253  如果frontswap_store(page)恒等于0则
254  set_page_writeback(page)
255  lock_page - unlock a locked page*@page: the page* Unlocks the page and wakes up sleepers in ___wait_on_page_locked().* Also wakes sleepers in wait_on_page_writeback() because the wakeup* mechanism between PageLocked pages and PageWriteback pages is shared.
256  d_page_writeback - end writeback against a page*@page: the page
257  转到:out
259  ret等于__swap_writepage(page, wbc, end_swap_bio_write)
260  out :
261  返回:ret