Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d28a9415 authored by Martijn Coenen's avatar Martijn Coenen Committed by Android Git Automerger
Browse files

am bc105dd4: am 2c6d1139: am 99fbb56a: Merge "Don\'t count lowmem mappings as...

am bc105dd4: am 2c6d1139: am 99fbb56a: Merge "Don\'t count lowmem mappings as memory used." into mnc-dev

* commit 'bc105dd4':
  Don't count lowmem mappings as memory used.
parents 8c6da7ed bc105dd4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -580,8 +580,8 @@ static long get_allocated_vmalloc_memory() {
            break;
        }

        if (!strstr(line, "ioremap")) {
            // Ignore ioremap regions, since they don't actually consume memory
        if (!strstr(line, "ioremap") && !strstr(line, "map_lowmem")) {
            // Ignore ioremap and map_lowmem regions, since they don't actually consume memory
            if (sscanf(line, "%*x-%*x %ld", &size) == 1) {
                vmalloc_allocated_size += size;
            }