diff options
Diffstat (limited to 'libbcachefs/io.c')
-rw-r--r-- | libbcachefs/io.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libbcachefs/io.c b/libbcachefs/io.c index de30daca..ea0fd631 100644 --- a/libbcachefs/io.c +++ b/libbcachefs/io.c @@ -835,6 +835,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(); /* |