diff options
author | Jeff Layton | 2015-09-09 00:03:44 +0200 |
---|---|---|
committer | Linus Torvalds | 2015-09-09 00:35:28 +0200 |
commit | 26f5d7609f03ad8d6dc552458e4e371a62416b37 (patch) | |
tree | 33868d7b635a40367d0848dc4b049a8485d1572d /mm/vmscan.c | |
parent | kmemleak: record accurate early log buffer count and report when exceeded (diff) | |
download | kernel-qcow2-linux-26f5d7609f03ad8d6dc552458e4e371a62416b37.tar.gz kernel-qcow2-linux-26f5d7609f03ad8d6dc552458e4e371a62416b37.tar.xz kernel-qcow2-linux-26f5d7609f03ad8d6dc552458e4e371a62416b37.zip |
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>
Diffstat (limited to 'mm/vmscan.c')
0 files changed, 0 insertions, 0 deletions