]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
dentries: Extract common code to remove dentry from lru
authorChristoph Lameter <clameter@sgi.com>
Fri, 15 Feb 2008 03:38:45 +0000 (19:38 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 15 Feb 2008 05:17:09 +0000 (21:17 -0800)
commit4a0962abd187df29b7d1378b2f372a55667d54c0
treedfd7e50cb1267e55b3082f6b0a1d612b88058baa
parentcf28b4863f9ee8f122e8ff3ac0d403e07ba9c6d9
dentries: Extract common code to remove dentry from lru

Extract the common code to remove a dentry from the lru into a new function
dentry_lru_remove().

Two call sites used list_del() instead of list_del_init().  AFAIK the
performance of both is the same.  dentry_lru_remove() does a list_del_init().

As a result dentry->d_lru is now always empty when a dentry is freed.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/dcache.c