Changeset View
Changeset View
Standalone View
Standalone View
sys/fs/unionfs/union_subr.c
Show First 20 Lines • Show All 519 Lines • ▼ Show 20 Lines | if (dvp != NULLVP) { | ||||
mtx_unlock(&unionfs_deferred_rele_lock); | mtx_unlock(&unionfs_deferred_rele_lock); | ||||
taskqueue_enqueue(taskqueue_unionfs_rele, | taskqueue_enqueue(taskqueue_unionfs_rele, | ||||
&unionfs_deferred_rele_task); | &unionfs_deferred_rele_task); | ||||
} else | } else | ||||
free(unp, M_UNIONFSNODE); | free(unp, M_UNIONFSNODE); | ||||
} | } | ||||
/* | /* | ||||
* Get the unionfs node status. | * Get the unionfs node status object for the vnode corresponding to unp, | ||||
* You need exclusive lock this vnode. | * for the process that owns td. Allocate a new status object if one | ||||
* does not already exist. | |||||
kib: This is quite clear from the assert. I do not see much use for repeating code in comment… | |||||
*/ | */ | ||||
void | void | ||||
unionfs_get_node_status(struct unionfs_node *unp, struct thread *td, | unionfs_get_node_status(struct unionfs_node *unp, struct thread *td, | ||||
struct unionfs_node_status **unspp) | struct unionfs_node_status **unspp) | ||||
{ | { | ||||
struct unionfs_node_status *unsp; | struct unionfs_node_status *unsp; | ||||
pid_t pid; | pid_t pid; | ||||
▲ Show 20 Lines • Show All 786 Lines • Show Last 20 Lines |
This is quite clear from the assert. I do not see much use for repeating code in comment, verbatim.