generic_osync_inode(9)

generic_osync_inode9

Flush all dirty data for a given inode to disk

Usage

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

Overview

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

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.