---
name: "generic_osync_inode"
section: "9"
platform: "linux"
package: "linux-manual-2.6.26"
version: "2.6.26-29"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/generic_osync_inode"
---

# generic\_osync\_inode(9)

flush all dirty data for a given inode to disk

## NAME

generic\_osync\_inode - flush all dirty data for a given inode to disk

## SYNOPSIS

**int generic\_osync\_inode(struct inode \*** *inode***, struct address\_space \*** *mapping***, int** *what***);**

## ARGUMENTS

*inode*

inode to write

*mapping*

the address\_space that should be flushed

*what*

what to write and wait upon

## DESCRIPTION

This can be called by file\_write functions for files which have the O\_SYNC flag set, to flush dirty writes to disk.

*what* is a bitmask, specifying which part of the inode´s data should be written and waited upon.

## OSYNC\_DATA

i\_mapping´s dirty data

## OSYNC\_METADATA

the buffers at i\_mapping-\>private\_list

## OSYNC\_INODE

the inode itself

## COPYRIGHT
