]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/hfs/hfs_readwrite.c
xnu-201.42.3.tar.gz
[apple/xnu.git] / bsd / hfs / hfs_readwrite.c
index 035cd80f3ef3e829a8491865e83288991d67f295..825ec1ca55976a6144e1589fb3feea05ea17adc8 100644 (file)
@@ -2019,7 +2019,7 @@ struct vop_bwrite_args /* {
         if (((UInt16 *)((char *)bp->b_data + bp->b_bcount - 2))[0] == 0x000e) {
             /* Prepare the block pointer */
             block.blockHeader = bp;
-            block.buffer = bp->b_data + IOBYTEOFFSETFORBLK(bp->b_blkno, VTOHFS(vp)->hfs_phys_block_size);
+            block.buffer = bp->b_data;
             block.blockReadFromDisk = (bp->b_flags & B_CACHE) == 0;    /* not found in cache ==> came from disk */
             block.blockSize = bp->b_bcount;