[PATCH v2 03/25] mm: Fix bugs in region_is_ram()