Home
last modified time | relevance | path

Searched refs:kref (Results 1 – 25 of 40) 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()
407 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.c89 struct kref refcnt;
98 static void reada_control_release(struct kref *kref);
99 static void reada_zone_release(struct kref *kref);
540 static void reada_zone_release(struct kref *kref) in reada_zone_release() argument
542 struct reada_zone *zone = container_of(kref, struct reada_zone, refcnt); in reada_zone_release()
550 static void reada_control_release(struct kref *kref) in reada_control_release() argument
552 struct reada_control *rc = container_of(kref, struct reada_control, in reada_control_release()
/fs/nfs/
Ddirect.c74 struct kref kref; /* release manager */ member
311 kref_init(&dreq->kref); in nfs_direct_req_alloc()
312 kref_get(&dreq->kref); in nfs_direct_req_alloc()
323 static void nfs_direct_req_free(struct kref *kref) in nfs_direct_req_free() argument
325 struct nfs_direct_req *dreq = container_of(kref, struct nfs_direct_req, kref); in nfs_direct_req_free()
337 kref_put(&dreq->kref, nfs_direct_req_free); in nfs_direct_req_release()
Dpagelist.c316 nfs_page_group_destroy(struct kref *kref) in nfs_page_group_destroy() argument
318 struct nfs_page *req = container_of(kref, struct nfs_page, wb_kref); in nfs_page_group_destroy()
/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()
797 static void o2net_handler_kref_release(struct kref *kref) in o2net_handler_kref_release() argument
800 nmh = container_of(kref, struct o2net_msg_handler, nh_kref); in o2net_handler_kref_release()
/fs/ceph/
Dmds_client.h249 struct kref r_kref;
395 extern void ceph_mdsc_release_request(struct kref *kref);
/fs/ocfs2/dlm/
Ddlmlock.c65 static void dlm_lock_release(struct kref *kref);
352 static void dlm_lock_release(struct kref *kref) in dlm_lock_release() argument
356 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;
163 struct kref dlm_refs;
297 struct kref refs;
363 struct kref lock_refs;
Ddlmdebug.c350 static void dlm_debug_free(struct kref *kref) in dlm_debug_free() argument
354 dc = container_of(kref, struct dlm_debug_ctxt, debug_refcnt); in dlm_debug_free()
Ddlmmaster.c89 static void dlm_mle_release(struct kref *kref);
421 static void dlm_mle_release(struct kref *kref) in dlm_mle_release() argument
426 mle = container_of(kref, struct dlm_master_list_entry, mle_refs); in dlm_mle_release()
486 static void dlm_lockres_release(struct kref *kref) in dlm_lockres_release() argument
491 res = container_of(kref, struct dlm_lock_resource, refs); in dlm_lockres_release()
/fs/exofs/
Dore.c345 static void _last_io(struct kref *kref) in _last_io() argument
348 kref, struct ore_io_state, kref); in _last_io()
357 kref_put(&ios->kref, _last_io); in _done_io()
384 kref_init(&ios->kref); in ore_io_execute()
391 kref_get(&ios->kref); in ore_io_execute()
395 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/cifs/
Dcifsproto.h500 void cifs_readdata_release(struct kref *refcount);
505 void (*release)(struct kref *kref));
509 void cifs_writedata_release(struct kref *refcount);
Dsmb2proto.h138 void (*release)(struct kref *kref));
Dcifsglob.h329 void (*release)(struct kref *));
1081 struct kref refcount;
1107 struct kref refcount;
/fs/nfs/blocklayout/
Dblocklayout.c68 struct kref refcnt;
90 static void destroy_parallel(struct kref *kref) in destroy_parallel() argument
92 struct parallel_io *p = container_of(kref, struct parallel_io, refcnt); in destroy_parallel()
/fs/dlm/
Ddlm_internal.h227 struct kref lkb_ref;
288 struct kref res_ref;
Dlock.c93 static void toss_rsb(struct kref *kref);
1126 static void toss_rsb(struct kref *kref) in toss_rsb() argument
1128 struct dlm_rsb *r = container_of(kref, struct dlm_rsb, res_ref); in toss_rsb()
1152 static void kill_rsb(struct kref *kref) in kill_rsb() argument
1154 struct dlm_rsb *r = container_of(kref, struct dlm_rsb, res_ref); in kill_rsb()
1235 static void kill_lkb(struct kref *kref) in kill_lkb() argument
1237 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.c283 static void nlmsvc_free_block(struct kref *kref) in nlmsvc_free_block() argument
285 struct nlm_block *block = container_of(kref, struct nlm_block, b_count); in nlmsvc_free_block()
/fs/sdcardfs/
Dsdcardfs.h161 struct kref refcount;
367 extern void data_release(struct kref *ref);
Dsuper.c38 void data_release(struct kref *ref) in data_release()

12