Commit be42c4c4 authored by Zhaolei's avatar Zhaolei Committed by Al Viro

correct wrong function name of d_put in kernel document and source comment

no function named d_put(), it should be dput().

Impact: fix document and comment, no functionality changed
Signed-off-by: default avatarZhao Lei <zhaolei@cn.fuijtsu.com>
Signed-off-by: default avatarRandy Dunlap <rdunlap@xenotime.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent dc711ca3
...@@ -931,7 +931,7 @@ manipulate dentries: ...@@ -931,7 +931,7 @@ manipulate dentries:
d_lookup: look up a dentry given its parent and path name component d_lookup: look up a dentry given its parent and path name component
It looks up the child of that given name from the dcache It looks up the child of that given name from the dcache
hash table. If it is found, the reference count is incremented hash table. If it is found, the reference count is incremented
and the dentry is returned. The caller must use d_put() and the dentry is returned. The caller must use dput()
to free the dentry when it finishes using it. to free the dentry when it finishes using it.
For further information on dentry locking, please refer to the document For further information on dentry locking, please refer to the document
......
...@@ -1332,7 +1332,7 @@ err_out: ...@@ -1332,7 +1332,7 @@ err_out:
* *
* Searches the children of the parent dentry for the name in question. If * Searches the children of the parent dentry for the name in question. If
* the dentry is found its reference count is incremented and the dentry * the dentry is found its reference count is incremented and the dentry
* is returned. The caller must use d_put to free the entry when it has * is returned. The caller must use dput to free the entry when it has
* finished using it. %NULL is returned on failure. * finished using it. %NULL is returned on failure.
* *
* __d_lookup is dcache_lock free. The hash list is protected using RCU. * __d_lookup is dcache_lock free. The hash list is protected using RCU.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment