]> git.baikalelectronics.ru Git - kernel.git/commit
list_lru: don't call list_lru_from_kmem if the list_head is empty
authorJeff Layton <jlayton@poochiereds.net>
Tue, 8 Sep 2015 22:03:44 +0000 (15:03 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 8 Sep 2015 22:35:28 +0000 (15:35 -0700)
commit5705a70c92c035a9ffc3368d3f155f34891e12ea
tree33868d7b635a40367d0848dc4b049a8485d1572d
parent068fc6bdc9086890cb84e1eb5c04b1284f3245ec
list_lru: don't call list_lru_from_kmem if the list_head is empty

If the list_head is empty then we'll have called list_lru_from_kmem for
nothing.  Move that call inside of the list_empty if block.

Signed-off-by: Jeff Layton <jeff.layton@primarydata.com>
Reviewed-by: Vladimir Davydov <vdavydov@parallels.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/list_lru.c