Home
last modified time | relevance | path

Searched refs:refcount (Results 1 – 25 of 33) 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 …]
Dtrace.h739 __field(xfs_nlink_t, refcount)
746 __entry->refcount = irec->rc_refcount;
753 __entry->refcount)
/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()
260 kref_get(&h->refcount); in vboxsf_get_write_handle()
293 kref_put(&sf_handle->refcount, vboxsf_handle_release); in vboxsf_writepage()
/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/
Dinternal.h139 atomic_t refcount; member
147 if (val != atomic_cmpxchg(&grp->refcount, val, EROFS_LOCKED_MAGIC)) { in erofs_workgroup_try_to_freeze()
162 atomic_set(&grp->refcount, orig_val); in erofs_workgroup_unfreeze()
168 return atomic_cond_read_relaxed(&grp->refcount, in erofs_wait_on_workgroup_freezed()
177 if (val != atomic_read(&grp->refcount)) { in erofs_workgroup_try_to_freeze()
192 int v = atomic_read(&grp->refcount); in erofs_wait_on_workgroup_freezed()
Dutils.c37 if (atomic_cmpxchg(&grp->refcount, o, o + 1) != o) in erofs_workgroup_get()
79 atomic_inc(&grp->refcount); in erofs_insert_workgroup()
94 atomic_dec(&grp->refcount); in erofs_insert_workgroup()
109 int count = atomic_dec_return(&grp->refcount); in erofs_workgroup_put()
/fs/cifs/
Dfile.c2389 kref_put(&wdata->refcount, cifs_writedata_release); in cifs_writepages()
2399 kref_put(&wdata->refcount, cifs_writedata_release); in cifs_writepages()
2437 kref_put(&wdata->refcount, cifs_writedata_release); in cifs_writepages()
2750 cifs_uncached_writedata_release(struct kref *refcount) in cifs_uncached_writedata_release() argument
2753 struct cifs_writedata *wdata = container_of(refcount, in cifs_uncached_writedata_release()
2754 struct cifs_writedata, refcount); in cifs_uncached_writedata_release()
2756 kref_put(&wdata->ctx->refcount, cifs_aio_ctx_release); in cifs_uncached_writedata_release()
2759 cifs_writedata_release(refcount); in cifs_uncached_writedata_release()
2781 kref_put(&wdata->refcount, cifs_uncached_writedata_release); in cifs_uncached_writev_complete()
2892 kref_put(&wdata->refcount, cifs_uncached_writedata_release); in cifs_resend_wdata()
[all …]
Dmisc.c802 kref_init(&ctx->refcount); in cifs_aio_ctx_alloc()
807 cifs_aio_ctx_release(struct kref *refcount) in cifs_aio_ctx_release() argument
809 struct cifs_aio_ctx *ctx = container_of(refcount, in cifs_aio_ctx_release()
810 struct cifs_aio_ctx, refcount); in cifs_aio_ctx_release()
Dtransport.c65 kref_init(&temp->refcount); in AllocMidQEntry()
89 static void _cifs_mid_q_entry_release(struct kref *refcount) in _cifs_mid_q_entry_release() argument
92 container_of(refcount, struct mid_q_entry, refcount); in _cifs_mid_q_entry_release()
171 kref_put(&midEntry->refcount, _cifs_mid_q_entry_release); in cifs_mid_q_entry_release()
Dcifsglob.h1077 struct kref refcount; member
1348 struct kref refcount; member
1373 struct kref refcount; member
1408 struct kref refcount; member
1593 struct kref refcount; member
Dcifsproto.h571 void cifs_readdata_release(struct kref *refcount);
582 void cifs_writedata_release(struct kref *refcount);
597 void cifs_aio_ctx_release(struct kref *refcount);
Dcifssmb.c1726 kref_get(&rdata->refcount); in cifs_async_readv()
1733 kref_put(&rdata->refcount, cifs_readdata_release); in cifs_async_readv()
1971 cifs_writedata_release(struct kref *refcount) in cifs_writedata_release() argument
1973 struct cifs_writedata *wdata = container_of(refcount, in cifs_writedata_release()
1974 struct cifs_writedata, refcount); in cifs_writedata_release()
2064 kref_put(&wdata2->refcount, cifs_writedata_release); in cifs_writev_requeue()
2085 kref_put(&wdata->refcount, cifs_writedata_release); in cifs_writev_requeue()
2116 kref_put(&wdata->refcount, cifs_writedata_release); in cifs_writev_complete()
2138 kref_init(&wdata->refcount); in cifs_writedata_direct_alloc()
2269 kref_get(&wdata->refcount); in cifs_async_writev()
[all …]
/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/
Ddirect-io.c138 unsigned long refcount; /* direct_io_worker() and bios */ member
342 remaining = --dio->refcount; in dio_bio_end_aio()
385 if (--dio->refcount == 1 && dio->waiter) in dio_bio_end_io()
436 dio->refcount++; in dio_bio_submit()
483 while (dio->refcount > 1 && dio->bio_list == NULL) { in dio_await_one()
1109 ret2 = --dio->refcount; in drop_refcount()
1270 dio->refcount = 1; in do_blockdev_direct_IO()
Duserfaultfd.c62 refcount_t refcount; member
156 refcount_inc(&ctx->refcount); in userfaultfd_ctx_get()
176 if (refcount_dec_and_test(&ctx->refcount)) { in userfaultfd_ctx_put()
703 refcount_set(&ctx->refcount, 1); in dup_userfaultfd()
2143 refcount_set(&ctx->refcount, 1); in SYSCALL_DEFINE1()
/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()
Dwrite.c49 struct kref refcount; member
126 kref_init(&ioc->refcount); in nfs_io_completion_init()
132 struct nfs_io_completion, refcount); in nfs_io_completion_release()
140 kref_get(&ioc->refcount); in nfs_io_completion_get()
146 kref_put(&ioc->refcount, nfs_io_completion_release); in nfs_io_completion_put()
Ddelegation.c52 refcount_inc(&delegation->refcount); in nfs_get_delegation()
58 if (refcount_dec_and_test(&delegation->refcount)) in nfs_put_delegation()
444 refcount_set(&delegation->refcount, 1); in nfs_inode_set_delegation()
/fs/fuse/
Dvirtio_fs.c57 struct kref refcount; member
158 struct virtio_fs *vfs = container_of(ref, struct virtio_fs, refcount); in release_virtio_fs_obj()
167 kref_put(&fs->refcount, release_virtio_fs_obj); in virtio_fs_put()
269 kref_get(&fs->refcount); in virtio_fs_find_instance()
874 kref_init(&fs->refcount); in virtio_fs_probe()
/fs/xfs/
DMakefile151 refcount.o \
Dxfs_trace.h107 TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, int refcount,
109 TP_ARGS(mp, agno, refcount, caller_ip),
113 __field(int, refcount)
119 __entry->refcount = refcount;
125 __entry->refcount,
131 TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, int refcount, \
133 TP_ARGS(mp, agno, refcount, caller_ip))
2796 __field(xfs_nlink_t, refcount)
2803 __entry->refcount = irec->rc_refcount;
2810 __entry->refcount)
[all …]
/fs/nfsd/
Dnfs4proc.c1110 if (!refcount_dec_and_test(&copy->refcount)) in nfs4_put_copy()
1144 refcount_inc(&copy->refcount); in nfsd4_get_copy()
1479 refcount_set(&cb_copy->refcount, 1); in nfsd4_do_async_copy()
1529 refcount_set(&async_copy->refcount, 1); in nfsd4_copy()
1568 refcount_inc(&copy->refcount); in find_async_copy()

12