Skip to content

Commit

Permalink
Documentation: Exporting: update description of d_splice_alias
Browse files Browse the repository at this point in the history
Following commits a904937 and 0c1aa9a update the d_splice_alias
desciption.

Signed-off-by: Phillip Lougher <[email protected]>
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Phillip Lougher authored and Al Viro committed Jul 26, 2011
1 parent bacb2d8 commit 5b9f456
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Documentation/filesystems/nfs/Exporting
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,14 @@ For a filesystem to be exportable it must:
1/ provide the filehandle fragment routines described below.
2/ make sure that d_splice_alias is used rather than d_add
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);
}
Expand Down

0 comments on commit 5b9f456

Please sign in to comment.