diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2020-12-19 18:05:09 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2020-12-19 18:05:09 -0500 |
commit | 80846e9c28e76774daf7d2d46115d73f108b98db (patch) | |
tree | 625f8757948c81571e6678279ddedc3c392862a2 /libbcachefs/util.h | |
parent | db931a4571817d7d61be6bce306f1d42f7cd3398 (diff) |
Update bcachefs sources to 5241335413 bcachefs: Fix for spinning in journal reclaim on startup
Diffstat (limited to 'libbcachefs/util.h')
-rw-r--r-- | libbcachefs/util.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libbcachefs/util.h b/libbcachefs/util.h index 6e533544..c69b05de 100644 --- a/libbcachefs/util.h +++ b/libbcachefs/util.h @@ -747,4 +747,9 @@ u64 *bch2_acc_percpu_u64s(u64 __percpu *, unsigned); #define cmp_int(l, r) ((l > r) - (l < r)) +static inline int u8_cmp(u8 l, u8 r) +{ + return cmp_int(l, r); +} + #endif /* _BCACHEFS_UTIL_H */ |