Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\block_dev.c Create Date:2022-07-28 20:14:46
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:dev_write_page() - Start writing a page to a block device*@bdev: The device to write the page to*@sector: The offset on the device to write the page to (need not be aligned)*@page: The page to write*@wbc: The writeback_control for the write

Proto:int bdev_write_page(struct block_device *bdev, sector_t sector, struct page *page, struct writeback_control *wbc)

Type:int

Parameter:

TypeParameterName
struct block_device *bdev
sector_tsector
struct page *page
struct writeback_control *wbc
741  ops = fops
743  If Not rw_page || bdev_get_integrity(bdev) Then Return -EOPNOTSUPP
745  result = blk_queue_enter(bd_queue, 0)
746  If result Then Return result
749  set_page_writeback(page)
750  result = rw_page(bdev, sector + get_start_sect(bdev), page, REQ_OP_WRITE)
752  If result Then
753  d_page_writeback - end writeback against a page*@page: the page
754  Else
755  clean_page_buffers(page)
756  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.
758  blk_queue_exit(bd_queue)
759  Return result
Caller
NameDescribe
__mpage_writepage
__swap_writepage