diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2019-04-12 04:54:12 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:20 -0400 |
commit | 3ea2b1e12898154d6fae49b22a3509521ba49d38 (patch) | |
tree | a7761fcbec401fbf3a8593a5a3c9a58f09f60322 /fs/bcachefs/replicas.c | |
parent | a0e0bda117d80b107c137e4c6cd0fb9814bd5214 (diff) | |
download | linux-3ea2b1e12898154d6fae49b22a3509521ba49d38.tar.gz linux-3ea2b1e12898154d6fae49b22a3509521ba49d38.tar.bz2 linux-3ea2b1e12898154d6fae49b22a3509521ba49d38.zip |
bcachefs: cmp_int()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/replicas.c')
-rw-r--r-- | fs/bcachefs/replicas.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/replicas.c b/fs/bcachefs/replicas.c index b66217989b71..b1df2c1ce4a4 100644 --- a/fs/bcachefs/replicas.c +++ b/fs/bcachefs/replicas.c @@ -12,7 +12,7 @@ static int bch2_cpu_replicas_to_sb_replicas(struct bch_fs *, static inline int u8_cmp(u8 l, u8 r) { - return (l > r) - (l < r); + return cmp_int(l, r); } static void verify_replicas_entry_sorted(struct bch_replicas_entry *e) |