mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[PATCH] core: use list_move()
This patch converts the combination of list_del(A) and list_add(A, B) to list_move(A, B). Cc: Greg Kroah-Hartman <[email protected]> Cc: Ram Pai <[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
a7addcea6a
commit
1bfba4e8ea
8 changed files with 22 additions and 38 deletions
|
|
@ -522,8 +522,7 @@ void shrink_dcache_sb(struct super_block * sb)
|
|||
dentry = list_entry(tmp, struct dentry, d_lru);
|
||||
if (dentry->d_sb != sb)
|
||||
continue;
|
||||
list_del(tmp);
|
||||
list_add(tmp, &dentry_unused);
|
||||
list_move(tmp, &dentry_unused);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue