]> git.itanic.dy.fi Git - scan-pagemap/blobdiff - analyze.c
Compact struct pageframe
[scan-pagemap] / analyze.c
index c9ed95dcd607b7d685f56ad51630b567adc5c5c7..6d65f02a751fa8b4a31b83e55a4ff8f8925bb167 100644 (file)
--- a/analyze.c
+++ b/analyze.c
@@ -42,10 +42,10 @@ static void count_pages(struct bintree *b, struct bintree_ops *ops)
        struct maps_list *ml;
 
        if (af->pid) {
-               if (list_empty(&pf->ml.list)) {
+               if (list_empty(&pf->ml)) {
                        return;
                }
-               list_for_each_entry(ml, &pf->ml.list, list) {
+               list_for_each_entry(ml, &pf->ml, list) {
                        if (ml->map->pid == af->pid)
                                goto get_stats;
                }