]> err.no Git - linux-2.6/blobdiff - fs/xfs/xfs_arch.h
[PATCH] kexec: change CONFIG_PHYSICAL_START dependency
[linux-2.6] / fs / xfs / xfs_arch.h
index 3191dc60d8db460f9077fbd633d7c21bcb448a3f..68e5051d8e249cbc89a8d3aec50df12548e248a1 100644 (file)
     } \
 }
 
+static inline void be16_add(__be16 *a, __s16 b)
+{
+       *a = cpu_to_be16(be16_to_cpu(*a) + b);
+}
+
+static inline void be32_add(__be32 *a, __s32 b)
+{
+       *a = cpu_to_be32(be32_to_cpu(*a) + b);
+}
+
+static inline void be64_add(__be64 *a, __s64 b)
+{
+       *a = cpu_to_be64(be64_to_cpu(*a) + b);
+}
+
 /*
  * In directories inode numbers are stored as unaligned arrays of unsigned
  * 8bit integers on disk.