summaryrefslogtreecommitdiffstats
path: root/sys/gnu/ext2fs/ext2_bmap.c
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/gnu/ext2fs/ext2_bmap.c
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/gnu/ext2fs/ext2_bmap.c')
-rw-r--r--sys/gnu/ext2fs/ext2_bmap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/gnu/ext2fs/ext2_bmap.c b/sys/gnu/ext2fs/ext2_bmap.c
index c6c3fa7..4b159aa 100644
--- a/sys/gnu/ext2fs/ext2_bmap.c
+++ b/sys/gnu/ext2fs/ext2_bmap.c
@@ -61,7 +61,7 @@ ext2_bmap(ap)
struct vop_bmap_args /* {
struct vnode *a_vp;
daddr_t a_bn;
- struct vnode **a_vpp;
+ struct bufobj **a_bop;
daddr_t *a_bnp;
int *a_runp;
int *a_runb;
@@ -74,8 +74,8 @@ ext2_bmap(ap)
* Check for underlying vnode requests and ensure that logical
* to physical mapping is requested.
*/
- if (ap->a_vpp != NULL)
- *ap->a_vpp = VTOI(ap->a_vp)->i_devvp;
+ if (ap->a_bop != NULL)
+ *ap->a_bop = &VTOI(ap->a_vp)->i_devvp->v_bufobj;
if (ap->a_bnp == NULL)
return (0);
OpenPOWER on IntegriCloud