| /fs/smb/server/mgmt/ |
| A D | user_session.c | 191 if (atomic_read(&sess->refcnt) <= 1 && in ksmbd_expire_session() 243 if (atomic_dec_and_test(&sess->refcnt)) in ksmbd_sessions_deregister() 263 if (atomic_dec_and_test(&sess->refcnt)) in ksmbd_sessions_deregister() 330 atomic_inc(&sess->refcnt); in ksmbd_user_session_get() 338 if (atomic_read(&sess->refcnt) <= 0) in ksmbd_user_session_put() 340 else if (atomic_dec_and_test(&sess->refcnt)) in ksmbd_user_session_put() 448 atomic_set(&sess->refcnt, 2); in __session_create()
|
| A D | user_session.h | 65 atomic_t refcnt; member
|
| /fs/notify/ |
| A D | group.c | 101 refcount_inc(&group->refcnt); in fsnotify_get_group() 109 if (refcount_dec_and_test(&group->refcnt)) in fsnotify_put_group() 125 refcount_set(&group->refcnt, 1); in __fsnotify_alloc_group()
|
| A D | mark.c | 96 WARN_ON_ONCE(!refcount_read(&mark->refcnt)); in fsnotify_get_mark() 97 refcount_inc(&mark->refcnt); in fsnotify_get_mark() 396 if (refcount_dec_and_test(&mark->refcnt)) in fsnotify_put_mark() 405 if (!refcount_dec_and_lock(&mark->refcnt, &conn->lock)) in fsnotify_put_mark() 459 if (refcount_inc_not_zero(&mark->refcnt)) { in fsnotify_get_mark_safe() 545 refcount_read(&mark->refcnt) < 1 + in fsnotify_detach_mark() 975 refcount_set(&mark->refcnt, 1); in fsnotify_init_mark()
|
| /fs/hfs/ |
| A D | bnode.c | 363 atomic_set(&node->refcnt, 1); in __hfs_bnode_create() 405 node->tree->cnid, node->this, atomic_read(&node->refcnt)); in hfs_bnode_unhash() 548 atomic_inc(&node->refcnt); in hfs_bnode_get() 551 atomic_read(&node->refcnt)); in hfs_bnode_get() 564 atomic_read(&node->refcnt)); in hfs_bnode_put() 565 BUG_ON(!atomic_read(&node->refcnt)); in hfs_bnode_put() 566 if (!atomic_dec_and_lock(&node->refcnt, &tree->hash_lock)) in hfs_bnode_put()
|
| A D | btree.c | 185 if (atomic_read(&node->refcnt)) in hfs_btree_close() 188 atomic_read(&node->refcnt)); in hfs_btree_close()
|
| A D | btree.h | 68 atomic_t refcnt; member
|
| A D | inode.c | 97 else if (atomic_read(&node->refcnt)) in hfs_release_folio() 112 if (atomic_read(&node->refcnt)) { in hfs_release_folio()
|
| /fs/fuse/ |
| A D | dax.c | 58 refcount_t refcnt; member 328 WARN_ON(refcount_read(&dmap->refcnt) > 1); in inode_reclaim_dmap_range() 420 refcount_inc(&dmap->refcnt); in fuse_fill_iomap() 532 if (refcount_dec_and_test(&dmap->refcnt)) { in fuse_upgrade_dax_mapping() 602 refcount_inc(&dmap->refcnt); in fuse_iomap_begin() 642 if (refcount_dec_and_test(&dmap->refcnt)) { in fuse_iomap_end() 898 if (refcount_read(&dmap->refcnt) > 1) in inode_lookup_first_dmap() 959 if (refcount_read(&dmap->refcnt) > 1) { in inode_inline_reclaim_one_dmap() 1053 if (refcount_read(&dmap->refcnt) > 1) in lookup_and_reclaim_dmap_locked() 1124 if (refcount_read(&pos->refcnt) > 1) in try_to_free_dmap_chunks() [all …]
|
| A D | fuse_i.h | 361 struct kref refcnt; member 378 .refcnt = KREF_INIT(1), \
|
| /fs/coda/ |
| A D | file.c | 34 refcount_t refcnt; member 128 refcount_inc(&cvm_ops->refcnt); in coda_vm_open() 143 if (refcount_dec_and_test(&cvm_ops->refcnt)) { in coda_vm_close() 219 refcount_set(&cvm_ops->refcnt, 1); in coda_file_mmap()
|
| /fs/smb/server/ |
| A D | connection.c | 42 if (atomic_dec_and_test(&conn->refcnt)) { in ksmbd_conn_free() 74 atomic_set(&conn->refcnt, 1); in ksmbd_conn_alloc() 450 atomic_inc(&conn->refcnt); in ksmbd_conn_r_count_dec() 454 if (atomic_dec_and_test(&conn->refcnt)) in ksmbd_conn_r_count_dec()
|
| A D | connection.h | 116 atomic_t refcnt; member
|
| /fs/hfsplus/ |
| A D | bnode.c | 513 atomic_set(&node->refcnt, 1); in __hfs_bnode_create() 555 node->tree->cnid, node->this, atomic_read(&node->refcnt)); in hfs_bnode_unhash() 699 atomic_inc(&node->refcnt); in hfs_bnode_get() 702 atomic_read(&node->refcnt)); in hfs_bnode_get() 715 atomic_read(&node->refcnt)); in hfs_bnode_put() 716 BUG_ON(!atomic_read(&node->refcnt)); in hfs_bnode_put() 717 if (!atomic_dec_and_lock(&node->refcnt, &tree->hash_lock)) in hfs_bnode_put()
|
| A D | btree.c | 270 if (atomic_read(&node->refcnt)) in hfs_btree_close() 274 atomic_read(&node->refcnt)); in hfs_btree_close()
|
| A D | inode.c | 95 else if (atomic_read(&node->refcnt)) in hfsplus_release_folio() 111 if (atomic_read(&node->refcnt)) { in hfsplus_release_folio()
|
| /fs/nfs/blocklayout/ |
| A D | blocklayout.c | 68 struct kref refcnt; member 80 kref_init(&rv->refcnt); in alloc_parallel() 87 kref_get(&p->refcnt); in get_parallel() 92 struct parallel_io *p = container_of(kref, struct parallel_io, refcnt); in destroy_parallel() 101 kref_put(&p->refcnt, destroy_parallel); in put_parallel()
|
| /fs/proc/ |
| A D | internal.h | 37 refcount_t refcnt; member 290 refcount_inc(&pde->refcnt); in pde_get()
|
| A D | generic.c | 449 refcount_set(&ent->refcnt, 1); in __proc_create() 690 if (refcount_dec_and_test(&pde->refcnt)) { in pde_put()
|
| A D | root.c | 370 .refcnt = REFCOUNT_INIT(1),
|
| /fs/jffs2/ |
| A D | xattr.c | 355 atomic_inc(&xd->refcnt); in create_xattr_datum() 375 atomic_set(&xd->refcnt, 1); in create_xattr_datum() 407 if (atomic_dec_and_lock(&xd->refcnt, &c->erase_completion_lock)) { in unrefer_xattr_datum() 624 if (atomic_dec_and_test(&xd->refcnt)) { in jffs2_xattr_free_inode() 857 atomic_inc(&xd->refcnt); in jffs2_build_xattr_subsystem() 868 if (!atomic_read(&xd->refcnt)) { in jffs2_build_xattr_subsystem() 1332 if (atomic_read(&xd->refcnt) || xd->node != (void *)xd) in jffs2_release_xattr_datum()
|
| A D | xattr.h | 32 atomic_t refcnt; /* # of xattr_ref refers this */ member
|
| /fs/ |
| A D | pnode.c | 386 int propagate_mount_busy(struct mount *mnt, int refcnt) in propagate_mount_busy() argument 395 if (!list_empty(&mnt->mnt_mounts) || do_refcount_check(mnt, refcnt)) in propagate_mount_busy()
|
| A D | file.c | 37 atomic_long_set(&ref->refcnt, FILE_REF_DEAD); in __file_ref_put_badval() 47 atomic_long_set(&ref->refcnt, FILE_REF_SATURATED); in __file_ref_put_badval() 81 if (!atomic_long_try_cmpxchg_release(&ref->refcnt, &cnt, FILE_REF_DEAD)) in __file_ref_put()
|
| /fs/notify/inotify/ |
| A D | inotify_user.c | 429 BUG_ON(refcount_read(&fsn_mark->refcnt) < 2); in inotify_idr_find_locked() 499 if (unlikely(refcount_read(&i_mark->fsn_mark.refcnt) < 2)) { in inotify_remove_from_idr()
|