From: Matthew Wilcox Subject: Re: [RFC/PATCH 2/5] mm/fs: add execute in place support Date: Wed, 11 May 2005 18:50:50 +0100 Message-ID: <20050511175050.GE10567@parcelfarce.linux.theplanet.co.uk> References: <428216F7.30303@de.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, schwidefsky@de.ibm.com, akpm@osdl.org Return-path: Received: from parcelfarce.linux.theplanet.co.uk ([195.92.249.252]:43997 "EHLO parcelfarce.linux.theplanet.co.uk") by vger.kernel.org with ESMTP id S262010AbVEKRuk (ORCPT ); Wed, 11 May 2005 13:50:40 -0400 To: cotte@freenet.de Content-Disposition: inline In-Reply-To: <428216F7.30303@de.ibm.com> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Wed, May 11, 2005 at 04:30:15PM +0200, Carsten Otte wrote: > + BUG_ON(!mapping->a_ops->get_xip_page); No need to put this assert here. You'll get exactly as good a stack trace ... > + page = mapping->a_ops->get_xip_page(mapping, > + index*(PAGE_SIZE/512), 0); ... here, when you call through a null pointer. -- "Next the statesmen will invent cheap lies, putting the blame upon the nation that is attacked, and every man will be glad of those conscience-soothing falsities, and will diligently study them, and refuse to examine any refutations of them; and thus he will by and by convince himself that the war is just, and will thank God for the better sleep he enjoys after this process of grotesque self-deception." -- Mark Twain