[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Xen-devel] [PATCH] [linux-2.6.39.x for xen] tmem: self-ballooning and frontswap-selfshrinking

On Tue, 2011-06-07 at 17:21 +0100, Dan Magenheimer wrote:
> I was wondering why xen-balloon.c and balloon.c are separate to
> begin with?  It forces a global variable balloon_stats which could
> be static otherwise.  Though it might be possible for a kernel to be
> built with only one of the two to save space, is there any good
> reason?
> Or is it just because the file was getting too big? 

balloon.c is the core functionality.

xen-balloon.c is the "user interface" parts, i.e. the proc and sys

The stuff in balloon.c has more users than just the user interface
parts. e.g. other drivers want it etc.

See 803eb047a28d239809fff1f87274cdaa94e0d8ea for more info which was
done for the use of e.g. ca47ceaa2c407bbddd395c1807b616042365bd65.


Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.