Skip to content

Commit

Permalink
[PATCH] prune_one_dentry() tweaks
Browse files Browse the repository at this point in the history
- 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: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Jun 22, 2006
1 parent 0feae5c commit d702ccb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions fs/dcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,12 +359,13 @@ void d_prune_aliases(struct inode *inode)
}

/*
* Throw away a dentry - free the inode, dput the parent.
* This requires that the LRU list has already been
* removed.
* Throw away a dentry - free the inode, dput the parent. This requires that
* the LRU list has already been removed.
*
* 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;

Expand Down

0 comments on commit d702ccb

Please sign in to comment.