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

Yin Kangkai
2009-12-28T16:26:56Z

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?

> + pr_err("Error registering swapoff notifier\n");
> + goto out;
> + }
> +