summaryrefslogtreecommitdiffstats
path: root/sys/fs/coda
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-11-15 09:18:27 +0000
committerphk <phk@FreeBSD.org>2004-11-15 09:18:27 +0000
commitd8b3df3cb90ffaa3381db166cd1e1f43fa25aa69 (patch)
tree271ca682bb616e6a1ee006756d44b1114980e7f9 /sys/fs/coda
parent6809658d1c9ca4eeca1cc691f6104b6ac431e296 (diff)
downloadFreeBSD-src-d8b3df3cb90ffaa3381db166cd1e1f43fa25aa69.zip
FreeBSD-src-d8b3df3cb90ffaa3381db166cd1e1f43fa25aa69.tar.gz
Make VOP_BMAP return a struct bufobj for the underlying storage device
instead of a vnode for it. The vnode_pager does not and should not have any interest in what the filesystem uses for backend. (vfs_cluster doesn't use the backing store argument.)
Diffstat (limited to 'sys/fs/coda')
-rw-r--r--sys/fs/coda/coda_vnops.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/fs/coda/coda_vnops.c b/sys/fs/coda/coda_vnops.c
index 97621a8..a7e84a8 100644
--- a/sys/fs/coda/coda_vnops.c
+++ b/sys/fs/coda/coda_vnops.c
@@ -1679,7 +1679,7 @@ coda_bmap(v)
struct vop_bmap_args *ap = v;
struct vnode *vp __attribute__((unused)) = ap->a_vp; /* file's vnode */
daddr_t bn __attribute__((unused)) = ap->a_bn; /* fs block number */
- struct vnode **vpp = ap->a_vpp; /* RETURN vp of device */
+ struct bufobj **bop = ap->a_bop; /* RETURN bufobj of device */
daddr_t *bnp __attribute__((unused)) = ap->a_bnp; /* RETURN device block number */
struct thread *td __attribute__((unused)) = curthread;
/* upcall decl */
@@ -1691,10 +1691,10 @@ coda_bmap(v)
cp = VTOC(vp);
if (cp->c_ovp) {
return EINVAL;
- ret = VOP_BMAP(cp->c_ovp, bn, vpp, bnp, ap->a_runp, ap->a_runb);
+ ret = VOP_BMAP(cp->c_ovp, bn, bop, bnp, ap->a_runp, ap->a_runb);
#if 0
- printf("VOP_BMAP(cp->c_ovp %p, bn %p, vpp %p, bnp %lld, ap->a_runp %p, ap->a_runb %p) = %d\n",
- cp->c_ovp, bn, vpp, bnp, ap->a_runp, ap->a_runb, ret);
+ printf("VOP_BMAP(cp->c_ovp %p, bn %p, bop %p, bnp %lld, ap->a_runp %p, ap->a_runb %p) = %d\n",
+ cp->c_ovp, bn, bop, bnp, ap->a_runp, ap->a_runb, ret);
#endif
return ret;
} else {
OpenPOWER on IntegriCloud