Re: [PATCH 2/2] [mmotm] ramzswap: add handlers for various swap events

Nitin Gupta
2009-12-29T02:44:34Z

On 12/28/2009 09:56 PM, Yin Kangkai wrote:
> On 2009-12-28, 06:50 +0530, Nitin Gupta wrote:
>> + ret = register_swap_event_notifier(&ramzswap_swapon_nb,
>> + SWAP_EVENT_SWAPON, 0);
>> + if (ret) {
>> + pr_err("Error registering swapon notifier\n");
>> + goto out;
>> + }
>> +
>> + ret = register_swap_event_notifier(&ramzswap_swapoff_nb,
>> + SWAP_EVENT_SWAPOFF, 0);
>> + if (ret) {
>
> Sorry, but an unregister here?

Oh, I missed it. I will add it in next patch revision.

Thanks,
Nitin