Skip to content

Commit 48d64cd

Browse files
Christoph Hellwigdjwong
authored andcommitted
iomap: pass a struct page to iomap_finish_page_writeback
No need to pass the full bio_vec. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]> Signed-off-by: Darrick J. Wong <[email protected]>
1 parent b3d423e commit 48d64cd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

fs/iomap/buffered-io.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,21 +1110,21 @@ vm_fault_t iomap_page_mkwrite(struct vm_fault *vmf, const struct iomap_ops *ops)
11101110
EXPORT_SYMBOL_GPL(iomap_page_mkwrite);
11111111

11121112
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,
11141114
int error)
11151115
{
1116-
struct iomap_page *iop = to_iomap_page(bvec->bv_page);
1116+
struct iomap_page *iop = to_iomap_page(page);
11171117

11181118
if (error) {
1119-
SetPageError(bvec->bv_page);
1119+
SetPageError(page);
11201120
mapping_set_error(inode->i_mapping, -EIO);
11211121
}
11221122

11231123
WARN_ON_ONCE(i_blocksize(inode) < PAGE_SIZE && !iop);
11241124
WARN_ON_ONCE(iop && atomic_read(&iop->write_count) <= 0);
11251125

11261126
if (!iop || atomic_dec_and_test(&iop->write_count))
1127-
end_page_writeback(bvec->bv_page);
1127+
end_page_writeback(page);
11281128
}
11291129

11301130
/*
@@ -1156,7 +1156,7 @@ iomap_finish_ioend(struct iomap_ioend *ioend, int error)
11561156

11571157
/* walk each page on bio, ending page IO on them */
11581158
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);
11601160
bio_put(bio);
11611161
}
11621162

0 commit comments

Comments
 (0)