diff options
author | 1996-07-14 09:45:03 +0000 | |
---|---|---|
committer | 1996-07-14 09:45:03 +0000 | |
commit | 45438cd4832c60693d2e8bc34dce24e742da9b75 (patch) | |
tree | be5b3435fa39f060b00980a2e0d790ca7c41661a | |
parent | use VT_EXT2FS (diff) | |
download | wireguard-openbsd-45438cd4832c60693d2e8bc34dce24e742da9b75.tar.xz wireguard-openbsd-45438cd4832c60693d2e8bc34dce24e742da9b75.zip |
kill off some unneeded(?) code
-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); |