函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__filemap_fdatawait_range

函数原型:static void __filemap_fdatawait_range(struct address_space *mapping, loff_t start_byte, loff_t end_byte)

返回类型:void

参数:

类型参数名称
struct address_space *mapping
loff_tstart_byte
loff_tend_byte
506  index等于start_byte右移PAGE_SHIFT determines the page size
507  end等于end_byte右移PAGE_SHIFT determines the page size
511  如果end_byte小于start_byte则返回
514  pagevec_init( & pvec)
515 index小于等于end循环
518  nr_pages等于pagevec_lookup_range_tag( & pvec, mapping, & index, end, PAGECACHE_TAG_WRITEBACK)
520  如果非nr_pages退出
523 i小于nr_pages循环
524  page等于pages[i]
529  pagevec_release( & pvec)
530  cond_resched()
调用者
名称描述
filemap_fdatawait_rangelemap_fdatawait_range - wait for writeback to complete*@mapping: address space structure to wait for*@start_byte: offset in bytes where the range starts*@end_byte: offset in bytes where the range ends (inclusive)* Walk the list of under-writeback pages of
filemap_fdatawait_range_keep_errorslemap_fdatawait_range_keep_errors - wait for writeback to complete*@mapping: address space structure to wait for*@start_byte: offset in bytes where the range starts*@end_byte: offset in bytes where the range ends (inclusive)* Walk the list of
file_fdatawait_rangele_fdatawait_range - wait for writeback to complete*@file: file pointing to address space structure to wait for*@start_byte: offset in bytes where the range starts*@end_byte: offset in bytes where the range ends (inclusive)* Walk the list of
filemap_fdatawait_keep_errorslemap_fdatawait_keep_errors - wait for writeback without clearing errors*@mapping: address space structure to wait for* Walk the list of under-writeback pages of the given address space* and wait for all of them. Unlike filemap_fdatawait(), this function
file_write_and_wait_rangele_write_and_wait_range - write out & wait on a file range*@file: file pointing to address_space with pages*@lstart: offset in bytes where the range starts*@lend: offset in bytes where the range ends (inclusive)