Searched refs:xa_reserve (Results 1 – 12 of 12) sorted by relevance
| /linux-6.15/Documentation/translations/zh_CN/core-api/ |
| H A D | xarray.rst | 83 有时你需要确保对xa_store()的后续调用将不需要分配内存。xa_reserve()函数将在指定索引处存储 122 将标记该条目为正在使用中,就像xa_reserve()。要释放一个条目,请使用xa_erase()(或者xa_release(), 135 xa_store(), xa_cmpxchg(), xa_alloc(), xa_reserve()和xa_insert()函数接受一个gfp_t参数,以 179 * xa_reserve()
|
| /linux-6.15/fs/btrfs/ |
| H A D | delayed-ref.c | 1025 if (xa_reserve(&delayed_refs->dirty_extents, index, GFP_NOFS)) { in add_delayed_ref() 1032 ret = xa_reserve(&delayed_refs->head_refs, index, GFP_NOFS); in add_delayed_ref() 1137 ret = xa_reserve(&delayed_refs->head_refs, index, GFP_NOFS); in btrfs_add_delayed_extent_op()
|
| H A D | delayed-inode.c | 146 ret = xa_reserve(&root->delayed_nodes, ino, GFP_NOFS); in btrfs_get_or_create_delayed_node()
|
| H A D | qgroup.c | 2143 if (xa_reserve(&delayed_refs->dirty_extents, index, GFP_NOFS)) { in btrfs_qgroup_trace_extent()
|
| H A D | inode.c | 3853 ret = xa_reserve(&root->inodes, ino, GFP_NOFS); in btrfs_add_inode_to_root() 6334 ret = xa_reserve(&root->inodes, objectid, GFP_NOFS); in btrfs_create_new_inode()
|
| /linux-6.15/lib/ |
| H A D | test_xarray.c | 487 XA_BUG_ON(xa, xa_reserve(xa, 12345678, GFP_KERNEL) != 0); in check_reserve() 494 XA_BUG_ON(xa, xa_reserve(xa, 12345678, GFP_KERNEL) != 0); in check_reserve() 501 XA_BUG_ON(xa, xa_reserve(xa, 12345678, GFP_KERNEL) != 0); in check_reserve() 509 XA_BUG_ON(xa, xa_reserve(xa, 12345678, GFP_KERNEL) != 0); in check_reserve() 518 XA_BUG_ON(xa, xa_reserve(xa, 6, GFP_KERNEL) != 0); in check_reserve() 1964 XA_BUG_ON(xa, xa_reserve(xa, 0, GFP_KERNEL) != 0); in check_align_2()
|
| /linux-6.15/Documentation/core-api/ |
| H A D | xarray.rst | 100 will not need to allocate memory. The xa_reserve() function 156 ``NULL`` will mark the entry as being in use, like xa_reserve(). 174 xa_reserve() and xa_insert() functions take a gfp_t 222 * xa_reserve()
|
| /linux-6.15/include/linux/ |
| H A D | xarray.h | 1080 int xa_reserve(struct xarray *xa, unsigned long index, gfp_t gfp) in xa_reserve() function
|
| /linux-6.15/drivers/iommu/iommufd/ |
| H A D | io_pagetable.c | 1121 rc = xa_reserve(&iopt->domains, iopt->next_domain_id, GFP_KERNEL); in iopt_table_add_domain()
|
| /linux-6.15/drivers/infiniband/core/ |
| H A D | device.c | 948 ret = xa_reserve(&device->compat_devs, rnet->id, GFP_KERNEL); in add_one_compat_dev()
|
| /linux-6.15/drivers/iommu/ |
| H A D | iommu.c | 3767 ret = xa_reserve(&group->pasid_array, IOMMU_NO_PASID, GFP_KERNEL); in iommu_replace_group_handle()
|
| /linux-6.15/virt/kvm/ |
| H A D | kvm_main.c | 2515 r = xa_reserve(&kvm->mem_attr_array, i, GFP_KERNEL_ACCOUNT); in kvm_vm_set_mem_attributes()
|