generic_writepages — walk the list of dirty pages of the given address space and writepage all of them.
address space structure to write
subtract the number of written pages from *wbc->nr_to_write
This is a library function, which implements the writepages address_space_operation.