Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752057Ab0HPBcG (ORCPT ); Sun, 15 Aug 2010 21:32:06 -0400 Received: from mail-px0-f174.google.com ([209.85.212.174]:35675 "EHLO mail-px0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751891Ab0HPBcE convert rfc822-to-8bit (ORCPT ); Sun, 15 Aug 2010 21:32:04 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=u6ddvamD4vS+nqldILWbGDhW4lZkPpB/HyWNxyfEBcHWoVM5aZ8evRpE/G0Tv37kgB AncDL+M1fxSEprzeEo15uJKEJsHeA961DpIoKypB97sh9A3BijhQGJXp838R1jigEZHM tYddYfKJ52/7T8EZ2E0zRfNDqu31LjRvwS7Hk= MIME-Version: 1.0 In-Reply-To: References: Date: Mon, 16 Aug 2010 09:32:03 +0800 Message-ID: Subject: Re: [PATCH] mm: code improvement of check_stack_guard_page From: jovi zhang To: Linus Torvalds Cc: linux-kernel@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1029 Lines: 25 On Mon, Aug 16, 2010 at 1:58 AM, Linus Torvalds wrote: > On Sat, Aug 14, 2010 at 10:15 PM, jovi zhang wrote: >> >> little code improvement of check_stack_guard_page function. >> this commit is on top of commit "mm: keep a guard page below a >> grow-down stack segment" of linus. > > I don't think your patch is in any way wrong, but I just checked, and > it makes absolutely zero difference to the code generation at least > for my version of gcc. The resulting assembly is identical except for > the line numbers that changed (BUG_ON() line/file information and > debug information). > > So I think I prefer the shallower indentation. > >                       Linus > That's fine. I havn't consider gcc optimization. -- 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/