mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-28 02:32:43 -04:00
bcachefs: Fix allocator shutdown error message
We return 1 to indicate kthread_should_stop() returned true - we shouldn't be printing an error. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
This commit is contained in:
committed by
Kent Overstreet
parent
e59a4d7875
commit
69294246b7
@@ -857,10 +857,10 @@ static int bch2_invalidate_buckets(struct bch_fs *c, struct bch_dev *ca)
|
||||
/* If we used NOWAIT, don't return the error: */
|
||||
if (!fifo_empty(&ca->free_inc))
|
||||
ret = 0;
|
||||
if (ret) {
|
||||
if (ret < 0)
|
||||
bch_err(ca, "error invalidating buckets: %i", ret);
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
|
||||
if (journal_seq)
|
||||
ret = bch2_journal_flush_seq(&c->journal, journal_seq);
|
||||
|
||||
Reference in New Issue
Block a user