Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\xarray.h Create Date:2022-07-28 05:42:18
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:xas_set_order() - Set up XArray operation state for a multislot entry.*@xas: XArray operation state.*@index: Target of the operation.*@order: Entry occupies 2^@order indices.

Proto:static inline void xas_set_order(struct xa_state *xas, unsigned long index, unsigned int order)

Type:void

Parameter:

TypeParameterName
struct xa_state *xas
unsigned longindex
unsigned intorder
1556  xa_index = If order < BITS_PER_LONG Then index >> order << order Else 0
1557  xa_shift = order - order % The xarray is constructed out of a set of 'chunks' of pointers
1558  xa_sibs = (1 << order % The xarray is constructed out of a set of 'chunks' of pointers ) - 1
1559  xa_node = XAS_RESTART
Caller
NameDescribe
xa_store_rangexa_store_range() - Store this entry at a range of indices in the XArray
page_cache_deleteLock ordering:* ->i_mmap_rwsem (truncate_pagecache)* ->private_lock (__free_pte->__set_page_dirty_buffers)* ->swap_lock (exclusive_swap_page, others)* ->i_pages lock* ->i_mutex* ->i_mmap_rwsem (truncate->unmap_mapping_range)* ->mmap_sem* ->i_mmap_rwsem