Function report |
Source Code:fs\dax.c |
Create Date:2022-07-28 20:23:14 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:dax_writeback_one
Proto:static int dax_writeback_one(struct xa_state *xas, struct dax_device *dax_dev, struct address_space *mapping, void *entry)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct xa_state * | xas | |
| struct dax_device * | dax_dev | |
| struct address_space * | mapping | |
| void * | entry |
| 853 | ret = 0 |
| 859 | If WARN_ON(!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 Return -EIO |
| 875 | If dax_to_pfn(old_entry) != dax_to_pfn(entry) Then Go to put_unlocked |
| 877 | If WARN_ON_ONCE(dax_is_empty_entry(entry) || dax_is_zero_entry(entry)) Then |
| 880 | Go to put_unlocked |
| 899 | xas_unlock_irq(xas) |
| 908 | pfn = dax_to_pfn(entry) |
| 909 | count = 1UL << dax_entry_order(entry) |
| 913 | dax_flush(dax_dev, page_address(pfn_to_page(pfn)), count * PAGE_SIZE) |
| 921 | xas_lock_irq(xas) |
| 926 | trace_dax_writeback_one(host, index, count) |
| 927 | Return ret |
| 929 | put_unlocked : |
| 930 | put_unlocked_entry(xas, entry) |
| 931 | Return ret |
| Name | Describe |
|---|---|
| dax_writeback_mapping_range | Flush the mapping to the persistent domain within the byte range of [start,* end]. This is required by data integrity operations to ensure file data is* on persistent storage prior to completion of the operation. |
| 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 |