Re: [PATCH v3 04/10] mm: frontswap: split out__frontswap_unuse_pages

From: Sasha Levin
Date: Mon Jun 11 2012 - 10:37:28 EST


On Mon, 2012-06-11 at 10:31 -0400, Konrad Rzeszutek Wilk wrote:
> > I'm not sure of the correct kernel style but I like the fact
> > that assert_spin_locked both documents the lock requirement and tests
> > it at runtime.
>
> The kernel style is to do "
> 3) Separate your changes.
>
> Separate _logical changes_ into a single patch file.
> "
>
> So it is fine, but it should be in its own patch.

It is one logical change: I've moved a block of code that has to be
locked in the swap mutex into it's own function, adding the spinlock
assertion isn't new code, nor it relates to any new code. It's there to
assert that what happened before still happens now.

--
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/