]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/hfs/hfs_vnodeops.c
xnu-201.42.3.tar.gz
[apple/xnu.git] / bsd / hfs / hfs_vnodeops.c
index 3d1d803e5070e6d4d6b526f7281de9f56a0b6edf..c818f79e7e27a8f491c54d5b0206b88b3f6aef61 100644 (file)
@@ -3058,7 +3058,7 @@ hfs_symlink(ap)
                goto out;
 
        /* Write the link to disk */
-       bp = getblk(vp, 0, roundup((int)hp->fcbEOF, kHFSBlockSize), 0, 0, BLK_META);
+       bp = getblk(vp, 0, roundup((int)hp->fcbEOF, VTOHFS(vp)->hfs_phys_block_size), 0, 0, BLK_META);
        bzero(bp->b_data, bp->b_bufsize);
        bcopy(ap->a_target, bp->b_data, len);
        bp->b_flags |= B_DIRTY;
@@ -3749,7 +3749,8 @@ struct ucred *a_cred;
                if (H_ISBIGLINK(hp))
                        MALLOC(hp->h_symlinkptr, char *, hp->fcbEOF, M_TEMP, M_WAITOK);
 
-               retval = meta_bread(vp, 0, roundup((int)hp->fcbEOF, kHFSBlockSize), ap->a_cred, &bp);
+               retval = meta_bread(vp, 0, roundup((int)hp->fcbEOF, VTOHFS(vp)->hfs_phys_block_size),
+                               ap->a_cred, &bp);
                if (retval) {
                        if (bp)
                                brelse(bp);