diff options
| author | Kent Overstreet <[email protected]> | 2024-04-30 08:24:58 +0000 |
|---|---|---|
| committer | Kent Overstreet <[email protected]> | 2024-05-08 21:29:22 +0000 |
| commit | 3a718c0647680965171a19c2524c137be8f287b9 (patch) | |
| tree | 94350cd8a53eb8eed0575cb9dc9184200f99b0ec /fs/bcachefs/btree_trans_commit.c | |
| parent | bcachefs: Kill opts.buckets_nouse (diff) | |
| download | kernel-3a718c0647680965171a19c2524c137be8f287b9.tar.gz kernel-3a718c0647680965171a19c2524c137be8f287b9.zip | |
bcachefs: On device add, prefer unused slots
We can't strictly guarantee that no pointers refer to nonexistent
devices - we attempt to, but we need to be safe when the filesystem is
corrupt.
Therefore, change device_add to try to pick a slot that's never been
used, or the slot that's been unused the longest.
Signed-off-by: Kent Overstreet <[email protected]>
Diffstat (limited to 'fs/bcachefs/btree_trans_commit.c')
0 files changed, 0 insertions, 0 deletions
