Module Name: src
Committed By: hannken
Date: Sat May 30 13:54:36 UTC 2009
Modified Files:
src/sys/ufs/ufs: ufs_dirhash.c
Log Message:
ufsdirhash_lookup(): call ufs_blkatoff() with "modify == false".
This buffer is used read-only here and from caller.
To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/sys/ufs/ufs/ufs_dirhash.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/ufs/ufs/ufs_dirhash.c
diff -u src/sys/ufs/ufs/ufs_dirhash.c:1.32 src/sys/ufs/ufs/ufs_dirhash.c:1.33
--- src/sys/ufs/ufs/ufs_dirhash.c:1.32 Wed May 6 16:43:47 2009
+++ src/sys/ufs/ufs/ufs_dirhash.c Sat May 30 13:54:36 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: ufs_dirhash.c,v 1.32 2009/05/06 16:43:47 rmind Exp $ */
+/* $NetBSD: ufs_dirhash.c,v 1.33 2009/05/30 13:54:36 hannken 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.32 2009/05/06 16:43:47 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ufs_dirhash.c,v 1.33 2009/05/30 13:54:36 hannken Exp $");
/*
* This implements a hash-based lookup scheme for UFS directories.
@@ -416,7 +416,7 @@
brelse(bp, 0);
blkoff = offset & ~bmask;
if (ufs_blkatoff(vp, (off_t)blkoff,
- NULL, &bp, true) != 0) {
+ NULL, &bp, false) != 0) {
DIRHASH_UNLOCK(dh);
return (EJUSTRETURN);
}