diff options
| author | Andrea Arcangeli <aarcange@redhat.com> | 2015-11-05 18:49:13 -0800 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-11 10:57:18 +0200 |
| commit | 23d9b276af6a41199b01e743759e014844e509d9 (patch) | |
| tree | ab8fe2fbf36bb6240880d36ecf2c996a72b34dd3 /mm | |
| parent | 90da749f224bec8b37810e160aa1b8eed5c4e0b2 (diff) | |
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 <aarcange@redhat.com>
Acked-by: Hugh Dickins <hughd@google.com>
Cc: Petr Holasek <pholasek@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Joe Maples <joe@frap129.org>
Diffstat (limited to 'mm')
| -rw-r--r-- | mm/ksm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -630,7 +630,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--; |
