---
name: "write_one_page"
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/write_one_page"
---

# write\_one\_page(9)

write out a single page and optionally wait on I/O

## NAME

write\_one\_page - write out a single page and optionally wait on I/O

## SYNOPSIS

**int write\_one\_page(struct page \*** *page***, int** *wait***);**

## ARGUMENTS

*page*

the page to write

*wait*

if true, wait on writeout

## DESCRIPTION

The page must be locked by the caller and will be unlocked upon return.

**write\_one\_page** returns a negative error code if I/O failed.

## COPYRIGHT
