diff options
author | bp <bp@FreeBSD.org> | 2000-10-03 04:39:50 +0000 |
---|---|---|
committer | bp <bp@FreeBSD.org> | 2000-10-03 04:39:50 +0000 |
commit | e9f8d8bbf5793b12704c2d1912cfd9fb069cab59 (patch) | |
tree | 1e2d9e41cea01af40144c4db1520f02166944b23 /sys/fs/cd9660/cd9660_vfsops.c | |
parent | 87071b03a6f71c73de6713e461caaf4980b8afe3 (diff) | |
download | FreeBSD-src-e9f8d8bbf5793b12704c2d1912cfd9fb069cab59.zip FreeBSD-src-e9f8d8bbf5793b12704c2d1912cfd9fb069cab59.tar.gz |
Make cd9660 filesystem PDIRUNLOCK aware. Now it can be used in vnode stacks
and nullfs mounts.
Remove now unnecessary i_lock field from the iso_node structure.
Diffstat (limited to 'sys/fs/cd9660/cd9660_vfsops.c')
-rw-r--r-- | sys/fs/cd9660/cd9660_vfsops.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/fs/cd9660/cd9660_vfsops.c b/sys/fs/cd9660/cd9660_vfsops.c index 50f3883..0934730 100644 --- a/sys/fs/cd9660/cd9660_vfsops.c +++ b/sys/fs/cd9660/cd9660_vfsops.c @@ -725,7 +725,11 @@ cd9660_vget_internal(mp, ino, vpp, relocated, isodir) MALLOC(ip, struct iso_node *, sizeof(struct iso_node), M_ISOFSNODE, M_WAITOK); bzero((caddr_t)ip, sizeof(struct iso_node)); - lockinit(&ip->i_lock, PINOD, "isonode", 0, 0); + lockinit(&vp->v_lock, PINOD, "isonode", 0, 0); + /* + * ISOFS uses stdlock and can share lock structure + */ + vp->v_vnlock = &vp->v_lock; vp->v_data = ip; ip->i_vnode = vp; ip->i_dev = dev; |