函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:We used the xa_state to get the entry, but then we locked the entry and* dropped the xa_lock, so we know the xa_state is stale and must be reset* before use.

函数原型:static void dax_unlock_entry(struct xa_state *xas, void *entry)

返回类型:void

参数:

类型参数名称
struct xa_state *xas
void *entry
283  BUG_ON(dax_is_locked(entry))
284  xas_reset() - Reset an XArray operation state.*@xas: XArray operation state.* Resets the error or walk state of the @xas so future walks of the* array will start from the root. Use this if you have dropped the* xarray lock and want to reuse the xa_state.
285  xas_lock_irq(xas)
286  old等于xas_store() - Store this entry in the XArray
287  xas_unlock_irq(xas)
288  BUG_ON(!dax_is_locked(old))
289  @entry may no longer be the entry at the index in the mapping.* The important information it's conveying is whether the entry at* this index used to be a PMD entry.
调用者
名称描述
dax_unlock_page
dax_iomap_pte_fault
dax_insert_pfn_mkwritedax_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