[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 <gregkh@suse.de> Cc: Ram Pai <linuxram@us.ibm.com> Signed-off-by: Akinobu Mita <mita@miraclelinux.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:

committed by
Linus Torvalds

parent
a7addcea6a
commit
1bfba4e8ea
@@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user