diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2020-12-16 14:18:33 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:50 -0400 |
commit | ded54580bdf18ba3a2b38e7910c54b1c53f007c6 (patch) | |
tree | 32ccba1206735a8aa61d558f7e62fbe779033d29 /fs/bcachefs/replicas.c | |
parent | 1d8305c11a289a13591d4c51726803cd37d8f646 (diff) | |
download | linux-ded54580bdf18ba3a2b38e7910c54b1c53f007c6.tar.gz linux-ded54580bdf18ba3a2b38e7910c54b1c53f007c6.tar.bz2 linux-ded54580bdf18ba3a2b38e7910c54b1c53f007c6.zip |
bcachefs: Check for duplicate device ptrs in bch2_bkey_ptrs_invalid()
This is something we clearly should be checking for, but weren't -
oops.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/replicas.c')
-rw-r--r-- | fs/bcachefs/replicas.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/bcachefs/replicas.c b/fs/bcachefs/replicas.c index 85c97f67936a..57c2e66edad1 100644 --- a/fs/bcachefs/replicas.c +++ b/fs/bcachefs/replicas.c @@ -11,11 +11,6 @@ static int bch2_cpu_replicas_to_sb_replicas(struct bch_fs *, /* Replicas tracking - in memory: */ -static inline int u8_cmp(u8 l, u8 r) -{ - return cmp_int(l, r); -} - static void verify_replicas_entry(struct bch_replicas_entry *e) { #ifdef CONFIG_BCACHEFS_DEBUG |