.\" 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 "D_SPLICE_ALIAS" "" "06 October 2005" "" ""
.SH NAME
d_splice_alias \- splice a disconnected dentry into the tree if one exists
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
struct dentry * d_splice_alias (struct inode * \fIinode\fB, struct dentry * \fIdentry\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIinode\fB\fR
the inode which may have a disconnected dentry
.TP
\fB\fIdentry\fB\fR
a negative dentry which we want to point to the inode.
.SH "DESCRIPTION"
.PP
If inode is a directory and has a 'disconnected' dentry (i.e. IS_ROOT and
DCACHE_DISCONNECTED), then d_move that in place of the given dentry
and return it, else simply d_add the inode to the dentry and return NULL.
.PP
This is (will be) needed in the lookup routine of any filesystem that is exportable
(via knfsd) so that we can build dcache paths to directories effectively.
.PP
If a dentry was found and moved, then it is returned. Otherwise NULL
is returned. This matches the expected return value of ->lookup.