[PATCH] use list_add_tail() instead of list_add()

This patch converts list_add(A, B.prev) to list_add_tail(A, &B) for
readability.

Acked-by: Karsten Keil <[email protected]>
Cc: Jan Harkes <[email protected]>
Acked-by: Jan Kara <[email protected]>
AOLed-by: David Woodhouse <[email protected]>
Cc: Sridhar Samudrala <[email protected]>
Signed-off-by: Akinobu Mita <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
Akinobu Mita 2006-06-26 00:24:37 -07:00 • committed by Linus Torvalds
commit 8e13059a37
4 changed files with 5 additions and 5 deletions

View file

@ -638,7 +638,7 @@ resume:
* of the unused list for prune_dcache
*/
if (!atomic_read(&dentry->d_count)) {
list_add(&dentry->d_lru, dentry_unused.prev);
list_add_tail(&dentry->d_lru, &dentry_unused);
dentry_stat.nr_unused++;
found++;
}