Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/ufs/ufs/ufs_dirhash.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/ufs/ufs/ufs_dirhash.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.21.10.3 retrieving revision 1.27.10.2 diff -u -p -r1.21.10.3 -r1.27.10.2 --- src/sys/ufs/ufs/ufs_dirhash.c 2010/03/11 15:04:45 1.21.10.3 +++ src/sys/ufs/ufs/ufs_dirhash.c 2009/07/23 23:33:03 1.27.10.2 @@ -1,4 +1,4 @@ -/* $NetBSD: ufs_dirhash.c,v 1.21.10.3 2010/03/11 15:04:45 yamt Exp $ */ +/* $NetBSD: ufs_dirhash.c,v 1.27.10.2 2009/07/23 23:33:03 jym Exp $ */ /* * Copyright (c) 2001, 2002 Ian Dowse. All rights reserved. @@ -28,7 +28,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ufs_dirhash.c,v 1.21.10.3 2010/03/11 15:04:45 yamt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ufs_dirhash.c,v 1.27.10.2 2009/07/23 23:33:03 jym Exp $"); /* * This implements a hash-based lookup scheme for UFS directories. @@ -1086,7 +1086,7 @@ ufsdirhash_recycle(int wanted) /* Account for the returned memory, and repeat if necessary. */ DIRHASHLIST_LOCK(); - atomic_add_int(&ufs_dirhashmem, -mem); + ufs_dirhashmem -= mem; } /* Success. */ return (0);