diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-12-14 18:14:33 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-12-14 18:14:33 +0000 |
commit | 2bdb8d4acd52db4402914a154f0ecb42b5752f94 (patch) | |
tree | afd61eb6d769f0163a4970715199cfe9a3d71d6f | |
parent | 15657f11e9ddf548b3d47f90d3c3fd2f4096aee6 (diff) |
(diskfs_lookup): If we are returning an error, then set the dirstat to
be ignored by drop_dirstat.
-rw-r--r-- | ufs/dir.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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; |