From 032ac32c516403cd0d5ebf30e233746271a7ddcc Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Tue, 27 Apr 2021 14:18:22 -0400 Subject: [PATCH] bcachefs: Fix .splice_write Signed-off-by: Kent Overstreet --- fs/bcachefs/fs-io.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/bcachefs/fs-io.c b/fs/bcachefs/fs-io.c index d48aa5b31e7b..5dd985e20c7f 100644 --- a/fs/bcachefs/fs-io.c +++ b/fs/bcachefs/fs-io.c @@ -1918,8 +1918,7 @@ loop: i_size_write(&inode->v, req->ki_pos); spin_unlock(&inode->v.i_lock); - bio_for_each_segment_all(bv, bio, iter) - put_page(bv->bv_page); + bio_release_pages(bio, false); if (dio->op.error) { set_bit(EI_INODE_ERROR, &inode->ei_flags); -- 2.39.5