STATIC void
xfs_submit_page(
struct page *page,
+ struct writeback_control *wbc,
struct buffer_head *bh_arr[],
int cnt)
{
for (i = 0; i < cnt; i++)
submit_bh(WRITE, bh_arr[i]);
- } else
+ } else {
end_page_writeback(page);
+ wbc->pages_skipped++; /* We didn't write this page */
+ }
}
/*
if (startio) {
wbc->nr_to_write--;
- xfs_submit_page(page, bh_arr, index);
+ xfs_submit_page(page, wbc, bh_arr, index);
} else {
unlock_page(page);
}
SetPageUptodate(page);
if (startio)
- xfs_submit_page(page, bh_arr, cnt);
+ xfs_submit_page(page, wbc, bh_arr, cnt);
if (iomp) {
tlast = (iomp->iomap_offset + iomp->iomap_bsize - 1) >>