From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 7 Jun 2001 16:44:06 +0100 (BST) From: Hugh Dickins Subject: Re: [PATCH] Reap dead swap cache earlier v2 In-Reply-To: <15135.37871.373389.465893@gargle.gargle.HOWL> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: John Stoffel Cc: Marcelo Tosatti , Linus Torvalds , lkml , linux-mm@kvack.org List-ID: On Thu, 7 Jun 2001, John Stoffel wrote: > Shouldn't the "swap_count(page) == 1" check be earlier in the if > statement, so we can fall through more quickly if there is no work to > be done? A small optimization, but putting the common cases first > will help. I don't think so: the out-of-line swap_count() function is considerably more complicated than the macros and inline functions tested before it. Hugh -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/