cleanup-from-readdir-type-hint-guessing-20010420
authorDerrick Brashear <shadow@dementia.org>
Sat, 21 Apr 2001 19:38:39 +0000 (19:38 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sat, 21 Apr 2001 19:38:39 +0000 (19:38 +0000)
Based on report by Chas Williams; FindVCache get getting a ref which we
need to release

src/afs/LINUX/osi_vnodeops.c

index 5958e65..8223ea9 100644 (file)
@@ -259,6 +259,8 @@ tagain:
                           type=DT_LNK; */
                        /* what other types does AFS support? */
                   }
+                 /* clean up from afs_FindVCache */
+                 afs_PutVCache(tvc, WRITE_LOCK);
              }
              code = (*filldir)(dirbuf, de->name, len, offset, ino, type);
         }