函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\truncate.c Create Date:2022-07-27 15:38:03
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:do_invalidatepage - invalidate part or all of a page*@page: the page which is affected*@offset: start of the range to invalidate*@length: length of the range to invalidate* do_invalidatepage() is called when all or part of the page has become

函数原型:void do_invalidatepage(struct page *page, unsigned int offset, unsigned int length)

返回类型:void

参数:

类型参数名称
struct page *page
unsigned intoffset
unsigned intlength
155  void( * invalidatepage)(struct page * , unsigned int, unsigned int)
157  invalidatepage等于invalidatepage
159  如果非invalidatepageinvalidatepage等于lock_invalidatepage - invalidate part or all of a buffer-backed page*@page: the page which is affected*@offset: start of the range to invalidate*@length: length of the range to invalidate* block_invalidatepage() is called when all or part of the page has
162  如果invalidatepage则( * invalidatepage)(page, offset, length)
调用者
名称描述
truncate_cleanup_pageIf truncate cannot remove the fs-private metadata from the page, the page* becomes orphaned
truncate_inode_pages_rangeruncate_inode_pages_range - truncate range of pages specified by start & end byte offsets*@mapping: mapping to truncate*@lstart: offset from which to truncate*@lend: offset to which to truncate (inclusive)* Truncate the page cache, removing the pages that
read_cache_pages_invalidate_pagesee if a page needs releasing upon read_cache_pages() failure* - the caller of read_cache_pages() may have set PG_private or PG_fscache* before calling, such as the NFS fs marking pages that are cached locally* on disk, thus we need to give the fs a
block_write_full_pageThe generic ->writepage function for buffer-backed address_spaces