#ifndef LINUX_BEFS_ENDIAN
#define LINUX_BEFS_ENDIAN
#include <asm/byteorder.h>
fs64_to_cpu(const struct super_block *sb, fs64 n)
if (BEFS_SB(sb)->byte_order == BEFS_BYTESEX_LE)
return le64_to_cpu((__force __le64)n);
return be64_to_cpu((__force __be64)n);
cpu_to_fs64(const struct super_block *sb, u64 n)
if (BEFS_SB(sb)->byte_order == BEFS_BYTESEX_LE)
return (__force fs64)cpu_to_le64(n);
return (__force fs64)cpu_to_be64(n);
fs32_to_cpu(const struct super_block *sb, fs32 n)
if (BEFS_SB(sb)->byte_order == BEFS_BYTESEX_LE)
return le32_to_cpu((__force __le32)n);
return be32_to_cpu((__force __be32)n);
cpu_to_fs32(const struct super_block *sb, u32 n)
if (BEFS_SB(sb)->byte_order == BEFS_BYTESEX_LE)
return (__force fs32)cpu_to_le32(n);
return (__force fs32)cpu_to_be32(n);
fs16_to_cpu(const struct super_block *sb, fs16 n)
if (BEFS_SB(sb)->byte_order == BEFS_BYTESEX_LE)
return le16_to_cpu((__force __le16)n);
return be16_to_cpu((__force __be16)n);
cpu_to_fs16(const struct super_block *sb, u16 n)
if (BEFS_SB(sb)->byte_order == BEFS_BYTESEX_LE)