Home
last modified time | relevance | path

Searched refs:kref (Results 1 – 25 of 38) sorted by relevance

12

/fs/
Deventfd.c26 struct kref kref; member
75 static void eventfd_free(struct kref *kref) in eventfd_free() argument
77 struct eventfd_ctx *ctx = container_of(kref, struct eventfd_ctx, kref); in eventfd_free()
90 kref_get(&ctx->kref); in eventfd_ctx_get()
104 kref_put(&ctx->kref, eventfd_free); in eventfd_ctx_put()
413 kref_init(&ctx->kref); in eventfd_file_create()
/fs/configfs/
Ditem.c44 static void config_item_release(struct kref *kref);
159 static void config_item_release(struct kref *kref) in config_item_release() argument
161 config_item_cleanup(container_of(kref, struct config_item, ci_kref)); in config_item_release()
/fs/btrfs/
Dreada.c90 struct kref refcnt;
99 static void reada_control_release(struct kref *kref);
100 static void reada_zone_release(struct kref *kref);
534 static void reada_zone_release(struct kref *kref) in reada_zone_release() argument
536 struct reada_zone *zone = container_of(kref, struct reada_zone, refcnt); in reada_zone_release()
544 static void reada_control_release(struct kref *kref) in reada_control_release() argument
546 struct reada_control *rc = container_of(kref, struct reada_control, in reada_control_release()
/fs/nfs/
Ddirect.c70 struct kref kref; /* release manager */ member
169 kref_init(&dreq->kref); in nfs_direct_req_alloc()
170 kref_get(&dreq->kref); in nfs_direct_req_alloc()
179 static void nfs_direct_req_free(struct kref *kref) in nfs_direct_req_free() argument
181 struct nfs_direct_req *dreq = container_of(kref, struct nfs_direct_req, kref); in nfs_direct_req_free()
192 kref_put(&dreq->kref, nfs_direct_req_free); in nfs_direct_req_release()
Dpagelist.c247 static void nfs_free_request(struct kref *kref) in nfs_free_request() argument
249 struct nfs_page *req = container_of(kref, struct nfs_page, wb_kref); in nfs_free_request()
/fs/ceph/
Dmds_client.h236 struct kref r_kref;
360 extern void ceph_mdsc_release_request(struct kref *kref);
/fs/ocfs2/cluster/
Dtcp_internal.h131 struct kref sc_kref;
202 struct kref nh_kref;
Dtcp.c391 static void sc_kref_release(struct kref *kref) in sc_kref_release() argument
393 struct o2net_sock_container *sc = container_of(kref, in sc_kref_release()
793 static void o2net_handler_kref_release(struct kref *kref) in o2net_handler_kref_release() argument
796 nmh = container_of(kref, struct o2net_msg_handler, nh_kref); in o2net_handler_kref_release()
/fs/ocfs2/dlm/
Ddlmlock.c65 static void dlm_lock_release(struct kref *kref);
356 static void dlm_lock_release(struct kref *kref) in dlm_lock_release() argument
360 lock = container_of(kref, struct dlm_lock, lock_refs); in dlm_lock_release()
Ddlmdebug.h33 struct kref debug_refcnt;
Ddlmcommon.h66 struct kref mle_refs;
164 struct kref dlm_refs;
298 struct kref refs;
363 struct kref lock_refs;
Ddlmdebug.c354 static void dlm_debug_free(struct kref *kref) in dlm_debug_free() argument
358 dc = container_of(kref, struct dlm_debug_ctxt, debug_refcnt); in dlm_debug_free()
Ddlmmaster.c89 static void dlm_mle_release(struct kref *kref);
424 static void dlm_mle_release(struct kref *kref) in dlm_mle_release() argument
429 mle = container_of(kref, struct dlm_master_list_entry, mle_refs); in dlm_mle_release()
485 static void dlm_lockres_release(struct kref *kref) in dlm_lockres_release() argument
490 res = container_of(kref, struct dlm_lock_resource, refs); in dlm_lockres_release()
/fs/exofs/
Dore.c339 static void _last_io(struct kref *kref) in _last_io() argument
342 kref, struct ore_io_state, kref); in _last_io()
351 kref_put(&ios->kref, _last_io); in _done_io()
378 kref_init(&ios->kref); in ore_io_execute()
385 kref_get(&ios->kref); in ore_io_execute()
389 kref_put(&ios->kref, _last_io); in ore_io_execute()
Dsys.c125 (int)atomic_read(&k_name->kref.refcount)); in exofs_sysfs_dbg_print()
/fs/dlm/
Ddlm_internal.h226 struct kref lkb_ref;
287 struct kref res_ref;
Dlock.c93 static void toss_rsb(struct kref *kref);
1125 static void toss_rsb(struct kref *kref) in toss_rsb() argument
1127 struct dlm_rsb *r = container_of(kref, struct dlm_rsb, res_ref); in toss_rsb()
1151 static void kill_rsb(struct kref *kref) in kill_rsb() argument
1153 struct dlm_rsb *r = container_of(kref, struct dlm_rsb, res_ref); in kill_rsb()
1233 static void kill_lkb(struct kref *kref) in kill_lkb() argument
1235 struct dlm_lkb *lkb = container_of(kref, struct dlm_lkb, lkb_ref); in kill_lkb()
/fs/ocfs2/
Drefcounttree.h24 struct kref rf_getcnt;
/fs/lockd/
Dsvclock.c284 static void nlmsvc_free_block(struct kref *kref) in nlmsvc_free_block() argument
286 struct nlm_block *block = container_of(kref, struct nlm_block, b_count); in nlmsvc_free_block()
/fs/nfs/blocklayout/
Dblocklayout.h87 struct kref be_refcnt;
Dextents.c430 destroy_extent(struct kref *kref) in destroy_extent() argument
434 be = container_of(kref, struct pnfs_block_extent, be_refcnt); in destroy_extent()
Dblocklayout.c93 struct kref refcnt;
117 static void destroy_parallel(struct kref *kref) in destroy_parallel() argument
119 struct parallel_io *p = container_of(kref, struct parallel_io, refcnt); in destroy_parallel()
/fs/sdcardfs/
Dsdcardfs.h185 struct kref refcount;
384 extern void data_release(struct kref *ref);
Dsuper.c38 void data_release(struct kref *ref) in data_release()
/fs/cifs/
Dcifsproto.h488 void cifs_readdata_release(struct kref *refcount);
496 void cifs_writedata_release(struct kref *refcount);

12