diff options
| author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-10-07 18:04:21 -0400 | 
|---|---|---|
| committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-10-09 16:42:53 -0400 | 
| commit | 19773ec997201a45b3a1b5f1171897cba0f30bab (patch) | |
| tree | 21eb096566543d8aa269f9ba7eb90e758e5a68af /drivers/usb/cdns3/cdns3-trace.c | |
| parent | 9d86178782a25fac105e550e1c29c7d3f8470116 (diff) | |
bcachefs: Disk accounting device validation fixes
- Fix failure to validate that accounting replicas entries point to
  valid devices: this wasn't a real bug since they'd be cleaned up by
  GC, but is still something we should know about
- Fix failure to validate that dev_data_type entries point to valid
  devices: this does fix a real bug, since bch2_accounting_read() would
  then try to copy the counters to that device and pop an inconsistent
  error when the device didn't exist
- Remove accounting entries that are zeroed or invalid: if we're not
  validating them we need to get rid of them: they might not exist in
  the superblock, so we need the to trigger the superblock mark path
  when they're readded.
  This fixes the replication.ktest rereplicate test, which was failing
  with "superblock not marked for replicas..."
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.c')
0 files changed, 0 insertions, 0 deletions
