summaryrefslogtreecommitdiffstats
path: root/sys/fs/nwfs
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-07-26 07:32:23 +0000
committerphk <phk@FreeBSD.org>2003-07-26 07:32:23 +0000
commit6221ef9078c60fa7c0eff8539ec7b1d959370e2a (patch)
tree4b10a3edcceb3eb7cae2e63c46cb2b1d26c145bf /sys/fs/nwfs
parente33bcc1872887407faa57becf9cde30a67fe1596 (diff)
downloadFreeBSD-src-6221ef9078c60fa7c0eff8539ec7b1d959370e2a.zip
FreeBSD-src-6221ef9078c60fa7c0eff8539ec7b1d959370e2a.tar.gz
Add a "int fd" argument to VOP_OPEN() which in the future will
contain the filedescriptor number on opens from userland. The index is used rather than a "struct file *" since it conveys a bit more information, which may be useful to in particular fdescfs and /dev/fd/* For now pass -1 all over the place.
Diffstat (limited to 'sys/fs/nwfs')
-rw-r--r--sys/fs/nwfs/nwfs_io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/nwfs/nwfs_io.c b/sys/fs/nwfs/nwfs_io.c
index 46f5cf7..ddd2b1b 100644
--- a/sys/fs/nwfs/nwfs_io.c
+++ b/sys/fs/nwfs/nwfs_io.c
@@ -528,7 +528,7 @@ nwfs_putpages(ap)
#ifndef NWFS_RWCACHE
td = curthread; /* XXX */
cred = td->td_ucred; /* XXX */
- VOP_OPEN(vp, FWRITE, cred, td);
+ VOP_OPEN(vp, FWRITE, cred, td, -1);
error = vop_stdputpages(ap);
VOP_CLOSE(vp, FWRITE, cred, td);
return error;
@@ -545,7 +545,7 @@ nwfs_putpages(ap)
td = curthread; /* XXX */
cred = td->td_ucred; /* XXX */
-/* VOP_OPEN(vp, FWRITE, cred, td);*/
+/* VOP_OPEN(vp, FWRITE, cred, td, -1);*/
np = VTONW(vp);
nmp = VFSTONWFS(vp->v_mount);
pages = ap->a_m;
OpenPOWER on IntegriCloud