mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 13:53:33 +00:00
Documentation: Exporting: update description of d_splice_alias
Following commitsa904937
and0c1aa9a
update the d_splice_alias desciption. Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
bacb2d816c
commit
5b9f456772
1 changed files with 8 additions and 1 deletions
|
@ -92,7 +92,14 @@ For a filesystem to be exportable it must:
|
||||||
1/ provide the filehandle fragment routines described below.
|
1/ provide the filehandle fragment routines described below.
|
||||||
2/ make sure that d_splice_alias is used rather than d_add
|
2/ make sure that d_splice_alias is used rather than d_add
|
||||||
when ->lookup finds an inode for a given parent and name.
|
when ->lookup finds an inode for a given parent and name.
|
||||||
Typically the ->lookup routine will end with a:
|
|
||||||
|
If inode is NULL, d_splice_alias(inode, dentry) is eqivalent to
|
||||||
|
|
||||||
|
d_add(dentry, inode), NULL
|
||||||
|
|
||||||
|
Similarly, d_splice_alias(ERR_PTR(err), dentry) = ERR_PTR(err)
|
||||||
|
|
||||||
|
Typically the ->lookup routine will simply end with a:
|
||||||
|
|
||||||
return d_splice_alias(inode, dentry);
|
return d_splice_alias(inode, dentry);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue