mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
ksm: use the helper method to do the hlist_empty check
This just uses the helper function to cleanup the assumption on the hlist_node internals. Signed-off-by: Andrea Arcangeli <[email protected]> Acked-by: Hugh Dickins <[email protected]> Cc: Petr Holasek <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
f2e5ff85ed
commit
98666f8a25
1 changed files with 1 additions and 1 deletions
2
mm/ksm.c
2
mm/ksm.c
|
|
@ -625,7 +625,7 @@ static void remove_rmap_item_from_tree(struct rmap_item *rmap_item)
|
|||
unlock_page(page);
|
||||
put_page(page);
|
||||
|
||||
if (stable_node->hlist.first)
|
||||
if (!hlist_empty(&stable_node->hlist))
|
||||
ksm_pages_sharing--;
|
||||
else
|
||||
ksm_pages_shared--;
|
||||
|
|
|
|||
Loading…
Reference in a new issue