FreeBSD/sys/ufs/ufs/ufs_extattr.c
/*
 * Destroy per-FS structures supporting extended attributes.  Assumes
 * that EAs have already been stopped, and will panic if not.
 */
Destroy per-FS structures supporting extended attributes.  Assumes
that EAs have already been stopped, and will panic if not.
Destroy per - FS structures supporting extended attributes . Assumes that EAs have already been stopped and will panic if not .
void
ufs_extattr_uepm_destroy(struct ufs_extattr_per_mount *uepm)
{
	if (!(uepm->uepm_flags & UFS_EXTATTR_UEPM_INITIALIZED))
		panic("ufs_extattr_uepm_destroy: not initialized");
	if ((uepm->uepm_flags & UFS_EXTATTR_UEPM_STARTED))
		panic("ufs_extattr_uepm_destroy: called while still started");
	uepm->uepm_flags &= ~UFS_EXTATTR_UEPM_INITIALIZED;
	sx_destroy(&uepm->uepm_lock);
}
void ufs_extattr_uepm_destroy ( struct ufs_extattr_per_mount * uepm ) { if ( ! ( uepm -> uepm_flags & UFS_EXTATTR_UEPM_INITIALIZED ) ) panic ( " " ) ; if ( ( uepm -> uepm_flags & UFS_EXTATTR_UEPM_STARTED ) ) panic ( " " ) ; uepm -> uepm_flags &= ~ UFS_EXTATTR_UEPM_INITIALIZED ; sx_destroy ( & uepm -> uepm_lock ) ; }
Destroy per-FS structures supporting extended attributes.
Destroy per - FS structures supporting extended attributes .
/*
	 * It's not clear that either order for the next two lines is
	 * ideal, and it should never be a problem if this is only called
	 * during unmount, and with vfs_busy().
	 */