X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;ds=sidebyside;f=mm%2Fksm.c;h=6c3e99b4ae7c0726851ea5281fbb39f90f7b9ea2;hb=3975d16760d4be7402d1067c548c30c427971331;hp=956880f2ff4927a3f0a124ce6ecab4bd2d380696;hpb=0961d6581c870850342ad6ea25263763433d666f;p=karo-tx-linux.git diff --git a/mm/ksm.c b/mm/ksm.c index 956880f2ff49..6c3e99b4ae7c 100644 --- a/mm/ksm.c +++ b/mm/ksm.c @@ -318,14 +318,14 @@ static void hold_anon_vma(struct rmap_item *rmap_item, struct anon_vma *anon_vma) { rmap_item->anon_vma = anon_vma; - atomic_inc(&anon_vma->ksm_refcount); + atomic_inc(&anon_vma->external_refcount); } static void drop_anon_vma(struct rmap_item *rmap_item) { struct anon_vma *anon_vma = rmap_item->anon_vma; - if (atomic_dec_and_lock(&anon_vma->ksm_refcount, &anon_vma->lock)) { + if (atomic_dec_and_lock(&anon_vma->external_refcount, &anon_vma->lock)) { int empty = list_empty(&anon_vma->head); spin_unlock(&anon_vma->lock); if (empty)