summaryrefslogtreecommitdiffstats
path: root/sys/ufs
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-10-28 06:19:28 +0000
committerphk <phk@FreeBSD.org>2004-10-28 06:19:28 +0000
commit414fca23b7b98deea47ad5b2ae0370a93f2d6f05 (patch)
tree1ba39e0eda71c598ebcd4c3a20a130a0e12f5e68 /sys/ufs
parent6b2d7f7134a56b0cd253b84b2f0ddea9b9040c6b (diff)
downloadFreeBSD-src-414fca23b7b98deea47ad5b2ae0370a93f2d6f05.zip
FreeBSD-src-414fca23b7b98deea47ad5b2ae0370a93f2d6f05.tar.gz
We only support backing UFS/FFS with disks.
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ffs/ffs_vfsops.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c
index 2f79edb..6faef7a 100644
--- a/sys/ufs/ffs/ffs_vfsops.c
+++ b/sys/ufs/ffs/ffs_vfsops.c
@@ -412,12 +412,8 @@ ffs_reload(struct mount *mp, struct thread *td)
vn_lock(devvp, LK_EXCLUSIVE | LK_RETRY, td);
if (vinvalbuf(devvp, 0, td->td_ucred, td, 0, 0) != 0)
panic("ffs_reload: dirty1");
- /*
- * Only VMIO the backing device if the backing device is a real
- * disk device. See ffs_mountfs() for more details.
- */
- if (vn_isdisk(devvp, NULL))
- vfs_object_create(devvp, td, td->td_ucred);
+
+ vfs_object_create(devvp, td, td->td_ucred);
VOP_UNLOCK(devvp, 0, td);
/*
@@ -578,13 +574,10 @@ ffs_mountfs(devvp, mp, td)
}
/*
- * Only VMIO the backing device if the backing device is a real
- * disk device.
* Note that it is optional that the backing device be VMIOed. This
* increases the opportunity for metadata caching.
*/
- if (vn_isdisk(devvp, NULL))
- vfs_object_create(devvp, td, cred);
+ vfs_object_create(devvp, td, cred);
ronly = (mp->mnt_flag & MNT_RDONLY) != 0;
/*
OpenPOWER on IntegriCloud