summaryrefslogtreecommitdiff
path: root/libbcachefs/io.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-03-06 02:35:56 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-03-06 04:11:50 -0500
commit0206d42daf4c4bd3bbcfa15a2bef34319524db49 (patch)
treea51d233e8ad9e9e730d1582519950f5af10532cd /libbcachefs/io.c
parent61b25f2dd21e1abe11572f4065e75c9c4c304599 (diff)
Update bcachefs sources to 3856459b1b bcachefs: bch2_btree_iter_peek_node_and_restart()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'libbcachefs/io.c')
-rw-r--r--libbcachefs/io.c4
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();
/*