summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/endian.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ocfs2/endian.h')
-rw-r--r--fs/ocfs2/endian.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/ocfs2/endian.h b/fs/ocfs2/endian.h
index f226b22..ff25762 100644
--- a/fs/ocfs2/endian.h
+++ b/fs/ocfs2/endian.h
@@ -32,6 +32,11 @@ static inline void le32_add_cpu(__le32 *var, u32 val)
*var = cpu_to_le32(le32_to_cpu(*var) + val);
}
+static inline void le64_add_cpu(__le64 *var, u64 val)
+{
+ *var = cpu_to_le64(le64_to_cpu(*var) + val);
+}
+
static inline void le32_and_cpu(__le32 *var, u32 val)
{
*var = cpu_to_le32(le32_to_cpu(*var) & val);
OpenPOWER on IntegriCloud