Home
last modified time | relevance | path

Searched refs:refcount (Results 1 – 25 of 49) sorted by relevance

12

/fs/vboxsf/
Dfile.c19 struct kref refcount; member
40 kref_init(&sf_handle->refcount); in vboxsf_create_sf_handle()
121 static void vboxsf_handle_release(struct kref *refcount) in vboxsf_handle_release() argument
124 container_of(refcount, struct vboxsf_handle, refcount); in vboxsf_handle_release()
138 kref_put(&sf_handle->refcount, vboxsf_handle_release); in vboxsf_release_sf_handle()
261 kref_get(&h->refcount); in vboxsf_get_write_handle()
294 kref_put(&sf_handle->refcount, vboxsf_handle_release); in vboxsf_writepage()
/fs/smb/client/
Dcached_dir.c37 kref_get(&cfid->refcount); in find_or_create_cached_dir()
59 kref_get(&cfid->refcount); in find_or_create_cached_dir()
325 kref_put(&cfid->refcount, smb2_close_cached_fid); in open_cached_dir()
357 kref_get(&cfid->refcount); in open_cached_dir_by_dentry()
371 refcount); in smb2_close_cached_fid()
407 kref_put(&cfid->refcount, smb2_close_cached_fid); in drop_cached_dir_by_name()
416 kref_put(&cfid->refcount, smb2_close_cached_fid); in close_cached_dir()
463 kref_get(&cfid->refcount); in invalidate_all_cached_dirs()
478 kref_put(&cfid->refcount, smb2_close_cached_fid); in invalidate_all_cached_dirs()
481 kref_put(&cfid->refcount, smb2_close_cached_fid); in invalidate_all_cached_dirs()
[all …]
Dfile.c2287 cifs_writedata_release(struct kref *refcount) in cifs_writedata_release() argument
2289 struct cifs_writedata *wdata = container_of(refcount, in cifs_writedata_release()
2290 struct cifs_writedata, refcount); in cifs_writedata_release()
2380 kref_put(&wdata2->refcount, cifs_writedata_release); in cifs_writev_requeue()
2401 kref_put(&wdata->refcount, cifs_writedata_release); in cifs_writev_requeue()
2434 kref_put(&wdata->refcount, cifs_writedata_release); in cifs_writev_complete()
2460 kref_init(&wdata->refcount); in cifs_writedata_direct_alloc()
2722 kref_put(&wdata->refcount, cifs_writedata_release); in cifs_writepages()
2732 kref_put(&wdata->refcount, cifs_writedata_release); in cifs_writepages()
2770 kref_put(&wdata->refcount, cifs_writedata_release); in cifs_writepages()
[all …]
Ddfs_cache.c60 struct kref refcount; member
118 struct mount_group *mg = container_of(kref, struct mount_group, refcount); in mount_group_release()
148 kref_init(&mg->refcount); in __get_mount_group_locked()
163 kref_get(&mg->refcount); in get_mount_group()
1209 kref_put(&mg->refcount, mount_group_release); in dfs_cache_add_refsrv_session()
1233 kref_put(&mg->refcount, mount_group_release); in dfs_cache_put_refsrv_sessions()
1495 kref_get(&mg->refcount); in dfs_cache_remount_fs()
1514 kref_put(&mg->refcount, mount_group_release); in dfs_cache_remount_fs()
1656 kref_get(&mg->refcount); in refresh_cache_worker()
1684 kref_put(&mg->refcount, mount_group_release); in refresh_cache_worker()
Dcifsproto.h82 void __release_mid(struct kref *refcount);
572 void cifs_readdata_release(struct kref *refcount);
583 void cifs_writedata_release(struct kref *refcount);
598 void cifs_aio_ctx_release(struct kref *refcount);
699 kref_put(&mid->refcount, __release_mid); in release_mid()
Dcifsglob.h958 struct kref refcount; member
974 refcount); in release_iface()
1387 struct kref refcount; member
1410 struct kref refcount; member
1443 struct kref refcount; member
1631 struct kref refcount; member
Dcached_dir.h42 struct kref refcount; member
Dmisc.c108 kref_put(&iface->refcount, release_iface); in sesInfoFree()
966 kref_init(&ctx->refcount); in cifs_aio_ctx_alloc()
971 cifs_aio_ctx_release(struct kref *refcount) in cifs_aio_ctx_release() argument
973 struct cifs_aio_ctx *ctx = container_of(refcount, in cifs_aio_ctx_release()
974 struct cifs_aio_ctx, refcount); in cifs_aio_ctx_release()
/fs/smb/server/mgmt/
Dtree_connect.c78 atomic_set(&tree_conn->refcount, 1); in ksmbd_tree_conn_connect()
106 if (!atomic_dec_return(&tcon->refcount) && in ksmbd_tree_connect_put()
120 if (!atomic_dec_and_test(&tree_conn->refcount)) in ksmbd_tree_conn_disconnect()
122 atomic_read(&tree_conn->refcount) == 0); in ksmbd_tree_conn_disconnect()
141 else if (!atomic_inc_not_zero(&tcon->refcount)) in ksmbd_tree_conn_lookup()
Dshare_config.h24 atomic_t refcount; member
66 if (!atomic_dec_and_test(&share->refcount)) in ksmbd_share_config_put()
Dshare_config.c71 if (!atomic_inc_not_zero(&share->refcount)) in __get_share_config()
156 atomic_set(&share->refcount, 1); in share_config_request()
Dtree_connect.h34 atomic_t refcount; member
/fs/squashfs/
Dcache.c90 if (cache->entry[i].refcount == 0) in squashfs_cache_get()
104 entry->refcount = 1; in squashfs_cache_get()
141 if (entry->refcount == 0) in squashfs_cache_get()
143 entry->refcount++; in squashfs_cache_get()
161 cache->name, i, entry->block, entry->refcount, entry->error); in squashfs_cache_get()
178 entry->refcount--; in squashfs_cache_put()
179 if (entry->refcount == 0) { in squashfs_cache_put()
Dsquashfs_fs_sb.h32 int refcount; member
/fs/erofs/
Dutils.c45 if (atomic_cmpxchg(&grp->refcount, o, o + 1) != o) in erofs_workgroup_get()
87 atomic_inc(&grp->refcount); in erofs_insert_workgroup()
102 atomic_dec(&grp->refcount); in erofs_insert_workgroup()
117 int count = atomic_dec_return(&grp->refcount); in erofs_workgroup_put()
Dinternal.h210 atomic_t refcount; member
218 if (val != atomic_cmpxchg(&grp->refcount, val, EROFS_LOCKED_MAGIC)) { in erofs_workgroup_try_to_freeze()
233 atomic_set(&grp->refcount, orig_val); in erofs_workgroup_unfreeze()
239 return atomic_cond_read_relaxed(&grp->refcount, in erofs_wait_on_workgroup_freezed()
/fs/xfs/scrub/
Drefcount.c80 xfs_nlink_t refcount; member
112 if (refchk->refcount == 1 && rec->rm_owner != XFS_RMAP_OWN_COW) { in xchk_refcountbt_rmap_check()
161 target_nr = refchk->refcount - refchk->seen; in xchk_refcountbt_process_rmap_fragments()
255 refchk->seen = refchk->refcount; in xchk_refcountbt_process_rmap_fragments()
278 .refcount = irec->rc_refcount, in xchk_refcountbt_xref_rmap()
/fs/
Ddirect-io.c135 unsigned long refcount; /* direct_io_worker() and bios */ member
341 remaining = --dio->refcount; in dio_bio_end_aio()
384 if (--dio->refcount == 1 && dio->waiter) in dio_bio_end_io()
426 dio->refcount++; in dio_bio_submit()
472 while (dio->refcount > 1 && dio->bio_list == NULL) { in dio_await_one()
1092 ret2 = --dio->refcount; in drop_refcount()
1249 dio->refcount = 1; in __blockdev_direct_IO()
/fs/ocfs2/
Docfs2_trace.h905 unsigned int clusters, unsigned int refcount),
906 TP_ARGS(blkno, index, cpos, clusters, refcount),
912 __field(unsigned int, refcount)
919 __entry->refcount = refcount;
922 __entry->cpos, __entry->clusters, __entry->refcount)
929 unsigned int count, unsigned int refcount), \
930 TP_ARGS(blkno, index, cpos, count, refcount))
936 unsigned int clusters, unsigned int refcount,
939 TP_ARGS(cpos, clusters, refcount,
944 __field(unsigned int, refcount)
[all …]
/fs/smb/server/
Dvfs_cache.c339 if (!atomic_inc_not_zero(&fp->refcount)) in ksmbd_fp_get()
397 if (!atomic_dec_and_test(&fp->refcount)) in ksmbd_close_fd()
415 if (!atomic_dec_and_test(&fp->refcount)) in ksmbd_fd_put()
577 atomic_set(&fp->refcount, 1); in ksmbd_open_fd()
633 if (!atomic_dec_and_test(&fp->refcount)) in __close_file_table_ids()
Doplock.c52 atomic_set(&opinfo->refcount, 1); in alloc_opinfo()
144 if (opinfo && !atomic_inc_not_zero(&opinfo->refcount)) in opinfo_get()
162 if (!atomic_inc_not_zero(&opinfo->refcount)) in opinfo_get_list()
168 atomic_dec(&opinfo->refcount); in opinfo_get_list()
199 if (!atomic_dec_and_test(&opinfo->refcount)) in opinfo_put()
419 atomic_dec(&opinfo->refcount); in close_id_del_oplock()
1007 if (!atomic_inc_not_zero(&opinfo->refcount)) in find_same_lease_key()
1116 if (!atomic_inc_not_zero(&opinfo->refcount)) in smb_send_parent_lease_break_noti()
1158 if (!atomic_inc_not_zero(&opinfo->refcount)) in smb_lazy_parent_lease_break_close()
1364 if (!atomic_inc_not_zero(&brk_op->refcount)) in smb_break_all_levII_oplock()
[all …]
/fs/overlayfs/
Dreaddir.c32 long refcount; member
242 WARN_ON(cache->refcount <= 0); in ovl_cache_put()
243 cache->refcount--; in ovl_cache_put()
244 if (!cache->refcount) { in ovl_cache_put()
400 WARN_ON(!cache->refcount); in ovl_cache_get()
401 cache->refcount++; in ovl_cache_get()
410 cache->refcount = 1; in ovl_cache_get()
/fs/xfs/
Dxfs_attr_item.h17 refcount_t refcount; member
Dxfs_attr_item.c59 if (!refcount_inc_not_zero(&nv->refcount)) in xfs_attri_log_nameval_get()
70 if (refcount_dec_and_test(&nv->refcount)) in xfs_attri_log_nameval_put()
105 refcount_set(&nv->refcount, 1); in xfs_attri_log_nameval_alloc()
/fs/nfs/
Ddelegation.h25 refcount_t refcount; member

12