Staging
v0.5.1
https://github.com/torvalds/linux
Revision 4a0962abd187df29b7d1378b2f372a55667d54c0 authored by Christoph Lameter on 15 February 2008, 03:38:45 UTC, committed by Linus Torvalds on 15 February 2008, 05:17:09 UTC
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>
1 parent cf28b48
History
Tip revision: 4a0962abd187df29b7d1378b2f372a55667d54c0 authored by Christoph Lameter on 15 February 2008, 03:38:45 UTC
dentries: Extract common code to remove dentry from lru
Tip revision: 4a0962a
File Mode Size
Documentation
arch
block
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
usr
virt
.gitignore -rw-r--r-- 636 bytes
.mailmap -rw-r--r-- 3.6 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 90.4 KB
Kbuild -rw-r--r-- 1.6 KB
MAINTAINERS -rw-r--r-- 94.3 KB
Makefile -rw-r--r-- 52.8 KB
README -rw-r--r-- 16.5 KB
REPORTING-BUGS -rw-r--r-- 3.1 KB

README

back to top