Re: [PATCH 2/2] [mmotm] ramzswap: add handlers for various swapevents
From: Yin Kangkai
Date: Mon Dec 28 2009 - 14:28:18 EST
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;
> + }
> +
--
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/