Re: [PATCH] HWPOISON: Implement hwpoison-on-free for soft offlining

From: Wu Fengguang
Date: Tue Oct 12 2010 - 08:41:42 EST


> >> + if (PageHWPoisonOnFree(page))
> >> + hwpoison_page_on_free(page);
> > hwpoison_page_on_free() seems to be undefined when
> > CONFIG_HWPOISON_ON_FREE is not defined.
>
> Yes, but I rely on the compiler never generating the call in this case
> because
> the test is zero.
>
> It would fail on a unoptimized build, but the kernel doesn't support
> that anyways.

Fair enough.

Reviewed-by: Wu Fengguang <fengguang.wu@xxxxxxxxx>

> Thanks for the review.

:)

Thanks,
Fengguang
--
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/