bcachefs: Free move buffers as early as possible
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
5be6a274ff
commit
0b943b973c
@ -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();
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user