diff options
author | 2023-04-19 11:47:03 -0400 | |
---|---|---|
committer | 2023-10-22 17:10:00 -0400 | |
commit | 02d51bb9a7315eb569a160363058ca2cd140faa1 (patch) | |
tree | 2352da4077c23a297e02d02a61efdc0a5c85d4df /fs/bcachefs/btree_io.c | |
parent | bcachefs: fix NULL bch_dev deref when checking bucket_gens keys (diff) | |
download | linux-02d51bb9a7315eb569a160363058ca2cd140faa1.tar.gz linux-02d51bb9a7315eb569a160363058ca2cd140faa1.tar.bz2 linux-02d51bb9a7315eb569a160363058ca2cd140faa1.zip |
bcachefs: remove bucket_gens btree keys on device removal
If a device has keys in the bucket_gens btree associated with its
buckets and is removed from a bcachefs volume, fsck will complain
about the presence of keys associated with an invalid device index.
A repair removes the associated keys and restores correctness.
Update bch2_dev_remove_alloc() to remove device related keys at
device removal time to avoid the problem.
Signed-off-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/btree_io.c')
0 files changed, 0 insertions, 0 deletions