--- src/sys/vfs/ufs/ufs_lookup.c 2006/04/02 04:13:40 1.20 +++ src/sys/vfs/ufs/ufs_lookup.c 2006/04/05 20:22:30 1.21 @@ -155,12 +155,6 @@ ufs_lookup(struct vop_old_lookup_args *a wantparent = flags & (CNP_LOCKPARENT|CNP_WANTPARENT); /* - * We need to be able to perform buffer cache operations on - * the directory. - */ - vinitvmio(vdp); - - /* * We now have a segment name to search for, and a directory to search. * * Suppress search for slots unless creating @@ -1068,13 +1062,6 @@ ufs_dirempty(struct inode *ip, ino_t par int error, count, namlen; #define MINDIRSIZ (sizeof (struct dirtemplate) / 2) - /* - * The buffer cache needs a VM object and there might not be one - * since the vnode might not have been opened. - */ - if (ITOV(ip)->v_object == NULL) - vinitvmio(ITOV(ip)); - for (off = 0; off < ip->i_size; off += dp->d_reclen) { error = vn_rdwr(UIO_READ, ITOV(ip), (caddr_t)dp, MINDIRSIZ, off, UIO_SYSSPACE, IO_NODELOCKED, cred, &count, NULL);