diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-11-07 20:32:50 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-01 19:47:37 +0300 |
commit | df8e13ccf3c0cc2b16e931f71ef69834db71eda9 (patch) | |
tree | f4f07f2b6c18f797de6be800e6bb865dfc568c38 /crypto/skcipher.c | |
parent | fa5df9e7d5a85507cc01f32815854993983c1ff5 (diff) | |
download | linux-df8e13ccf3c0cc2b16e931f71ef69834db71eda9.tar.xz |
bcachefs: Add an assertion in bch2_journal_pin_set()
Previously, bch2_journal_pin_set() would silently ignore a request to
pin a journal sequence number that was no longer dirty, because it was
used internally by bch2_journal_pin_copy() which could race with the src
pin being flushed.
Split these apart so that we can properly assert that @seq is a
currently dirty journal sequence number - this is almost always a bug.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'crypto/skcipher.c')
0 files changed, 0 insertions, 0 deletions