Home
last modified time | relevance | path

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

12

/fs/xfs/scrub/
Drefcount.c78 xfs_nlink_t refcount; member
110 if (refchk->refcount == 1 && rec->rm_owner != XFS_RMAP_OWN_COW) { in xchk_refcountbt_rmap_check()
159 target_nr = refchk->refcount - refchk->seen; in xchk_refcountbt_process_rmap_fragments()
253 refchk->seen = refchk->refcount; in xchk_refcountbt_process_rmap_fragments()
272 xfs_nlink_t refcount) in xchk_refcountbt_xref_rmap() argument
278 .refcount = refcount, in xchk_refcountbt_xref_rmap()
303 if (refcount != refchk.seen) in xchk_refcountbt_xref_rmap()
319 xfs_nlink_t refcount) in xchk_refcountbt_xref() argument
326 xchk_refcountbt_xref_rmap(sc, agbno, len, refcount); in xchk_refcountbt_xref()
340 xfs_nlink_t refcount; in xchk_refcountbt_rec() local
[all …]
/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/ksmbd/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.h171 atomic_t refcount; member
178 if (val != atomic_cmpxchg(&grp->refcount, val, EROFS_LOCKED_MAGIC)) { in erofs_workgroup_try_to_freeze()
193 atomic_set(&grp->refcount, orig_val); in erofs_workgroup_unfreeze()
199 return atomic_cond_read_relaxed(&grp->refcount, in erofs_wait_on_workgroup_freezed()
/fs/cifs/
Dfile.c2457 kref_put(&wdata->refcount, cifs_writedata_release); in cifs_writepages()
2467 kref_put(&wdata->refcount, cifs_writedata_release); in cifs_writepages()
2505 kref_put(&wdata->refcount, cifs_writedata_release); in cifs_writepages()
2824 cifs_uncached_writedata_release(struct kref *refcount) in cifs_uncached_writedata_release() argument
2827 struct cifs_writedata *wdata = container_of(refcount, in cifs_uncached_writedata_release()
2828 struct cifs_writedata, refcount); in cifs_uncached_writedata_release()
2830 kref_put(&wdata->ctx->refcount, cifs_aio_ctx_release); in cifs_uncached_writedata_release()
2833 cifs_writedata_release(refcount); in cifs_uncached_writedata_release()
2855 kref_put(&wdata->refcount, cifs_uncached_writedata_release); in cifs_uncached_writev_complete()
2966 kref_put(&wdata->refcount, cifs_uncached_writedata_release); in cifs_resend_wdata()
[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()
1484 kref_get(&mg->refcount); in dfs_cache_remount_fs()
1503 kref_put(&mg->refcount, mount_group_release); in dfs_cache_remount_fs()
1636 kref_get(&mg->refcount); in refresh_cache_worker()
1664 kref_put(&mg->refcount, mount_group_release); in refresh_cache_worker()
Dtransport.c52 kref_init(&temp->refcount); in AllocMidQEntry()
76 static void _cifs_mid_q_entry_release(struct kref *refcount) in _cifs_mid_q_entry_release() argument
79 container_of(refcount, struct mid_q_entry, refcount); in _cifs_mid_q_entry_release()
158 kref_put(&midEntry->refcount, _cifs_mid_q_entry_release); in cifs_mid_q_entry_release()
Dcifsglob.h1012 struct kref refcount; member
1293 struct kref refcount; member
1316 struct kref refcount; member
1349 struct kref refcount; member
1539 struct kref refcount; member
Dmisc.c961 kref_init(&ctx->refcount); in cifs_aio_ctx_alloc()
966 cifs_aio_ctx_release(struct kref *refcount) in cifs_aio_ctx_release() argument
968 struct cifs_aio_ctx *ctx = container_of(refcount, in cifs_aio_ctx_release()
969 struct cifs_aio_ctx, refcount); in cifs_aio_ctx_release()
/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/ksmbd/
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 …]
Doplock.h72 atomic_t refcount; member
/fs/
Ddirect-io.c137 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()
433 dio->refcount++; in dio_bio_submit()
480 while (dio->refcount > 1 && dio->bio_list == NULL) { in dio_await_one()
1098 ret2 = --dio->refcount; in drop_refcount()
1259 dio->refcount = 1; in do_blockdev_direct_IO()
/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/nfs/
Ddelegation.h25 refcount_t refcount; member
Dpnfs_nfs.c150 refcount_set(&new->refcount, 1); in pnfs_add_commit_array()
186 if (refcount_dec_and_test(&array->refcount)) in pnfs_put_commit_array_locked()
193 if (refcount_dec_and_lock(&array->refcount, &inode->i_lock)) { in pnfs_put_commit_array()
202 if (refcount_inc_not_zero(&array->refcount)) in pnfs_get_commit_array()
/fs/fuse/
Dvirtio_fs.c57 struct kref refcount; member
153 struct virtio_fs *vfs = container_of(ref, struct virtio_fs, refcount); in release_virtio_fs_obj()
162 kref_put(&fs->refcount, release_virtio_fs_obj); in virtio_fs_put()
264 kref_get(&fs->refcount); in virtio_fs_find_instance()
869 kref_init(&fs->refcount); in virtio_fs_probe()
/fs/xfs/
Dxfs_trace.h162 TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, int refcount,
164 TP_ARGS(mp, agno, refcount, caller_ip),
168 __field(int, refcount)
174 __entry->refcount = refcount;
180 __entry->refcount,
186 TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, int refcount, \
188 TP_ARGS(mp, agno, refcount, caller_ip))
2940 __field(xfs_nlink_t, refcount)
2947 __entry->refcount = irec->rc_refcount;
2954 __entry->refcount)
[all …]

12