From: Andrew Morton Date: Thu, 22 Jun 2006 21:47:31 +0000 (-0700) Subject: [PATCH] prune_one_dentry() tweaks X-Git-Tag: v2.6.18-rc1~1081^2~232 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d702ccb342e49f7591df5a87c3857c698183b0fa;p=thirdparty%2Fkernel%2Flinux.git [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 Cc: Kirill Korotaev Cc: Olaf Hering Cc: Balbir Singh Cc: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/dcache.c b/fs/dcache.c index 385f5dbc4b0cc..59dbc92c2079b 100644 --- a/fs/dcache.c +++ b/fs/dcache.c @@ -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;