Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__dax_invalidate_entry

Proto:static int __dax_invalidate_entry(struct address_space *mapping, unsigned long index, bool trunc)

Type:int

Parameter:

TypeParameterName
struct address_space *mapping
unsigned longindex
booltrunc
633  XA_STATE() - Declare an XArray operation state.*@name: Name of this operation state (usually xas).*@array: Array to operate on.*@index: Initial index of interest.* Declare and initialise an xa_state on the stack.(xas, & i_pages, index)
634  ret = 0
637  xas_lock_irq( & xas)
638  entry = Look up entry in page cache, wait for it to become unlocked if it* is a DAX entry and return it. The caller must subsequently call* put_unlocked_entry() if it did not lock the entry or dax_unlock_entry()* if it did
639  If Not entry || WARN_ON_ONCE(!xa_is_value() - Determine if an entry is a value.*@entry: XArray entry.* Context: Any context.* Return: True if the entry is a value, false if it is a pointer.) Then Go to out
641  If Not trunc && (xas_get_mark() - Returns the state of this mark.*@xas: XArray operation state.*@mark: Mark number.* Return: true if the mark is set, false if the mark is clear or @xas* is in an error state. || xas_get_mark() - Returns the state of this mark.*@xas: XArray operation state.*@mark: Mark number.* Return: true if the mark is set, false if the mark is clear or @xas* is in an error state.) Then Go to out
645  dax_disassociate_entry(entry, mapping, trunc)
646  xas_store() - Store this entry in the XArray
647  nrexceptional--
648  ret = 1
649  out :
650  put_unlocked_entry( & xas, entry)
651  xas_unlock_irq( & xas)
652  Return ret
Caller
NameDescribe
dax_delete_mapping_entryDelete DAX entry at @index from @mapping. Wait for it* to be unlocked before deleting it.
dax_invalidate_mapping_entry_syncInvalidate DAX entry if it is clean.