Re: [PATCH v3] mm: add account_locked_vm utility function

2019-06-03 Thread Alex Williamson
On Wed, 29 May 2019 16:50:19 -0400 Daniel Jordan wrote: > locked_vm accounting is done roughly the same way in five places, so > unify them in a helper. > > Include the helper's caller in the debug print to distinguish between > callsites. > > Error codes stay the same, so user-visible

[PATCH v3] mm: add account_locked_vm utility function

2019-05-29 Thread Daniel Jordan
locked_vm accounting is done roughly the same way in five places, so unify them in a helper. Include the helper's caller in the debug print to distinguish between callsites. Error codes stay the same, so user-visible behavior does too. The one exception is that the -EPERM case in