diff --git a/usr.sbin/makefs/msdos/msdosfs_vnops.c b/usr.sbin/makefs/msdos/msdosfs_vnops.c --- a/usr.sbin/makefs/msdos/msdosfs_vnops.c +++ b/usr.sbin/makefs/msdos/msdosfs_vnops.c @@ -492,11 +492,7 @@ MSDOSFS_DPRINTF(("%s(cn=%lu, bn=%llu, blsize=%d)\n", __func__, cn, (unsigned long long)bn, blsize)); - if ((error = bread((void *)pmp->pm_devvp, bn, blsize, 0, - &bp)) != 0) { - MSDOSFS_DPRINTF(("bread %d\n", error)); - goto out; - } + bp = getblk((void *)pmp->pm_devvp, bn, blsize, 0, 0, 0); cpsize = MIN((nsize - offs), blsize - on); memcpy(bp->b_data + on, dat + offs, cpsize); bwrite(bp);