Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 19 Aug 2002 16:18:01 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 19 Aug 2002 16:18:00 -0400 Received: from dsl-213-023-038-214.arcor-ip.net ([213.23.38.214]:39556 "EHLO starship") by vger.kernel.org with ESMTP id ; Mon, 19 Aug 2002 16:17:58 -0400 Content-Type: text/plain; charset=US-ASCII From: Daniel Phillips To: Rik van Riel Subject: Re: [PATCH] rmap bugfix, try_to_unmap Date: Mon, 19 Aug 2002 22:23:39 +0200 X-Mailer: KMail [version 1.3.2] Cc: Andrew Morton , , Christian Ehrhardt References: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Message-Id: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 884 Lines: 27 On Monday 19 August 2002 22:15, Rik van Riel wrote: > On Mon, 19 Aug 2002, Daniel Phillips wrote: > > On Monday 12 August 2002 16:58, Rik van Riel wrote: > > > case SWAP_FAIL: > > > ret = SWAP_FAIL; > > > - break; > > > + goto give_up; > > > > Yes, I looked at that many times while reading the break as a 'break > > from loop' every time. Using the same keyword to mean 'stop looping' > > and 'endcase' was, by any measure, a stupid idea. > > What's even more curious is that 'continue' has the exact > same effect on 'switch' ... Come to think of it, what you want there is: case SWAP_FAIL: return SWAP_FAIL; -- Daniel - 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/