From: Andrew Morton - 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 Cc: Kirill Korotaev Cc: Olaf Hering Cc: Balbir Singh Cc: Neil Brown Signed-off-by: Andrew Morton --- fs/dcache.c | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff -puN fs/dcache.c~prune_one_dentry-tweaks fs/dcache.c --- devel/fs/dcache.c~prune_one_dentry-tweaks 2006-04-03 18:50:27.000000000 -0700 +++ devel-akpm/fs/dcache.c 2006-04-03 18:50:27.000000000 -0700 @@ -359,12 +359,13 @@ restart: } /* - * 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; _