@@ -1110,21 +1110,21 @@ vm_fault_t iomap_page_mkwrite(struct vm_fault *vmf, const struct iomap_ops *ops)
1110
1110
EXPORT_SYMBOL_GPL (iomap_page_mkwrite );
1111
1111
1112
1112
static void
1113
- iomap_finish_page_writeback (struct inode * inode , struct bio_vec * bvec ,
1113
+ iomap_finish_page_writeback (struct inode * inode , struct page * page ,
1114
1114
int error )
1115
1115
{
1116
- struct iomap_page * iop = to_iomap_page (bvec -> bv_page );
1116
+ struct iomap_page * iop = to_iomap_page (page );
1117
1117
1118
1118
if (error ) {
1119
- SetPageError (bvec -> bv_page );
1119
+ SetPageError (page );
1120
1120
mapping_set_error (inode -> i_mapping , - EIO );
1121
1121
}
1122
1122
1123
1123
WARN_ON_ONCE (i_blocksize (inode ) < PAGE_SIZE && !iop );
1124
1124
WARN_ON_ONCE (iop && atomic_read (& iop -> write_count ) <= 0 );
1125
1125
1126
1126
if (!iop || atomic_dec_and_test (& iop -> write_count ))
1127
- end_page_writeback (bvec -> bv_page );
1127
+ end_page_writeback (page );
1128
1128
}
1129
1129
1130
1130
/*
@@ -1156,7 +1156,7 @@ iomap_finish_ioend(struct iomap_ioend *ioend, int error)
1156
1156
1157
1157
/* walk each page on bio, ending page IO on them */
1158
1158
bio_for_each_segment_all (bv , bio , iter_all )
1159
- iomap_finish_page_writeback (inode , bv , error );
1159
+ iomap_finish_page_writeback (inode , bv -> bv_page , error );
1160
1160
bio_put (bio );
1161
1161
}
1162
1162
0 commit comments