Function report |
Source Code:fs\dax.c |
Create Date:2022-07-28 20:23:12 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Find page cache entry at given index. If it is a DAX entry, return it* with the entry locked. If the page cache doesn't contain an entry at* that index, add a locked empty entry.* When requesting an entry with size DAX_PMD, grab_mapping_entry() will
Proto:static void *grab_mapping_entry(struct xa_state *xas, struct address_space *mapping, unsigned int order)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct xa_state * | xas | |
| struct address_space * | mapping | |
| unsigned int | order |
| 480 | bool pmd_downgrade = false |
| 483 | retry : |
| 484 | xas_lock_irq(xas) |
| 487 | If entry Then |
| 488 | If rue if the entry that was found is of a smaller order than the entry* we were looking for Then Go to fallback |
| 492 | Go to out_unlock |
| 495 | If order == 0 Then |
| 496 | If dax_is_pmd_entry(entry) && (dax_is_zero_entry(entry) || dax_is_empty_entry(entry)) Then |
| 499 | pmd_downgrade = true |
| 504 | If pmd_downgrade Then |
| 516 | If dax_is_zero_entry(entry) Then |
| 517 | xas_unlock_irq(xas) |
| 522 | xas_lock_irq(xas) |
| 525 | dax_disassociate_entry(entry, mapping, false) |
| 528 | nrexceptional-- |
| 529 | entry = NULL |
| 533 | If entry Then |
| 535 | Else |
| 540 | entry = dax_make_entry(a default pfn to pfn_t conversion assumes that @pfn is pfn_valid() , flags) |
| 542 | If xas_error() - Return an errno stored in the xa_state.*@xas: XArray operation state.* Return: 0 if no error has been noted. A negative errno if one has. Then Go to out_unlock |
| 544 | nrexceptional++ |
| 547 | out_unlock : |
| 548 | xas_unlock_irq(xas) |
| 555 | Return entry |
| 556 | fallback : |
| 557 | xas_unlock_irq(xas) |
| Name | Describe |
|---|---|
| dax_iomap_pte_fault |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |