On Wed, Sep 21 2016 at  7:09pm -0400,
Wonhong Kwon <wonhong.k...@lge.com> wrote:

> swap_slot_free_notify callback has been added to block_device_operations to
> allow freeing memory allocated by RAM-based swap device like zram or zswap
> more aggressively.
> In case of device mapper, it is also required if mapped target is being
> used as swap device and it uses some in-memory metadata for swap entries.
> This patch introduces swap_slot_free_notify callback into dm_blk_ops and
> target device can implement its own handler to handle this via
> slot_free_notify in target_type.
> Signed-off-by: Wonhong Kwon <wonhong.k...@lge.com>

This change to DM core only makes sense once we have an upstream DM
target that implements slot_free_notify hook.

dm-devel mailing list

Reply via email to