From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: [RFC] KEXEC: allocate crash note buffers at boot time v3 Date: Thu, 01 Dec 2011 05:20:48 +0000 Message-ID: References: <4ED787870200007800064B6F@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4ED787870200007800064B6F@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich , Andrew Cooper Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 01/12/2011 12:56, "Jan Beulich" wrote: >> + register_keyhandler('C', &crashdump_trigger_keyhandler); >> + >> + /* If no crash area, no need to allocate space for notes. */ >> + if ( 0 == kexec_crash_area.size ) >> + return 0; > > Wouldn't it make sense to switch the order of these? I also really hate this constant-first ordering. -- Keir