]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/isofs/cd9660/cd9660_node.c
xnu-517.tar.gz
[apple/xnu.git] / bsd / isofs / cd9660 / cd9660_node.c
index b9b0cdcce8c98343d31f1d7a4b0d5c04ba51fb59..956074d1d742eb38ef3029429709e01823b07472 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000-2001 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2000-2003 Apple Computer, Inc. All rights reserved.
  *
  * @APPLE_LICENSE_HEADER_START@
  * 
@@ -82,6 +82,7 @@
 #include <sys/malloc.h>
 #include <sys/stat.h>
 #include <sys/lock.h>
+#include <sys/namei.h>
 
 #include <isofs/cd9660/iso.h>
 #include <isofs/cd9660/cd9660_node.h>
@@ -101,11 +102,9 @@ u_long idvhash;
 #define        DNOHASH(device, inum)   (((device) + ((inum)>>12)) & idvhash)
 #endif
 
-/* defined in bsd/ufs/ufs/ufs_inode.c */
+/* defined in bsd/vfs/vfs_subr.c */
 extern int prtactive;  /* 1 => print out reclaim of active vnodes */
 
-extern void cache_purge (struct vnode *vp);
-
 extern u_char isonullname[];
 /*
  * Initialize hash links for inodes and dnodes.
@@ -315,6 +314,8 @@ cd9660_reclaim(ap)
        }
        if (ip->i_namep != isonullname)
                FREE(ip->i_namep, M_TEMP);
+       if (ip->i_riff != NULL)
+               FREE(ip->i_riff, M_TEMP);
        FREE_ZONE(vp->v_data, sizeof(struct iso_node), M_ISOFSNODE);
        vp->v_data = NULL;
        return (0);