提交 d702ccb3 编写于 作者: A Andrew Morton 提交者: Linus Torvalds

[PATCH] prune_one_dentry() tweaks

- Add description of d_lock handling to comments over prune_one_dentry().

- It has three callsites - uninline it, saving 200 bytes of text.

Cc: Jan Blunck <jblunck@suse.de>
Cc: Kirill Korotaev <dev@openvz.org>
Cc: Olaf Hering <olh@suse.de>
Cc: Balbir Singh <balbir@in.ibm.com>
Cc: Neil Brown <neilb@suse.de>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 0feae5c4
...@@ -359,12 +359,13 @@ void d_prune_aliases(struct inode *inode) ...@@ -359,12 +359,13 @@ void d_prune_aliases(struct inode *inode)
} }
/* /*
* Throw away a dentry - free the inode, dput the parent. * Throw away a dentry - free the inode, dput the parent. This requires that
* This requires that the LRU list has already been * the LRU list has already been removed.
* removed. *
* Called with dcache_lock, drops it and then regains. * Called with dcache_lock, drops it and then regains.
* Called with dentry->d_lock held, drops it.
*/ */
static inline void prune_one_dentry(struct dentry * dentry) static void prune_one_dentry(struct dentry * dentry)
{ {
struct dentry * parent; struct dentry * parent;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册