---
name: "generic_writepages"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/generic_writepages"
---

# generic\_writepages(9)

walk the list of dirty pages of the given address space and writepage all of them.

## NAME

generic\_writepages - walk the list of dirty pages of the given address space and **writepage** all of them.

## SYNOPSIS

**int generic\_writepages(struct address\_space \*** *mapping***, struct writeback\_control \*** *wbc***);**

## ARGUMENTS

*mapping*

address space structure to write

*wbc*

subtract the number of written pages from \**wbc*-\>nr\_to\_write

## DESCRIPTION

This is a library function, which implements the **writepages** address\_space\_operation.

## COPYRIGHT
