path: root/kerncompat.h
diff options
authorJosef Bacik <>2014-10-10 16:57:09 -0400
committerDavid Sterba <>2014-10-14 10:39:40 +0200
commit2ba12173d59af0b3f8885494eae9efbe15d143d6 (patch)
treea9ebce261161de1825204df3e9397f153b84ab1f /kerncompat.h
parentcdb9e22e292275237cbd93b9c4326382daff70f1 (diff)
Btrfs-progs: update rbtree libs
While debugging a broken fs we were seeing hangs in the rb_erase loops. The rbtree was simple and wasn't corrupted so it appeared to be a bug in our rbtree library. Updating to the kernels latest rbtree code made the infinite loop go away, so pull it back. Thanks, Signed-off-by: Josef Bacik <> Signed-off-by: David Sterba <>
Diffstat (limited to 'kerncompat.h')
1 files changed, 5 insertions, 0 deletions
diff --git a/kerncompat.h b/kerncompat.h
index 520bc9e0..8afadc88 100644
--- a/kerncompat.h
+++ b/kerncompat.h
@@ -345,6 +345,11 @@ struct __una_u64 { __le64 x; } __attribute__((__packed__));
#define put_unaligned_le64(val,p) (((struct __una_u64 *)(p))->x = cpu_to_le64(val))
+#ifndef true
+#define true 1
+#define false 0
#ifndef noinline
#define noinline