Re: [PATCH RFC] mm: simplify frontswap_init()

2012-10-31 Thread Konrad Rzeszutek Wilk
On Tue, Oct 30, 2012 at 09:12:53PM -0200, Cesar Eduardo Barros wrote: > The function frontswap_init() uses the passed parameter only to check > for the presence of the frontswap_map. It is also passed down to > frontswap_ops.init(), but all implementations of it in the kernel ignore > the

Re: [PATCH RFC] mm: simplify frontswap_init()

2012-10-31 Thread Konrad Rzeszutek Wilk
On Tue, Oct 30, 2012 at 09:12:53PM -0200, Cesar Eduardo Barros wrote: The function frontswap_init() uses the passed parameter only to check for the presence of the frontswap_map. It is also passed down to frontswap_ops.init(), but all implementations of it in the kernel ignore the parameter.

[PATCH RFC] mm: simplify frontswap_init()

2012-10-30 Thread Cesar Eduardo Barros
The function frontswap_init() uses the passed parameter only to check for the presence of the frontswap_map. It is also passed down to frontswap_ops.init(), but all implementations of it in the kernel ignore the parameter. Do the check for frontswap_map in the caller instead and remove the

[PATCH RFC] mm: simplify frontswap_init()

2012-10-30 Thread Cesar Eduardo Barros
The function frontswap_init() uses the passed parameter only to check for the presence of the frontswap_map. It is also passed down to frontswap_ops.init(), but all implementations of it in the kernel ignore the parameter. Do the check for frontswap_map in the caller instead and remove the