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

From: Nitin Gupta
Date: Mon Dec 28 2009 - 21:44:38 EST


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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/