Home
last modified time | relevance | path

Searched refs:refcnt (Results 1 – 25 of 27) sorted by relevance

12

/fs/btrfs/
Dreada.c57 int refcnt; member
75 struct kref refcnt; member
185 kref_get(&rc->refcnt); in __readahead_hook()
187 kref_put(&rc->refcnt, reada_control_release); in __readahead_hook()
190 kref_put(&rc->refcnt, reada_control_release); in __readahead_hook()
209 re->refcnt++; in btree_readahead_hook()
240 kref_get(&zone->refcnt); in reada_find_zone()
270 kref_init(&zone->refcnt); in reada_find_zone()
289 kref_get(&zone->refcnt); in reada_find_zone()
319 re->refcnt++; in reada_find_extent()
[all …]
/fs/notify/
Dgroup.c100 refcount_inc(&group->refcnt); in fsnotify_get_group()
108 if (refcount_dec_and_test(&group->refcnt)) in fsnotify_put_group()
125 refcount_set(&group->refcnt, 1); in fsnotify_alloc_group()
Dmark.c96 WARN_ON_ONCE(!refcount_read(&mark->refcnt)); in fsnotify_get_mark()
97 refcount_inc(&mark->refcnt); in fsnotify_get_mark()
236 if (refcount_dec_and_test(&mark->refcnt)) in fsnotify_put_mark()
245 if (!refcount_dec_and_lock(&mark->refcnt, &conn->lock)) in fsnotify_put_mark()
293 if (refcount_inc_not_zero(&mark->refcnt)) { in fsnotify_get_mark_safe()
377 refcount_read(&mark->refcnt) < 1 + in fsnotify_detach_mark()
811 refcount_set(&mark->refcnt, 1); in fsnotify_init_mark()
/fs/hfs/
Dbnode.c257 atomic_set(&node->refcnt, 1); in __hfs_bnode_create()
302 node->tree->cnid, node->this, atomic_read(&node->refcnt)); in hfs_bnode_unhash()
446 atomic_inc(&node->refcnt); in hfs_bnode_get()
449 atomic_read(&node->refcnt)); in hfs_bnode_get()
462 atomic_read(&node->refcnt)); in hfs_bnode_put()
463 BUG_ON(!atomic_read(&node->refcnt)); in hfs_bnode_put()
464 if (!atomic_dec_and_lock(&node->refcnt, &tree->hash_lock)) in hfs_bnode_put()
Dbtree.c148 if (atomic_read(&node->refcnt)) in hfs_btree_close()
151 atomic_read(&node->refcnt)); in hfs_btree_close()
Dbtree.h61 atomic_t refcnt; member
Dinode.c102 else if (atomic_read(&node->refcnt)) in hfs_releasepage()
117 if (atomic_read(&node->refcnt)) { in hfs_releasepage()
/fs/coda/
Dfile.c31 atomic_t refcnt; member
101 atomic_inc(&cvm_ops->refcnt); in coda_vm_open()
116 if (atomic_dec_and_test(&cvm_ops->refcnt)) { in coda_vm_close()
192 atomic_set(&cvm_ops->refcnt, 1); in coda_file_mmap()
/fs/hfsplus/
Dbnode.c422 atomic_set(&node->refcnt, 1); in __hfs_bnode_create()
468 node->tree->cnid, node->this, atomic_read(&node->refcnt)); in hfs_bnode_unhash()
614 atomic_inc(&node->refcnt); in hfs_bnode_get()
617 atomic_read(&node->refcnt)); in hfs_bnode_get()
630 atomic_read(&node->refcnt)); in hfs_bnode_put()
631 BUG_ON(!atomic_read(&node->refcnt)); in hfs_bnode_put()
632 if (!atomic_dec_and_lock(&node->refcnt, &tree->hash_lock)) in hfs_bnode_put()
Dbtree.c269 if (atomic_read(&node->refcnt)) in hfs_btree_close()
273 atomic_read(&node->refcnt)); in hfs_btree_close()
Dinode.c98 else if (atomic_read(&node->refcnt)) in hfsplus_releasepage()
114 if (atomic_read(&node->refcnt)) { in hfsplus_releasepage()
Dhfsplus_fs.h118 atomic_t refcnt; member
/fs/kernfs/
Dfile.c35 atomic_t refcnt; member
558 atomic_inc(&on->refcnt); in kernfs_get_open_node()
575 atomic_set(&new_on->refcnt, 0); in kernfs_get_open_node()
605 if (atomic_dec_and_test(&on->refcnt)) in kernfs_put_open_node()
798 atomic_inc(&on->refcnt); in kernfs_drain_open_files()
/fs/proc/
Dinternal.h36 refcount_t refcnt; member
185 refcount_inc(&pde->refcnt); in pde_get()
Dgeneric.c428 refcount_set(&ent->refcnt, 1); in __proc_create()
646 if (refcount_dec_and_test(&pde->refcnt)) { in pde_put()
Droot.c294 .refcnt = REFCOUNT_INIT(1),
/fs/
Dpnode.c370 int propagate_mount_busy(struct mount *mnt, int refcnt) in propagate_mount_busy() argument
376 return do_refcount_check(mnt, refcnt); in propagate_mount_busy()
383 if (!list_empty(&mnt->mnt_mounts) || do_refcount_check(mnt, refcnt)) in propagate_mount_busy()
Dblock_dev.c1250 int refcnt; member
1317 holder->refcnt++; in bd_link_disk_holder()
1329 holder->refcnt = 1; in bd_link_disk_holder()
1375 if (!WARN_ON_ONCE(holder == NULL) && !--holder->refcnt) { in bd_unlink_disk_holder()
Dfs_parser.c281 f->refcnt++; /* filename_lookup() drops our ref. */ in fs_lookup_param()
/fs/nfs/blocklayout/
Dblocklayout.c68 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/jffs2/
Dxattr.c355 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()
854 atomic_inc(&xd->refcnt); in jffs2_build_xattr_subsystem()
865 if (!atomic_read(&xd->refcnt)) { in jffs2_build_xattr_subsystem()
1325 if (atomic_read(&xd->refcnt) || xd->node != (void *)xd) in jffs2_release_xattr_datum()
Dxattr.h32 atomic_t refcnt; /* # of xattr_ref refers this */ member
/fs/fuse/
Dfuse_i.h268 struct kref refcnt; member
285 .refcnt = KREF_INIT(1), \
Dfile.c585 kfree(container_of(kref, struct fuse_io_priv, refcnt)); in fuse_io_release()
646 kref_put(&io->refcnt, fuse_io_release); in fuse_aio_complete()
709 kref_get(&io->refcnt); in fuse_async_req_send()
3080 kref_init(&io->refcnt); in fuse_direct_IO()
3107 kref_get(&io->refcnt); in fuse_direct_IO()
3131 kref_put(&io->refcnt, fuse_io_release); in fuse_direct_IO()
/fs/notify/inotify/
Dinotify_user.c392 BUG_ON(refcount_read(&fsn_mark->refcnt) < 2); in inotify_idr_find_locked()
462 if (unlikely(refcount_read(&i_mark->fsn_mark.refcnt) < 2)) { in inotify_remove_from_idr()

12