Lines Matching defs:ref_count
84 int32_t ref_count;
619 vnode->ref_count = 1;
634 ASSERT(vnode->ref_count == 0 && vnode->busy);
680 int32_t oldRefCount = fssh_atomic_add(&vnode->ref_count, -1);
682 TRACE(("dec_vnode_ref_count: vnode %p, ref now %ld\n", vnode, vnode->ref_count));
729 fssh_atomic_add(&vnode->ref_count, 1);
730 TRACE(("inc_vnode_ref_count: vnode %p, ref now %ld\n", vnode, vnode->ref_count));
801 if (vnode->ref_count == 0) {
1089 Note, this reduces the ref_count of the starting \a vnode, no matter if
1209 // balance the next recursion - we will decrement the ref_count
1600 // if this is still valid to do (accessing the vnode without ref_count
2080 fssh_atomic_add(&vnode->ref_count, -1);
2874 fssh_atomic_add(&descriptor->ref_count, 1);
3599 fssh_atomic_add(&descriptor->ref_count, 1);
4355 // ToDo: find a replacement ref_count object - perhaps the root dir?
4519 // ToDo: find a replacement ref_count object - perhaps the root dir?
4690 if (mount->root_vnode == NULL || mount->root_vnode->ref_count != 1) {
4771 // The root vnode ref_count needs to be 2 here: one for the file
4774 || ((vnode->ref_count != 0 && mount->root_vnode != vnode)
4775 || (vnode->ref_count != 2 && mount->root_vnode == vnode))) {
4824 if (vnode->ref_count == 0) {
4831 // The ref_count of the root node is 2 at this point, see above why this is
4832 mount->root_vnode->ref_count -= 2;