NTFS_INIT_LOCKED_INODE

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

 

NAME

ntfs_init_locked_inode - initialize an inode  

SYNOPSIS

"SYNOPSIS"

int ntfs_init_locked_inode (struct inode * vi, ntfs_attr * na);  

ARGUMENTS

vi
vfs inode to initialize
na
ntfs attribute which to initialize vi to
 

DESCRIPTION

Initialize the vfs inode vi with the values from the ntfs attribute na in order to enable ntfs_test_inode to do its work.

If initializing the normal file/directory inode, set na->type to AT_UNUSED. In that case, na->name and na->name_len should be set to NULL and 0, respectively. Although that is not strictly necessary as ntfs_read_inode_locked will fill them in later.

Return 0 on success and -errno on error.  

NOTE

This function runs with the inode_lock spin lock held so it is not allowed to sleep. (Hence the GFP_ATOMIC allocation.)


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
NOTE

This document was created by man2html, using the manual pages.
Time: 00:02:33 GMT, October 09, 2005