NTFS_GET_PARENT

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

 

NAME

ntfs_get_parent - find the dentry of the parent of a given directory dentry  

SYNOPSIS

"SYNOPSIS"

struct dentry * ntfs_get_parent (struct dentry * child_dent);  

ARGUMENTS

child_dent
dentry of the directory whose parent directory to find
 

DESCRIPTION

Find the dentry for the parent directory of the directory specified by the dentry child_dent. This function is called from fs/exportfs/expfs.c::find_exported_dentry which in turn is called from the default ->decode_fh which is export_decode_fh in the same file.

The code is based on the ext3 ->get_parent implementation found in fs/ext3/namei.c::ext3_get_parent.  

NOTE

ntfs_get_parent is called with child_dent->d_inode->i_sem down.

Return the dentry of the parent directory on success or the error code on error (IS_ERR is true).


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
NOTE

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