Call ufs_bmaparray() directly instead of indirectly via VOP_BMAP().

This commit is contained in:
Poul-Henning Kamp 2001-04-29 10:25:30 +00:00
parent 954a0e256e
commit f2ddd13ad2

View File

@ -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]);