summaryrefslogtreecommitdiff
path: root/sys/compat/freebsd
diff options
context:
space:
mode:
authorPedro Martelletto <pedro@cvs.openbsd.org>2005-11-30 10:35:09 +0000
committerPedro Martelletto <pedro@cvs.openbsd.org>2005-11-30 10:35:09 +0000
commit10d2adeb43e19f56de363f71edea37dec20f5172 (patch)
tree88601e1d3284cb824cc2a8d45055cfc21ef0131b /sys/compat/freebsd
parentf1d6e4b2f952c4073efea91213f22bf6f34f8d20 (diff)
No need for vfs_busy() and vfs_unbusy() to take a process pointer
anymore. Testing by jolan@, thanks.
Diffstat (limited to 'sys/compat/freebsd')
-rw-r--r--sys/compat/freebsd/freebsd_file.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/compat/freebsd/freebsd_file.c b/sys/compat/freebsd/freebsd_file.c
index ddd063a2935..1cbc83c40fd 100644
--- a/sys/compat/freebsd/freebsd_file.c
+++ b/sys/compat/freebsd/freebsd_file.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: freebsd_file.c,v 1.19 2004/07/13 21:04:29 millert Exp $ */
+/* $OpenBSD: freebsd_file.c,v 1.20 2005/11/30 10:35:07 pedro Exp $ */
/* $NetBSD: freebsd_file.c,v 1.3 1996/05/03 17:03:09 christos Exp $ */
/*
@@ -659,7 +659,7 @@ freebsd_sys_getfsstat(p, v, retval)
count = 0;
simple_lock(&mountlist_slock);
for (mp = mountlist.cqh_first; mp != (void *)&mountlist; mp = nmp) {
- if (vfs_busy(mp, LK_NOWAIT, &mountlist_slock, p)) {
+ if (vfs_busy(mp, LK_NOWAIT, &mountlist_slock)) {
nmp = mp->mnt_list.cqe_next;
continue;
}
@@ -674,7 +674,7 @@ freebsd_sys_getfsstat(p, v, retval)
(error = VFS_STATFS(mp, sp, p))) {
simple_lock(&mountlist_slock);
nmp = mp->mnt_list.cqe_next;
- vfs_unbusy(mp, p);
+ vfs_unbusy(mp);
continue;
}
sp->f_flags = mp->mnt_flag & MNT_VISFLAGMASK;
@@ -682,7 +682,7 @@ freebsd_sys_getfsstat(p, v, retval)
statfs_to_freebsd_statfs(p, mp, sp, &fsb);
error = copyout((caddr_t)&fsb, sfsp, sizeof(fsb));
if (error) {
- vfs_unbusy(mp, p);
+ vfs_unbusy(mp);
return (error);
}
sfsp += sizeof(fsb);
@@ -690,7 +690,7 @@ freebsd_sys_getfsstat(p, v, retval)
count++;
simple_lock(&mountlist_slock);
nmp = mp->mnt_list.cqe_next;
- vfs_unbusy(mp, p);
+ vfs_unbusy(mp);
}
simple_unlock(&mountlist_slock);
if (sfsp && count > maxcount)