From f2ddd13ad242cca2f564a624902f5b1d9fe4acfe Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Sun, 29 Apr 2001 10:25:30 +0000 Subject: [PATCH] Call ufs_bmaparray() directly instead of indirectly via VOP_BMAP(). --- sys/ufs/ufs/ufs_readwrite.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/ufs/ufs/ufs_readwrite.c b/sys/ufs/ufs/ufs_readwrite.c index 27e1d69ab4da..f60b1ec7f233 100644 --- a/sys/ufs/ufs/ufs_readwrite.c +++ b/sys/ufs/ufs/ufs_readwrite.c @@ -617,8 +617,9 @@ ffs_getpages(ap) reqlblkno = foff / bsize; poff = (foff % bsize) / PAGE_SIZE; - if ( VOP_BMAP( vp, reqlblkno, &dp, &reqblkno, - &bforwards, &bbackwards) || (reqblkno == -1)) { + dp = VTOI(vp)->i_devvp; + if (ufs_bmaparray(vp, reqlblkno, &reqblkno, &bforwards, &bbackwards) + || (reqblkno == -1)) { for(i = 0; i < pcount; i++) { if (i != ap->a_reqpage) vm_page_free(ap->a_m[i]);