]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/ufs/ffs/ffs_alloc.c
xnu-792.13.8.tar.gz
[apple/xnu.git] / bsd / ufs / ffs / ffs_alloc.c
index e74e7423c1f07577fe08942cb6941b6d074ee7fc..f4aa9630efdb89d43fc8eb5955ff21724d3a17b0 100644 (file)
@@ -86,7 +86,7 @@
 
 #if REV_ENDIAN_FS
 #include <ufs/ufs/ufs_byte_order.h>
-#include <architecture/byte_order.h>
+#include <libkern/OSByteOrder.h>
 #endif /* REV_ENDIAN_FS */
 
 extern u_long nextgennumber;
@@ -601,7 +601,7 @@ ffs_blkpref(ip, lbn, indx, bap)
        if (indx && bap) {
        if (rev_endian) {
                if (bap != &ip->i_db[0])
-                       prev = NXSwapLong(bap[indx - 1]);
+                       prev = OSSwapInt32(bap[indx - 1]);
                else
                        prev = bap[indx - 1];
        } else prev = bap[indx - 1];
@@ -659,7 +659,7 @@ ffs_blkpref(ip, lbn, indx, bap)
                        return (nextblk);
                }
                if (bap != &ip->i_db[0])
-                       prev = NXSwapLong(bap[indx - fs->fs_maxcontig]);
+                       prev = OSSwapInt32(bap[indx - fs->fs_maxcontig]);
                else
                        prev = bap[indx - fs->fs_maxcontig];
                if (prev + blkstofrags(fs, fs->fs_maxcontig) != nextblk)