Re: [PATCH v2] mm: proc: smaps_rollup: Fix pss_locked calculation

2019-02-11 Thread Joel Fernandes
On Sat, Feb 02, 2019 at 10:54:25PM -0800, Sandeep Patil wrote: > The 'pss_locked' field of smaps_rollup was being calculated incorrectly. > It accumulated the current pss everytime a locked VMA was found. Fix > that by adding to 'pss_locked' the same time as that of 'pss' if the vma > being walked

Re: [PATCH v2] mm: proc: smaps_rollup: Fix pss_locked calculation

2019-02-08 Thread Vlastimil Babka
On 2/3/19 7:54 AM, Sandeep Patil wrote: > The 'pss_locked' field of smaps_rollup was being calculated incorrectly. > It accumulated the current pss everytime a locked VMA was found. Fix > that by adding to 'pss_locked' the same time as that of 'pss' if the vma > being walked is locked. > > Fixes:

[PATCH v2] mm: proc: smaps_rollup: Fix pss_locked calculation

2019-02-02 Thread Sandeep Patil
The 'pss_locked' field of smaps_rollup was being calculated incorrectly. It accumulated the current pss everytime a locked VMA was found. Fix that by adding to 'pss_locked' the same time as that of 'pss' if the vma being walked is locked. Fixes: 493b0e9d945f ("mm: add /proc/pid/smaps_rollup") Cc: