bcachefs: Free move buffers as early as possible

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2023-03-05 03:11:00 -05:00
parent 5be6a274ff
commit 0b943b973c

View file

@ -834,6 +834,10 @@ static void bch2_write_index(struct closure *cl)
struct write_point *wp = op->wp;
struct workqueue_struct *wq = index_update_wq(op);
if ((op->flags & BCH_WRITE_DONE) &&
(op->flags & BCH_WRITE_MOVE))
bch2_bio_free_pages_pool(op->c, &op->wbio.bio);
barrier();
/*