mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-26 04:16:39 +00:00
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
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue