Walk the list of dirty pages of the given address space and writepage all of them.
int generic_writepages(struct address_space * mapping, struct writeback_control * wbc);
mapping
address space structure to write
wbc
subtract the number of written pages from *wbc->nr_to_write
This is a library function, which implements the writepages address_space_operation.