Commit 032ac32c authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: Fix .splice_write

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 53ef2c5c
......@@ -1918,8 +1918,7 @@ static long bch2_dio_write_loop(struct dio_write *dio)
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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment