Home
last modified time | relevance | path

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

123

/fs/bcachefs/
A Dreflink.c128 return l.v->refcount == r.v->refcount && bch2_extent_merge(c, _l, _r);
387 BUG_ON((s64) r->refcount + add < 0); in gc_trigger_reflink_p_segment()
390 r->refcount += add; in gc_trigger_reflink_p_segment()
505 __le64 *refcount; in bch2_make_extent_indirect() local
540 *refcount = 0; in bch2_make_extent_indirect()
786 if (!refcount) in bch2_gc_write_reflink_key()
800 if (fsck_err_on(r->refcount != le64_to_cpu(*refcount), in bch2_gc_write_reflink_key()
806 r->refcount)) { in bch2_gc_write_reflink_key()
812 if (!r->refcount) in bch2_gc_write_reflink_key()
847 if (!refcount) in bch2_gc_reflink_start()
[all …]
A Dreflink.h56 return &bkey_s_c_to_reflink_v(k).v->refcount; in bkey_refcount_c()
58 return &bkey_s_c_to_indirect_inline_data(k).v->refcount; in bkey_refcount_c()
68 return &bkey_s_to_reflink_v(k).v->refcount; in bkey_refcount()
70 return &bkey_s_to_indirect_inline_data(k).v->refcount; in bkey_refcount()
A Dreflink_format.h27 __le64 refcount; member
34 __le64 refcount; member
A Dbtree_gc_types.h29 u32 refcount; member
/fs/vboxsf/
A 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()
255 kref_get(&h->refcount); in vboxsf_get_write_handle()
295 kref_put(&sf_handle->refcount, vboxsf_handle_release); in vboxsf_writepages()
/fs/smb/client/
A Dcached_dir.c42 kref_get(&cfid->refcount); in find_or_create_cached_dir()
60 kref_get(&cfid->refcount); in find_or_create_cached_dir()
396 kref_put(&cfid->refcount, smb2_close_cached_fid); in open_cached_dir()
424 kref_get(&cfid->refcount); in open_cached_dir_by_dentry()
438 refcount); in smb2_close_cached_fid()
476 kref_put(&cfid->refcount, smb2_close_cached_fid); in drop_cached_dir_by_name()
485 kref_put(&cfid->refcount, smb2_close_cached_fid); in close_cached_dir()
577 kref_get(&cfid->refcount); in invalidate_all_cached_dirs()
596 kref_put(&cfid->refcount, smb2_close_cached_fid); in cached_dir_offload_close()
677 kref_init(&cfid->refcount); in init_cached_dir()
[all …]
A Dcached_dir.h42 struct kref refcount; member
/fs/smb/server/mgmt/
A Dtree_connect.c80 atomic_set(&tree_conn->refcount, 1); in ksmbd_tree_conn_connect()
108 if (!atomic_dec_return(&tcon->refcount) && in ksmbd_tree_connect_put()
122 if (!atomic_dec_and_test(&tree_conn->refcount)) in ksmbd_tree_conn_disconnect()
124 atomic_read(&tree_conn->refcount) == 0); in ksmbd_tree_conn_disconnect()
143 else if (!atomic_inc_not_zero(&tcon->refcount)) in ksmbd_tree_conn_lookup()
A Dshare_config.h26 atomic_t refcount; member
68 if (!atomic_dec_and_test(&share->refcount)) in ksmbd_share_config_put()
A Dshare_config.c72 if (!atomic_inc_not_zero(&share->refcount)) in __get_share_config()
158 atomic_set(&share->refcount, 1); in share_config_request()
A Dtree_connect.h35 atomic_t refcount; member
/fs/squashfs/
A 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()
A Dsquashfs_fs_sb.h32 int refcount; member
/fs/nfs/
A Dfscache.h45 refcount_t refcount; member
58 refcount_inc(&netfs->refcount); in nfs_netfs_get()
64 if (!refcount_dec_and_test(&netfs->refcount)) in nfs_netfs_put()
A Dpnfs_nfs.c152 refcount_set(&new->refcount, 1); in pnfs_add_commit_array()
188 if (refcount_dec_and_test(&array->refcount)) in pnfs_put_commit_array_locked()
195 if (refcount_dec_and_lock(&array->refcount, &inode->i_lock)) { in pnfs_put_commit_array()
204 if (refcount_inc_not_zero(&array->refcount)) in pnfs_get_commit_array()
/fs/xfs/scrub/
A Drefcount.c95 xfs_nlink_t refcount; member
127 if (refchk->refcount == 1 && rec->rm_owner != XFS_RMAP_OWN_COW) { in xchk_refcountbt_rmap_check()
176 target_nr = refchk->refcount - refchk->seen; in xchk_refcountbt_process_rmap_fragments()
270 refchk->seen = refchk->refcount; in xchk_refcountbt_process_rmap_fragments()
293 .refcount = irec->rc_refcount, in xchk_refcountbt_xref_rmap()
A Drtrefcount.c109 xfs_nlink_t refcount; member
141 if (refchk->refcount == 1 && rec->rm_owner != XFS_RMAP_OWN_COW) { in xchk_rtrefcountbt_rmap_check()
190 target_nr = refchk->refcount - refchk->seen; in xchk_rtrefcountbt_process_rmap_fragments()
284 refchk->seen = refchk->refcount; in xchk_rtrefcountbt_process_rmap_fragments()
307 .refcount = irec->rc_refcount, in xchk_rtrefcountbt_xref_rmap()
A Dquotacheck.c65 unsigned int refcount; member
277 dqa->refcount++; in xqcheck_mod_live_ino_dqtrx()
369 dqa->refcount--; in xqcheck_apply_live_dqtrx()
370 if (dqa->refcount == 0) { in xqcheck_apply_live_dqtrx()
A Drtrefcount_repair.c170 uint64_t refcount) in xrep_rtrefc_stash() argument
175 .rc_refcount = refcount, in xrep_rtrefc_stash()
183 irec.rc_refcount = min_t(uint64_t, XFS_REFC_REFCOUNT_MAX, refcount); in xrep_rtrefc_stash()
/fs/ocfs2/
A Docfs2_trace.h912 __field(unsigned int, refcount)
919 __entry->refcount = 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)
952 __entry->refcount = refcount;
1015 __field(unsigned int, refcount)
1024 __entry->refcount = refcount;
[all …]
/fs/smb/server/
A Dvfs_cache.c356 if (!atomic_inc_not_zero(&fp->refcount)) in ksmbd_fp_get()
414 if (!atomic_dec_and_test(&fp->refcount)) in ksmbd_close_fd()
432 if (!atomic_dec_and_test(&fp->refcount)) in ksmbd_fd_put()
507 if (!atomic_dec_and_test(&fp->refcount)) in ksmbd_put_durable_fd()
618 atomic_set(&fp->refcount, 1); in ksmbd_open_fd()
677 !atomic_dec_and_test(&fp->refcount)) { in __close_file_table_ids()
789 if (atomic_read(&fp->refcount) > 1 || in ksmbd_durable_scavenger()
A Doplock.c51 atomic_set(&opinfo->refcount, 1); in alloc_opinfo()
138 if (opinfo && !atomic_inc_not_zero(&opinfo->refcount)) in opinfo_get()
154 !atomic_inc_not_zero(&opinfo->refcount)) in opinfo_get_list()
158 atomic_dec(&opinfo->refcount); in opinfo_get_list()
173 if (!atomic_dec_and_test(&opinfo->refcount)) in opinfo_put()
393 atomic_dec(&opinfo->refcount); in close_id_del_oplock()
993 if (!atomic_inc_not_zero(&opinfo->refcount)) in find_same_lease_key()
1102 if (!atomic_inc_not_zero(&opinfo->refcount)) in smb_send_parent_lease_break_noti()
1141 if (!atomic_inc_not_zero(&opinfo->refcount)) in smb_lazy_parent_lease_break_close()
1348 if (!atomic_inc_not_zero(&brk_op->refcount)) in smb_break_all_levII_oplock()
[all …]
/fs/
A Ddirect-io.c134 unsigned long refcount; /* direct_io_worker() and bios */ member
345 remaining = --dio->refcount; in dio_bio_end_aio()
388 if (--dio->refcount == 1 && dio->waiter) in dio_bio_end_io()
434 dio->refcount++; in dio_bio_submit()
479 while (dio->refcount > 1 && dio->bio_list == NULL) { in dio_await_one()
1075 ret2 = --dio->refcount; in drop_refcount()
1226 dio->refcount = 1; in __blockdev_direct_IO()
/fs/overlayfs/
A Dreaddir.c34 long refcount; member
246 WARN_ON(cache->refcount <= 0); in ovl_cache_put()
247 cache->refcount--; in ovl_cache_put()
248 if (!cache->refcount) { in ovl_cache_put()
410 WARN_ON(!cache->refcount); in ovl_cache_get()
411 cache->refcount++; in ovl_cache_get()
420 cache->refcount = 1; in ovl_cache_get()
/fs/xfs/
A Dxfs_attr_item.h19 refcount_t refcount; member

Completed in 747 milliseconds

123