diff options
author | eivind <eivind@FreeBSD.org> | 2000-10-09 17:31:39 +0000 |
---|---|---|
committer | eivind <eivind@FreeBSD.org> | 2000-10-09 17:31:39 +0000 |
commit | 4a39f454a004e45fbf58edf33d5a7c897964fa2d (patch) | |
tree | 1dc4af23aa65164f631bbeb9f969739d5f05803b /sys/fs/specfs | |
parent | 21413d77fe0420111b362ba10c8108c1a22ee2b7 (diff) | |
download | FreeBSD-src-4a39f454a004e45fbf58edf33d5a7c897964fa2d.zip FreeBSD-src-4a39f454a004e45fbf58edf33d5a7c897964fa2d.tar.gz |
Blow away the v_specmountpoint define, replacing it with what it was
defined as (rdev->si_mountpoint)
Diffstat (limited to 'sys/fs/specfs')
-rw-r--r-- | sys/fs/specfs/spec_vnops.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/fs/specfs/spec_vnops.c b/sys/fs/specfs/spec_vnops.c index f681cc8..ae8e11a 100644 --- a/sys/fs/specfs/spec_vnops.c +++ b/sys/fs/specfs/spec_vnops.c @@ -173,15 +173,15 @@ spec_open(ap) /* * Never allow opens for write if the device is mounted R/W */ - if (vp->v_specmountpoint != NULL && - !(vp->v_specmountpoint->mnt_flag & MNT_RDONLY)) + if (vp->v_rdev->si_mountpoint != NULL && + !(vp->v_rdev->si_mountpoint->mnt_flag & MNT_RDONLY)) return (EBUSY); /* * When running in secure mode, do not allow opens * for writing if the device is mounted */ - if (securelevel >= 1 && vp->v_specmountpoint != NULL) + if (securelevel >= 1 && vfs_mountedon(vp)) return (EPERM); /* @@ -435,7 +435,7 @@ spec_strategy(ap) * Collect statistics on synchronous and asynchronous read * and write counts for disks that have associated filesystems. */ - if (vn_isdisk(vp, NULL) && (mp = vp->v_specmountpoint) != NULL) { + if (vn_isdisk(vp, NULL) && (mp = vp->v_rdev->si_mountpoint) != NULL) { if (bp->b_iocmd == BIO_WRITE) { if (bp->b_lock.lk_lockholder == LK_KERNPROC) mp->mnt_stat.f_asyncwrites++; @@ -656,7 +656,7 @@ spec_getpages(ap) * the device. i.e. it's usually '/dev'. We need the physical block * size for the device itself. * - * We can't use v_specmountpoint because it only exists when the + * We can't use v_rdev->si_mountpoint because it only exists when the * block device is mounted. However, we can use v_rdev. */ |