From: Dan Magenheimer Subject: RE: [PATCH v3] [linux-3.0+ for xen] tmem: self-ballooning and frontswap-selfshrinking Date: Tue, 5 Jul 2011 12:38:03 -0700 (PDT) Message-ID: References: <20110704133135.GA6601@router-fw-old.local.net-space.pl> <16cb5bf5-a4c4-4379-845a-82668a80b60e@default 20110705175532.GA23020@router-fw-old.local.net-space.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20110705175532.GA23020@router-fw-old.local.net-space.pl> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Daniel Kiper Cc: jeremy@goop.org, xen-devel@lists.xensource.com, Ian Campbell , JBeulich@novell.com, Konrad Wilk List-Id: xen-devel@lists.xenproject.org Hi Daniel -- Thanks for taking the time to reply again. Although you didn't say it explicitly, I think you are now OK with V4. True? I need to get this wrapped up so I can re-purpose a test machine for another use. Thanks, Dan > > > Please move this condition to linux/frontswap.h and include > > > this header file (linux/frontswap.h) unconditionally. > > > > Sorry, this resolves a chicken-and-egg problem as it is. If > > the frontswap patch is not present, there is no file called > > include/linux/frontswap.h. The ifdef can be removed later > > when we are sure the frontswap patch is upstream. >=20 > Hmmm... I think that in this situation > it should be moved to frontswap patch. You prefer the egg-before-the-chicken, I prefer the chicken-before-the-egg. :-) This approach demonstrates Xen's clear use for frontswap, and allows trees both with frontswap (linux-next) and without frontswap (linux-3.0) to properly build. =20 > As I saw it was designed to read memory size from kernel > command line and module options (lib/cmdline.c). It is > mostly used in that context. Additionally, you are using > memparse() for parsing values which are not memory sizes. > It could be misleading. That is why I asked you to > change that to strict_strtoul() (it is generic). I agree that strict_strtoul is the better of two very similar ways of doing a very similar thing in the kernel. Changed. =20 > > While I would tend to agree, if checkpatch doesn't like it, > > someone is going to complain so I'd rather ensure the 80 > > character limit is preserved. >=20 > Line lengths overlimits are marked as warnings. If they are sane > then kernel developers do not complain. That's not my experience... it seems to be a personal preference and some people have an allergic reaction to longer-than-80 lines. So I prefer to err on the side of a clean checkpatch.