diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2020-12-09 13:39:30 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:49 -0400 |
commit | 66bddc6c2b389a65708c27e7e7a9969e645ca799 (patch) | |
tree | d3a519fe9dbbbfa52f4d330d8125159e71988577 /fs/bcachefs/buckets.c | |
parent | cc578a36f9953c32a8ba866ee1878fcbb99a9746 (diff) | |
download | lwn-66bddc6c2b389a65708c27e7e7a9969e645ca799.tar.gz lwn-66bddc6c2b389a65708c27e7e7a9969e645ca799.zip |
bcachefs: Only try to get existing stripe once in stripe create path
The stripe creation path was too state-machiney: it would always run the
full state machine until it had succesfully created a new stripe.
But if we tried to get and reuse an existing stripe after we'd already
allocated some buckets, the buckets we'd allocated might have conflicted
with the blocks in the existing stripe we need to keep - oops.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/buckets.c')
0 files changed, 0 insertions, 0 deletions