Re: [PATCH 2/4] send callback when swap slot is freed

Hugh Dickins
2009-09-18T08:00:31Z

On Fri, 18 Sep 2009, Pekka Enberg wrote:
>
> The *hook* looks OK to me but set_swap_free_notify() looks like an ugly
> hack. I don't understand why we're setting up the hook lazily in
> ramzswap_read() nor do I understand why we need to look up struct
> swap_info_struct with a bdev. Surely there's a cleaner way to do all
> this? Probably somewhere in sys_swapon()?

Sounds like you have something in mind, may well be better,
but please show us a patch... (my mind is elsewhere!)

Hugh