From 63d1e5b7402819d22e61a96dadc2486ef1c35ddd Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Mon, 15 Jan 1996 15:28:22 +0000 Subject: (diskfs_lookup): Patch from ufs/dir.c: If we are returning an error, then set the dirstat to be ignored by drop_dirstat. --- ext2fs/dir.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ext2fs/dir.c b/ext2fs/dir.c index 4523071d..dc6cfc37 100644 --- a/ext2fs/dir.c +++ b/ext2fs/dir.c @@ -276,7 +276,11 @@ diskfs_lookup (struct node *dp, char *name, enum lookup_type type, if ((err && err != ENOENT) || !ds || ds->type == LOOKUP) - vm_deallocate (mach_task_self (), buf, buflen); + { + vm_deallocate (mach_task_self (), buf, buflen); + if (ds) + ds->type = LOOKUP; /* set to be ignored by drop_dirstat */ + } else { ds->mapbuf = buf; -- cgit v1.2.3