diff options
author | Jason Downs <downsj@cvs.openbsd.org> | 1996-07-14 09:45:04 +0000 |
---|---|---|
committer | Jason Downs <downsj@cvs.openbsd.org> | 1996-07-14 09:45:04 +0000 |
commit | b49575d81dfa5540f20b9b5cbdf740c07db6480e (patch) | |
tree | 7cf510ab07d703518cd80c6126e20ce2aa8495f7 /sys/gnu | |
parent | bc457b5fab6b7d736935bc121e4ec81bd38305e3 (diff) |
kill off some unneeded(?) code
Diffstat (limited to 'sys/gnu')
-rw-r--r-- | sys/gnu/ext2fs/ext2_vfsops.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/sys/gnu/ext2fs/ext2_vfsops.c b/sys/gnu/ext2fs/ext2_vfsops.c index 5a935ebd6a4..b2ddd43f2df 100644 --- a/sys/gnu/ext2fs/ext2_vfsops.c +++ b/sys/gnu/ext2fs/ext2_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ext2_vfsops.c,v 1.10 1996/07/14 09:14:14 downsj Exp $ */ +/* $OpenBSD: ext2_vfsops.c,v 1.11 1996/07/14 09:45:03 downsj Exp $ */ /* * modified for EXT2FS support in Lites 1.1 @@ -114,9 +114,6 @@ static struct ufs_dirops ext2fs_dirops = { extern u_long nextgennumber; -static int ext2fs_inode_hash_lock; - - static int compute_sb_data __P((struct vnode * devvp, struct ext2_super_block * es, struct ext2_sb_info * fs)); @@ -927,20 +924,6 @@ restart: if ((*vpp = ufs_ihashget(dev, ino)) != NULL) return (0); - /* - * Lock out the creation of new entries in the FFS hash table in - * case getnewvnode() or MALLOC() blocks, otherwise a duplicate - * may occur! - */ - if (ext2fs_inode_hash_lock) { - while (ext2fs_inode_hash_lock) { - ext2fs_inode_hash_lock = -1; - tsleep(&ext2fs_inode_hash_lock, PVM, "ffsvgt", 0); - } - goto restart; - } - ext2fs_inode_hash_lock = 1; - /* Allocate a new vnode/inode. */ if (error = getnewvnode(VT_EXT2FS, mp, ext2_vnodeop_p, &vp)) { *vpp = NULL; @@ -971,10 +954,6 @@ restart: */ ufs_ihashins(ip); - if (ext2fs_inode_hash_lock < 0) - wakeup(&ext2fs_inode_hash_lock); - ext2fs_inode_hash_lock = 0; - /* Read in the disk contents for the inode, copy into the inode. */ error = bread(ump->um_devvp, fsbtodb(fs, ino_to_fsba(fs, ino)), (int)fs->s_blocksize, NOCRED, &bp); |