Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755149Ab2FKOhf (ORCPT ); Mon, 11 Jun 2012 10:37:35 -0400 Received: from mail-ob0-f174.google.com ([209.85.214.174]:61243 "EHLO mail-ob0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754006Ab2FKOhd (ORCPT ); Mon, 11 Jun 2012 10:37:33 -0400 Message-ID: <1339425523.4999.56.camel@lappy> Subject: Re: [PATCH v3 04/10] mm: frontswap: split out __frontswap_unuse_pages From: Sasha Levin To: konrad@darnok.org Cc: Dan Magenheimer , Minchan Kim , Konrad Wilk , linux-mm@kvack.org, linux-kernel@vger.kernel.org Date: Mon, 11 Jun 2012 16:38:43 +0200 In-Reply-To: References: <1339325468-30614-1-git-send-email-levinsasha928@gmail.com> <1339325468-30614-5-git-send-email-levinsasha928@gmail.com> <4FD5856C.5060708@kernel.org> <1339410650.4999.38.camel@lappy> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 909 Lines: 23 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/