1D_SPLICE_ALIAS(9)                The Linux VFS               D_SPLICE_ALIAS(9)
2
3
4

NAME

6       d_splice_alias - splice a disconnected dentry into the tree if one
7       exists
8

SYNOPSIS

10       struct dentry * d_splice_alias(struct inode * inode,
11                                      struct dentry * dentry);
12

ARGUMENTS

14       inode
15           the inode which may have a disconnected dentry
16
17       dentry
18           a negative dentry which we want to point to the inode.
19

DESCRIPTION

21       If inode is a directory and has a 'disconnected' dentry (i.e. IS_ROOT
22       and DCACHE_DISCONNECTED), then d_move that in place of the given dentry
23       and return it, else simply d_add the inode to the dentry and return
24       NULL.
25
26       This is needed in the lookup routine of any filesystem that is
27       exportable (via knfsd) so that we can build dcache paths to directories
28       effectively.
29
30       If a dentry was found and moved, then it is returned. Otherwise NULL is
31       returned. This matches the expected return value of ->lookup.
32
34Kernel Hackers Manual 2.6.       November 2011               D_SPLICE_ALIAS(9)
Impressum