summaryrefslogtreecommitdiff
path: root/sys/msdosfs/msdosfs_fat.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2018-05-07 14:43:02 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2018-05-07 14:43:02 +0000
commite0c6a6d1fe222131b2c6f6140212321c02e20f0d (patch)
tree43de742f2c385d1133f014da60973a397cb2ff6f /sys/msdosfs/msdosfs_fat.c
parent7b5613fc1ae6dae65c6d864bca30a6f9b0d3ff6e (diff)
Implement VFS read clustering for MSDOSFS, take 3.
With sf@, inputs from krw@, tested by many, ok visa@
Diffstat (limited to 'sys/msdosfs/msdosfs_fat.c')
-rw-r--r--sys/msdosfs/msdosfs_fat.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/msdosfs/msdosfs_fat.c b/sys/msdosfs/msdosfs_fat.c
index a998059cd46..0bddf99534b 100644
--- a/sys/msdosfs/msdosfs_fat.c
+++ b/sys/msdosfs/msdosfs_fat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: msdosfs_fat.c,v 1.31 2017/12/30 20:47:00 guenther Exp $ */
+/* $OpenBSD: msdosfs_fat.c,v 1.32 2018/05/07 14:43:01 mpi Exp $ */
/* $NetBSD: msdosfs_fat.c,v 1.26 1997/10/17 11:24:02 ws Exp $ */
/*-
@@ -1020,14 +1020,12 @@ extendfile(struct denode *dep, uint32_t count, struct buf **bpp, uint32_t *ncp,
bp = getblk(pmp->pm_devvp, cntobn(pmp, cn++),
pmp->pm_bpcluster, 0, 0);
else {
- bp = getblk(DETOV(dep), de_cn2bn(pmp, frcn++),
+ bp = getblk(DETOV(dep), frcn++,
pmp->pm_bpcluster, 0, 0);
/*
* Do the bmap now, as in msdosfs_write
*/
- if (pcbmap(dep,
- de_bn2cn(pmp, bp->b_lblkno),
- &bp->b_blkno, 0, 0))
+ if (pcbmap(dep, bp->b_lblkno, &bp->b_blkno, 0, 0))
bp->b_blkno = -1;
if (bp->b_blkno == -1)
panic("extendfile: pcbmap");