Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/ufs ufsdirhash_recycle(): modify ufs_dirhashmem atom...
details: https://anonhg.NetBSD.org/src/rev/3ac26c5c2e68
branches: trunk
changeset: 747929:3ac26c5c2e68
user: rmind <rmind%NetBSD.org@localhost>
date: Mon Oct 05 23:48:08 2009 +0000
description:
ufsdirhash_recycle(): modify ufs_dirhashmem atomically.
diffstat:
sys/ufs/ufs/ufs_dirhash.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 12b47cd49591 -r 3ac26c5c2e68 sys/ufs/ufs/ufs_dirhash.c
--- a/sys/ufs/ufs/ufs_dirhash.c Mon Oct 05 23:47:04 2009 +0000
+++ b/sys/ufs/ufs/ufs_dirhash.c Mon Oct 05 23:48:08 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ufs_dirhash.c,v 1.33 2009/05/30 13:54:36 hannken Exp $ */
+/* $NetBSD: ufs_dirhash.c,v 1.34 2009/10/05 23:48:08 rmind Exp $ */
/*
* Copyright (c) 2001, 2002 Ian Dowse. All rights reserved.
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ufs_dirhash.c,v 1.33 2009/05/30 13:54:36 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ufs_dirhash.c,v 1.34 2009/10/05 23:48:08 rmind Exp $");
/*
* This implements a hash-based lookup scheme for UFS directories.
@@ -1086,7 +1086,7 @@
/* Account for the returned memory, and repeat if necessary. */
DIRHASHLIST_LOCK();
- ufs_dirhashmem -= mem;
+ atomic_add_int(&ufs_dirhashmem, -mem);
}
/* Success. */
return (0);
Home |
Main Index |
Thread Index |
Old Index