mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 12:10:52 -04:00
[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:
parent
38e13929c3
commit
8e13059a37
4 changed files with 5 additions and 5 deletions
|
|
@ -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++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue