mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
bcachefs: Assert that we're not trying to flush journal seq in the future
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
3d4955952f
commit
5ea037d03c
1 changed files with 2 additions and 0 deletions
|
@ -574,6 +574,8 @@ int bch2_journal_flush_seq_async(struct journal *j, u64 seq,
|
|||
|
||||
spin_lock(&j->lock);
|
||||
|
||||
BUG_ON(seq > journal_cur_seq(j));
|
||||
|
||||
/* Recheck under lock: */
|
||||
if (j->err_seq && seq >= j->err_seq) {
|
||||
ret = -EIO;
|
||||
|
|
Loading…
Add table
Reference in a new issue