函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:end_swap_bio_read

函数原型:static void end_swap_bio_read(struct bio *bio)

返回类型:void

参数:

类型参数名称
struct bio *bio
123  page等于bio_first_page_all(bio)
124  waiter等于bi_private
126  如果bi_status
127  SetPageError(page)
128  ClearPageUptodate(page)
129  打印警报信息("Read-error on swap-device (%u:%u:%llu)\n", MAJOR(bio_dev(bio)), MINOR(bio_dev(bio)), (unsignedlonglong) device address in 512 byte sectors )
132  转到:out
135  SetPageUptodate(page)
136  swap_slot_free_notify(page)
137  out :
138  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.
139  WRITE_ONCE(bi_private, NULL)
140  bio_put(bio)
141  如果waiter
142  blk_wake_io_task(waiter)
143  put_task_struct(waiter)