/fs/xfs/scrub/ |
D | refcount.c | 78 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 …]
|
D | trace.h | 739 __field(xfs_nlink_t, refcount) 746 __entry->refcount = irec->rc_refcount; 753 __entry->refcount)
|
/fs/vboxsf/ |
D | file.c | 19 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/ |
D | cache.c | 90 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()
|
D | squashfs_fs_sb.h | 32 int refcount; member
|
/fs/erofs/ |
D | internal.h | 139 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()
|
D | utils.c | 37 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/ |
D | file.c | 2389 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 …]
|
D | misc.c | 802 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()
|
D | transport.c | 65 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()
|
D | cifsglob.h | 1077 struct kref refcount; member 1348 struct kref refcount; member 1373 struct kref refcount; member 1408 struct kref refcount; member 1593 struct kref refcount; member
|
D | cifsproto.h | 571 void cifs_readdata_release(struct kref *refcount); 582 void cifs_writedata_release(struct kref *refcount); 597 void cifs_aio_ctx_release(struct kref *refcount);
|
D | cifssmb.c | 1726 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/ |
D | ocfs2_trace.h | 905 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/ |
D | direct-io.c | 138 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()
|
D | userfaultfd.c | 62 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/ |
D | readdir.c | 32 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/ |
D | delegation.h | 25 refcount_t refcount; member
|
D | pnfs_nfs.c | 150 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()
|
D | write.c | 49 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()
|
D | delegation.c | 52 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/ |
D | virtio_fs.c | 57 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/ |
D | Makefile | 151 refcount.o \
|
D | xfs_trace.h | 107 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/ |
D | nfs4proc.c | 1110 if (!refcount_dec_and_test(©->refcount)) in nfs4_put_copy() 1144 refcount_inc(©->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(©->refcount); in find_async_copy()
|