summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/util.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2019-04-12 04:54:12 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:08:20 -0400
commit3ea2b1e12898154d6fae49b22a3509521ba49d38 (patch)
treea7761fcbec401fbf3a8593a5a3c9a58f09f60322 /fs/bcachefs/util.h
parenta0e0bda117d80b107c137e4c6cd0fb9814bd5214 (diff)
downloadlinux-stable-3ea2b1e12898154d6fae49b22a3509521ba49d38.tar.gz
linux-stable-3ea2b1e12898154d6fae49b22a3509521ba49d38.tar.bz2
linux-stable-3ea2b1e12898154d6fae49b22a3509521ba49d38.zip
bcachefs: cmp_int()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/util.h')
-rw-r--r--fs/bcachefs/util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/bcachefs/util.h b/fs/bcachefs/util.h
index dc40a52ac8c7..59c8a1dac7be 100644
--- a/fs/bcachefs/util.h
+++ b/fs/bcachefs/util.h
@@ -743,4 +743,6 @@ static inline void acc_u64s_percpu(u64 *acc, const u64 __percpu *src,
u64 *bch2_acc_percpu_u64s(u64 __percpu *, unsigned);
+#define cmp_int(l, r) ((l > r) - (l < r))
+
#endif /* _BCACHEFS_UTIL_H */