Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page_io.c Create Date:2022-07-28 15:13:31
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:end_swap_bio_read

Proto:static void end_swap_bio_read(struct bio *bio)

Type:void

Parameter:

TypeParameterName
struct bio *bio
123  page = bio_first_page_all(bio)
124  waiter = bi_private
126  If bi_status Then
127  SetPageError(page)
128  ClearPageUptodate(page)
129  pr_alert("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  Go to 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  If waiter Then
142  blk_wake_io_task(waiter)
143  put_task_struct(waiter)