Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\dax.c Create Date:2022-07-28 20:23:11
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:static void dax_unlock_entry(struct xa_state *xas, void *entry)

Type:void

Parameter:

TypeParameterName
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.
Caller
NameDescribe
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