summaryrefslogtreecommitdiff
path: root/sys/compat
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
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')
-rw-r--r--sys/compat/common/vfs_syscalls_25.c10
-rw-r--r--sys/compat/freebsd/freebsd_file.c10
-rw-r--r--sys/compat/netbsd/netbsd_file.c10
3 files changed, 15 insertions, 15 deletions
diff --git a/sys/compat/common/vfs_syscalls_25.c b/sys/compat/common/vfs_syscalls_25.c
index 7d129b040ee..77f65ff4da4 100644
--- a/sys/compat/common/vfs_syscalls_25.c
+++ b/sys/compat/common/vfs_syscalls_25.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_syscalls_25.c,v 1.6 2003/08/15 20:32:15 tedu Exp $ */
+/* $OpenBSD: vfs_syscalls_25.c,v 1.7 2005/11/30 10:35:07 pedro Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -181,7 +181,7 @@ compat_25_sys_getfsstat(p, v, retval)
simple_lock(&mountlist_slock);
for (mp = CIRCLEQ_FIRST(&mountlist); mp != CIRCLEQ_END(&mountlist);
mp = nmp) {
- if (vfs_busy(mp, LK_NOWAIT, &mountlist_slock, p)) {
+ if (vfs_busy(mp, LK_NOWAIT, &mountlist_slock)) {
nmp = CIRCLEQ_NEXT(mp, mnt_list);
continue;
}
@@ -196,14 +196,14 @@ compat_25_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;
}
statfs_to_ostatfs(p, mp, sp, &osb);
error = copyout((caddr_t)&osb, sfsp, sizeof(osb));
if (error) {
- vfs_unbusy(mp, p);
+ vfs_unbusy(mp);
return (error);
}
sfsp += sizeof(osb);
@@ -211,7 +211,7 @@ compat_25_sys_getfsstat(p, v, retval)
count++;
simple_lock(&mountlist_slock);
nmp = CIRCLEQ_NEXT(mp, mnt_list);
- vfs_unbusy(mp, p);
+ vfs_unbusy(mp);
}
simple_unlock(&mountlist_slock);
if (sfsp && count > maxcount)
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)
diff --git a/sys/compat/netbsd/netbsd_file.c b/sys/compat/netbsd/netbsd_file.c
index 5b35d37d8ce..0c8c8ee252f 100644
--- a/sys/compat/netbsd/netbsd_file.c
+++ b/sys/compat/netbsd/netbsd_file.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: netbsd_file.c,v 1.5 2003/08/15 20:32:16 tedu Exp $ */
+/* $OpenBSD: netbsd_file.c,v 1.6 2005/11/30 10:35:07 pedro Exp $ */
/* $NetBSD: freebsd_file.c,v 1.3 1996/05/03 17:03:09 christos Exp $ */
/*
@@ -633,7 +633,7 @@ netbsd_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;
}
@@ -648,7 +648,7 @@ netbsd_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;
@@ -656,7 +656,7 @@ netbsd_sys_getfsstat(p, v, retval)
statfs_to_netbsd_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);
@@ -664,7 +664,7 @@ netbsd_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)