Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\migrate.c Create Date:2022-07-28 15:58:52
Last Modify:2022-05-20 09:53:13 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Writeback a page to clean the dirty state

Proto:static int writeout(struct address_space *mapping, struct page *page)

Type:int

Parameter:

TypeParameterName
struct address_space *mapping
struct page *page
851  struct writeback_control wbc = {sync_mode = WB_SYNC_NONE, Write this many pages, and decrementthis for each page written = 1, For a_ops->writepages(): if start or end are non-zero then this is* a hint that the filesystem need only write out the pages inside that* byterange. The byte at `end' is included in the writeout request. = 0, range_end = LLONG_MAX, Invoked from the page allocator = 1}
860  If Not writepage Then Return -EINVAL
864  If Not Clear a page's dirty flag, while caring for dirty memory accounting.* Returns true if the page was previously dirty.* This is for preparing to put the page under writeout. We leave the page* tagged as dirty in the xarray so that a concurrent write-for-sync Then Return -EAGAIN
876  Get rid of all migration entries and replace them by* references to the indicated page.
878  rc = writepage(page, & wbc)
880  If rc != AOP_WRITEPAGE_ACTIVATE Then lock_page may only be called if we have the page's inode pinned.
884  Return If rc < 0 Then -EIO Else -EAGAIN
Caller
NameDescribe
fallback_migrate_pageDefault handling if a filesystem does not provide a migration function.