Re: [PATCH v3] mm: memory: fix /proc/meminfo reporting for MLOCK_ONFAULT

2019-09-16 Thread Lucian Grijincu
> On 9/16/19, 04:35, "Michal Hocko" wrote: > > diff --git a/mm/memory.c b/mm/memory.c > > index e0c232fe81d9..55da24f33bc4 100644 > > --- a/mm/memory.c > > +++ b/mm/memory.c > > @@ -3311,6 +3311,8 @@ vm_fault_t alloc_set_pte(struct vm_fault *vmf, > struct mem_cgroup *memcg,

Re: [PATCH] mm: memory: fix /proc/meminfo reporting for MLOCK_ONFAULT

2019-09-13 Thread Lucian Grijincu
On 9/13/19, 04:18, "Souptick Joarder" wrote: On Fri, Sep 13, 2019 at 4:49 AM Lucian Adrian Grijincu wrote: > > As pages are faulted in MLOCK_ONFAULT correctly updates > /proc/self/smaps, but doesn't update /proc/meminfo's Mlocked field. > > - Before this /proc/meminfo fi