函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\dax.c Create Date:2022-07-29 10:56:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:dax_finish_sync_fault - finish synchronous page fault*@vmf: The description of the fault*@pe_size: Size of entry to be inserted*@pfn: PFN to insert* This function ensures that the file range touched by the page fault is* stored persistently on the media

函数原型:vm_fault_t dax_finish_sync_fault(struct vm_fault *vmf, enum page_entry_size pe_size, pfn_t pfn)

返回类型:vm_fault_t

参数:

类型参数名称
struct vm_fault *vmf
enum page_entry_sizepe_size
pfn_tpfn
1721  start等于pgoff左移PAGE_SHIFT determines the page size
1722  order等于pe_order(pe_size)
1723  len等于PAGE_SIZE左移order
1725  err等于vfs_fsync_range - helper to sync a range of data & metadata to disk*@file: file to sync*@start: offset in bytes of the beginning of data range to sync*@end: offset in bytes of the end of data range (inclusive)*@datasync: perform only datasync
1726  如果err则返回:VM_FAULT_SIGBUS
1728  返回:dax_insert_pfn_mkwrite - insert PTE or PMD entry into page tables*@vmf: The description of the fault*@pfn: PFN to insert*@order: Order of entry to insert.* This function inserts a writeable PTE or PMD entry into the page tables* for an mmaped DAX file