函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page-writeback.c Create Date:2022-07-27 15:34:50
Last Modify:2022-05-23 13:25:58 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:For address_spaces which do not use buffers. Just tag the page as dirty in* the xarray.* This is also used when a single buffer is being dirtied: we want to set the* page dirty in that case, but not all the buffers. This is a "bottom-up"

函数原型:int __set_page_dirty_nobuffers(struct page *page)

返回类型:int

参数:

类型参数名称
struct page *page
2467  lock_page_memcg(page)
2468  如果非TestSetPageDirty(page)则
2469  mapping等于page_mapping(page)
2472  如果非mapping
2474  返回:1
2477  xa_lock_irqsave( & i_pages, flags)
2478  BUG_ON(page_mapping(page) != mapping)
2479  WARN_ON_ONCE(!Private page markings that may be used by the filesystem that owns the page* for its own purposes.* - PG_private and PG_private_2 cause releasepage() and co to be invoked && !PageUptodate(page))
2480  Helper function for set_page_dirty family.* Caller must hold lock_page_memcg().* NOTE: This relies on being atomic wrt interrupts.
2481  __xa_set_mark() - Set this mark on this entry while locked.*@xa: XArray.*@index: Index of entry.*@mark: Mark number.* Attempting to set a mark on a %NULL entry does not succeed.* Context: Any context. Expects xa_lock to be held on entry.
2483  xa_unlock_irqrestore( & i_pages, flags)
2484  unlock_page_memcg(page)
2486  如果host
2490  返回:1
2492  unlock_page_memcg(page)
2493  返回:0
调用者
名称描述
redirty_page_for_writepageWhen a writepage implementation decides that it doesn't want to write this* page for some reason, it should redirty the locked page via* redirty_page_for_writepage() and it should then unlock the page and return 0