summaryrefslogtreecommitdiff
path: root/libdiskfs/ports-idle.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-07-18 22:53:49 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-07-18 22:53:49 +0000
commitfeb5658fdf4e17a5675f0eaca7064b164ef0f6f9 (patch)
tree0d42a0fff87b8bcf88110fd1ad0cd718a43be856 /libdiskfs/ports-idle.c
parentca4ab079a490e3192f068502fba77d9d600bc1d7 (diff)
entered into RCS
Diffstat (limited to 'libdiskfs/ports-idle.c')
-rw-r--r--libdiskfs/ports-idle.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libdiskfs/ports-idle.c b/libdiskfs/ports-idle.c
index 507e3a64..9da021d5 100644
--- a/libdiskfs/ports-idle.c
+++ b/libdiskfs/ports-idle.c
@@ -15,6 +15,8 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+#include "priv.h"
+
/* Called by the ports library when we have been idle for
ten minutes. */
void
@@ -23,7 +25,7 @@ ports_notice_idle (int nhard, int nsoft)
spin_lock (&_diskfs_control_lock);
if (nhard > _diskfs_ncontrol_ports)
{
- spin_unlock (&diskfs_control_lock);
+ spin_unlock (&_diskfs_control_lock);
return;
}
spin_unlock (&_diskfs_control_lock);