On Mon, May 20, 2019 at 03:40:02PM +1000, Tobin C. Harding wrote:
> Add the two methods needed for moving objects and enable the display of
> the callbacks via the /sys/kernel/slab interface.
> 
> Add documentation explaining the use of these methods and the prototypes
> for slab.h. Add functions to setup the callbacks method for a slab
> cache.
> 
> Add empty functions for SLAB/SLOB. The API is generic so it could be
> theoretically implemented for these allocators as well.
> 
> Change sysfs 'ctor' field to be 'ops' to contain all the callback
> operations defined for a slab cache.  Display the existing 'ctor'
> callback in the ops fields contents along with 'isolate' and 'migrate'
> callbacks.
> 
> Co-developed-by: Christoph Lameter <c...@linux.com>
> Signed-off-by: Tobin C. Harding <to...@kernel.org>
> ---
>  include/linux/slab.h     | 70 ++++++++++++++++++++++++++++++++++++++++
>  include/linux/slub_def.h |  3 ++
>  mm/slub.c                | 59 +++++++++++++++++++++++++++++----
>  3 files changed, 126 insertions(+), 6 deletions(-)

Reviewed-by: Roman Gushchin <g...@fb.com>

Thanks!

Reply via email to