sync_page_range(9)

sync_page_range9

Write and wait on all pages in the passed range

Usage

int sync_page_range(struct inode * inode, struct address_space * mapping, loff_t pos, loff_t count);

Arguments

inode

target inode

mapping

target address_space

pos

beginning offset in pages to write

count

number of bytes to write

Overview

Write and wait upon all the pages in the passed range. This is a “data integrity” operation. It waits upon in-flight writeout before starting and waiting upon new writeout. If there was an IO error, return it.

We need to re-take i_mutex during the generic_osync_inode list walk because it is otherwise livelockable.

Releases

2 releases since Debian 4.0 (Etch); the text changed 1 time.

  1. 4.0
  2. 5.0

From linux-manual-2.6.26 2.6.26-29 in Debian 5.0 (Lenny). Parsed by carta from the page's man source.