summaryrefslogtreecommitdiffstats
path: root/sys/fs/nwfs
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2005-03-24 07:36:16 +0000
committerjeff <jeff@FreeBSD.org>2005-03-24 07:36:16 +0000
commit226bf6ead4eae284f20c2e0b92f5dd66207a9854 (patch)
treed9054fa7f8d4f79ec2995ff851d64982c658aa72 /sys/fs/nwfs
parentc9591f9ecde6c2dcb84b934b65b4ffb61817f2d8 (diff)
downloadFreeBSD-src-226bf6ead4eae284f20c2e0b92f5dd66207a9854.zip
FreeBSD-src-226bf6ead4eae284f20c2e0b92f5dd66207a9854.tar.gz
- Update vfs_root implementations to match the new prototype. None of
these filesystems will support shared locks until they are explicitly modified to do so. Careful review must be done to ensure that this is safe for each individual filesystem. Sponsored by: Isilon Systems, Inc.
Diffstat (limited to 'sys/fs/nwfs')
-rw-r--r--sys/fs/nwfs/nwfs_vfsops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/nwfs/nwfs_vfsops.c b/sys/fs/nwfs/nwfs_vfsops.c
index af8514e..604b6ec 100644
--- a/sys/fs/nwfs/nwfs_vfsops.c
+++ b/sys/fs/nwfs/nwfs_vfsops.c
@@ -228,7 +228,7 @@ static int nwfs_mount(struct mount *mp, struct thread *td)
/* protect against invalid mount points */
nmp->m.mount_point[sizeof(nmp->m.mount_point)-1] = '\0';
vfs_getnewfsid(mp);
- error = nwfs_root(mp, &vp, td);
+ error = nwfs_root(mp, LK_EXCLUSIVE, &vp, td);
if (error)
goto bad;
/*
@@ -277,7 +277,7 @@ nwfs_unmount(struct mount *mp, int mntflags, struct thread *td)
/* Return locked vnode to root of a filesystem */
static int
-nwfs_root(struct mount *mp, struct vnode **vpp, struct thread *td) {
+nwfs_root(struct mount *mp, int flags, struct vnode **vpp, struct thread *td) {
struct vnode *vp;
struct nwmount *nmp;
struct nwnode *np;
OpenPOWER on IntegriCloud