函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\migrate.c Create Date:2022-07-27 17:32:58
Last Modify:2022-05-20 09:53:13 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Writeback a page to clean the dirty state

函数原型:static int writeout(struct address_space *mapping, struct page *page)

返回类型:int

参数:

类型参数名称
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  如果非writepage则返回:负EINVAL
864  如果非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则返回:负EAGAIN
876  Get rid of all migration entries and replace them by* references to the indicated page.
878  rc等于writepage(page, & wbc)
880  如果rc不等于AOP_WRITEPAGE_ACTIVATElock_page may only be called if we have the page's inode pinned.
884  返回:如果rc小于0则负EIO否则负EAGAIN
调用者
名称描述
fallback_migrate_pageDefault handling if a filesystem does not provide a migration function.