mirror of https://github.com/torvalds/linux.git
bcachefs: Fix .splice_write
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
53ef2c5cc9
commit
032ac32c51
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue