.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "NTFS_GET_PARENT" "9" "09 October 2005" "" "" .SH NAME ntfs_get_parent \- find the dentry of the parent of a given directory dentry .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp struct dentry * ntfs_get_parent (struct dentry * \fIchild_dent\fB); \fR .SH "ARGUMENTS" .TP \fB\fIchild_dent\fB\fR dentry of the directory whose parent directory to find .SH "DESCRIPTION" .PP Find the dentry for the parent directory of the directory specified by the dentry \fIchild_dent\fR\&. This function is called from fs/exportfs/expfs.c::\fBfind_exported_dentry\fR which in turn is called from the default ->\fBdecode_fh\fR which is \fBexport_decode_fh\fR in the same file. .PP The code is based on the ext3 ->\fBget_parent\fR implementation found in fs/ext3/namei.c::\fBext3_get_parent\fR\&. .SH "NOTE" .PP \fBntfs_get_parent\fR is called with \fIchild_dent\fR->d_inode->i_sem down. .PP Return the dentry of the parent directory on success or the error code on error (\fBIS_ERR\fR is true).