summaryrefslogtreecommitdiffstats
path: root/sys/fs
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2007-06-01 14:33:11 +0000
committerkib <kib@FreeBSD.org>2007-06-01 14:33:11 +0000
commit17260ba6f1fe4f1f853e1660c3c55dce5eb30f83 (patch)
tree1977c9c1875b36aa303327d67bf46167ab478c50 /sys/fs
parente62312b69263d9a3edcc6deaf63ed19f723df1f4 (diff)
downloadFreeBSD-src-17260ba6f1fe4f1f853e1660c3c55dce5eb30f83.zip
FreeBSD-src-17260ba6f1fe4f1f853e1660c3c55dce5eb30f83.tar.gz
Change the VOP_OPEN(), vn_open() vnode operation and d_fdopen() cdev operation
argument from being file descriptor index into the pointer to struct file: part 2. Convert calls missed in the first big commit. Noted by: rwatson Pointy hat to: kib
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/nwfs/nwfs_io.c4
-rw-r--r--sys/fs/smbfs/smbfs_io.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/fs/nwfs/nwfs_io.c b/sys/fs/nwfs/nwfs_io.c
index 3071fe1..c7c4473 100644
--- a/sys/fs/nwfs/nwfs_io.c
+++ b/sys/fs/nwfs/nwfs_io.c
@@ -524,7 +524,7 @@ nwfs_putpages(ap)
#ifndef NWFS_RWCACHE
td = curthread; /* XXX */
cred = td->td_ucred; /* XXX */
- VOP_OPEN(vp, FWRITE, cred, td, -1);
+ VOP_OPEN(vp, FWRITE, cred, td, NULL);
error = vop_stdputpages(ap);
VOP_CLOSE(vp, FWRITE, cred, td);
return error;
@@ -541,7 +541,7 @@ nwfs_putpages(ap)
td = curthread; /* XXX */
cred = td->td_ucred; /* XXX */
-/* VOP_OPEN(vp, FWRITE, cred, td, -1);*/
+/* VOP_OPEN(vp, FWRITE, cred, td, NULL);*/
np = VTONW(vp);
nmp = VFSTONWFS(vp->v_mount);
pages = ap->a_m;
diff --git a/sys/fs/smbfs/smbfs_io.c b/sys/fs/smbfs/smbfs_io.c
index 0f8ed49..082f545 100644
--- a/sys/fs/smbfs/smbfs_io.c
+++ b/sys/fs/smbfs/smbfs_io.c
@@ -592,7 +592,7 @@ smbfs_putpages(ap)
#ifdef SMBFS_RWGENERIC
td = curthread; /* XXX */
cred = td->td_ucred; /* XXX */
- VOP_OPEN(vp, FWRITE, cred, td, -1);
+ VOP_OPEN(vp, FWRITE, cred, td, NULL);
error = vop_stdputpages(ap);
VOP_CLOSE(vp, FWRITE, cred, td);
return error;
@@ -610,7 +610,7 @@ smbfs_putpages(ap)
td = curthread; /* XXX */
cred = td->td_ucred; /* XXX */
-/* VOP_OPEN(vp, FWRITE, cred, td, -1);*/
+/* VOP_OPEN(vp, FWRITE, cred, td, NULL);*/
np = VTOSMB(vp);
smp = VFSTOSMBFS(vp->v_mount);
pages = ap->a_m;
OpenPOWER on IntegriCloud