From 2bdb8d4acd52db4402914a154f0ecb42b5752f94 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Thu, 14 Dec 1995 18:14:33 +0000 Subject: (diskfs_lookup): If we are returning an error, then set the dirstat to be ignored by drop_dirstat. --- ufs/dir.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ufs') diff --git a/ufs/dir.c b/ufs/dir.c index 5906cb01..b2147007 100644 --- a/ufs/dir.c +++ b/ufs/dir.c @@ -269,7 +269,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