Lines Matching refs:octx
259 void simple_offset_init(struct offset_ctx *octx) in simple_offset_init() argument
261 xa_init_flags(&octx->xa, XA_FLAGS_ALLOC1); in simple_offset_init()
262 lockdep_set_class(&octx->xa.xa_lock, &simple_offset_xa_lock); in simple_offset_init()
265 octx->next_offset = 2; in simple_offset_init()
276 int simple_offset_add(struct offset_ctx *octx, struct dentry *dentry) in simple_offset_add() argument
285 ret = xa_alloc_cyclic(&octx->xa, &offset, dentry, limit, in simple_offset_add()
286 &octx->next_offset, GFP_KERNEL); in simple_offset_add()
300 void simple_offset_remove(struct offset_ctx *octx, struct dentry *dentry) in simple_offset_remove() argument
308 xa_erase(&octx->xa, offset); in simple_offset_remove()
369 void simple_offset_destroy(struct offset_ctx *octx) in simple_offset_destroy() argument
371 xa_destroy(&octx->xa); in simple_offset_destroy()