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:TODO: for reflink+dax we need a way to associate a single page with* multiple address_space instances at different linear_page_index()* offsets.

Proto:static void dax_associate_entry(void *entry, struct address_space *mapping, struct vm_area_struct *vma, unsigned long address)

Type:void

Parameter:

TypeParameterName
void *entry
struct address_space *mapping
struct vm_area_struct *vma
unsigned longaddress
334  size = dax_entry_size(entry)
335  i = 0
337  If IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_FS_DAX_LIMITED) Then Return
340  index = linear_page_index(vma, address & ~(size - 1))
342  page = pfn_to_page(pfn)
344  WARN_ON_ONCE( See page-flags.h for PAGE_MAPPING_FLAGS )
345  See page-flags.h for PAGE_MAPPING_FLAGS = mapping
346  Our offset within mapping. = index + i++
Caller
NameDescribe
dax_insert_entryBy this point grab_mapping_entry() has ensured that we have a locked entry* of the appropriate size so we don't have to worry about downgrading PMDs to* PTEs