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

# filemap\_fdatawait\_range(9)

wait for writeback to complete

## NAME

filemap\_fdatawait\_range - wait for writeback to complete

## SYNOPSIS

**int filemap\_fdatawait\_range(struct address\_space \*** *mapping***, loff\_t** *start\_byte***, loff\_t** *end\_byte***);**

## ARGUMENTS

*mapping*

address space structure to wait for

*start\_byte*

offset in bytes where the range starts

*end\_byte*

offset in bytes where the range ends (inclusive)

## DESCRIPTION

Walk the list of under-writeback pages of the given address space in the given range and wait for all of them. Check error status of the address space and return it.

Since the error status of the address space is cleared by this function, callers are responsible for checking the return value and handling and/or reporting the error.

## COPYRIGHT
