__MARK_INODE_DIRTY

Section: ()
Updated: 06 October 2005
Index Return to Main Contents

 

NAME

__mark_inode_dirty - internal function  

SYNOPSIS

"SYNOPSIS"

void __mark_inode_dirty (struct inode * inode, int flags);  

ARGUMENTS

inode
inode to mark
flags
what kind of dirty (i.e. I_DIRTY_SYNC) Mark an inode as dirty. Callers should use mark_inode_dirty or mark_inode_dirty_sync.
 

DESCRIPTION

Put the inode on the super block's dirty list.

CAREFUL! We mark it dirty unconditionally, but move it onto the dirty list only if it is hashed or if it refers to a blockdev. If it was not hashed, it will never be added to the dirty list even if it is later hashed, as it will have been marked dirty already.

In short, make sure you hash any inodes _before_ you start marking them dirty.

This function *must* be atomic for the I_DIRTY_PAGES case - set_page_dirty is called under spinlock in several places.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 04:40:36 GMT, October 06, 2005