]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/ufs/ffs/ffs_alloc.c
xnu-792.10.96.tar.gz
[apple/xnu.git] / bsd / ufs / ffs / ffs_alloc.c
index 275808fd4daeecde211dce4ee42a27561c384615..f013837cb0b9767ac0f3b9838d809c6dcc115a09 100644 (file)
@@ -78,7 +78,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;
@@ -593,7 +593,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];
@@ -651,7 +651,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)