Re: [PATCH 1/5] mm: print more information about mapping in __dump_page

From: William Kucharski
Date: Fri Nov 16 2018 - 08:51:09 EST




> On Nov 16, 2018, at 1:30 AM, Michal Hocko <mhocko@xxxxxxxxxx> wrote:
>
> From: Michal Hocko <mhocko@xxxxxxxx>
>
> __dump_page prints the mapping pointer but that is quite unhelpful
> for many reports because the pointer itself only helps to distinguish
> anon/ksm mappings from other ones (because of lowest bits
> set). Sometimes it would be much more helpful to know what kind of
> mapping that is actually and if we know this is a file mapping then also
> try to resolve the dentry name.

I really, really like this - the more information available in the dump
output, the easier it is to know where to start looking for the problem.

Reviewed-by: William Kucharski <william.kucharski@xxxxxxxxxx>