Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1710861pxb; Fri, 20 Nov 2020 17:27:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJxmqps+3sAcunu51XwvvrRg1VwmznctaSEt18Xam/0Nfhl+bASe/Gj+HxdinYRNtQe5HoBu X-Received: by 2002:aa7:d502:: with SMTP id y2mr38519766edq.120.1605922057184; Fri, 20 Nov 2020 17:27:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605922057; cv=none; d=google.com; s=arc-20160816; b=udCIzMQ286drfdBXNusZlNWlidue/zVu99Q/2gG/WaMmfePjK589F8+TL+j2yZVLFK GwI1p1HwVmFxmCXoZyTqdkSvV8DBFytwILG0ZhocW0/N/q5prfUQCcqkIyzTVneCAnOl ETnXVYW7kQDgpX20j6YF6IDjtayT1qLfQFZV6uVWeWZu2xAiAYHrJUuQ3NbpHCTCSlC/ 5EEBsYdDtIWBuabnSx/cRlYVlWTVolUfHBMtSYJRwq4nTHbM2tI6JARH7XSO+QZoBp15 nrd58NBCiTijr+/g7Yv/zlaHB0byyapvkGJkufMocIpjbN536nV0NWXWCLDMhU2/9n+M oGDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=2Tu2WMYWe1xPWgPSzQT5Rh33RGDZGN6dtZ56n2KT/lg=; b=Iq1nRZYe02vYPh5e8vhGqOt/7loOwCAFtFUwsnoVce7aMMd/T9WY7DnTdLKrXcO/x0 QQxHzPZ3lYS3sYdMqDoUmWcy4qEXR03B/usRXiEzh6QGwPZ7v+qby/t/g1KqpR93+OMs nFA/PDwq3FSC8yLfssnWUOSGwUxsNQI5rW1S+dhRbm0M1Y/XK3UXV59XugMrU51jnsJI eydSwKWXuoE7l+eopZuCZwTBxOzKr9vL/zXxNAMQzuB8p5n/AiYk4DERN/guxNHZgwcB enQV4Eq7h6TQnLAm5+VQ09oep/G3xCflP0qmcH+bXgZiudBuAnYVihlwm55I2iEsImTw 3OOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=hjdf06Pg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x5si2642132ejj.579.2020.11.20.17.27.13; Fri, 20 Nov 2020 17:27:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=hjdf06Pg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728534AbgKUBWw (ORCPT + 99 others); Fri, 20 Nov 2020 20:22:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725890AbgKUBWw (ORCPT ); Fri, 20 Nov 2020 20:22:52 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E45F6C0613CF; Fri, 20 Nov 2020 17:22:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description; bh=2Tu2WMYWe1xPWgPSzQT5Rh33RGDZGN6dtZ56n2KT/lg=; b=hjdf06Pgn0RzN6ZtxnXQAicAdK oZSAL8rMWGk63BQhkn7CLHztm5kRnP4xh9fksxOEX7k3XZdabgvutYvIa2V18gqjhKbXLI0krhq2T ca8sJ5nyYgKoW/gEtn1QBsPj7qG2CfreVv26RBpf/kGilsmM51UKe6bUYZ8waE6eHuzA2tspaoeqh a1EzXTpV9b6KzGImXBy5raZ+LE+bqtWByFh8H6HO2oMrBJh7QKJIC1bTlG9i3jBrXzN1jGe6XP9QE JkYly/EWRvUEC396/2xfSAA1VDT8blUwPBoS6LDIRek7I7XIfDc2dezo9jkL6S2jY+XErAMLUsKsx 8nyULHiA==; Received: from [2601:1c0:6280:3f0::bcc4] by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kgHc0-00064a-PM; Sat, 21 Nov 2020 01:22:49 +0000 Subject: Re: [PATCH v4] fs/aio.c: Cosmetic To: Alejandro Colomar , Benjamin LaHaise , Andreas Dilger , Joe Perches Cc: Alejandro Colomar , linux-aio@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org References: <20201103095015.3911-1-colomar.6.4.3@gmail.com> <20201120220647.8026-1-colomar.6.4.3@gmail.com> From: Randy Dunlap Message-ID: Date: Fri, 20 Nov 2020 17:22:45 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20201120220647.8026-1-colomar.6.4.3@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/20/20 2:06 PM, Alejandro Colomar wrote: > Changes: > - Consistently use 'unsigned int', instead of 'unsigned'. > - Add a blank line after variable declarations. > - Move variable declarations to the top of functions. > - Invert logic of 'if's to reduce indentation and simplify function logic. > - Add goto tags when needed. > - Early return when appropriate. > - Add braces to 'else' if the corresponding 'if' used braces. > - Replace spaces by tabs > - Add spaces when appropriate (after comma, around operators, ...). > - Split multiple assignments. > - Align function arguments. > - Fix typos in comments. > - s/%Lx/%llx/ Standard C uses 'll'. > - Remove trailing whitespace in comments. > > This patch does not introduce any actual changes in behavior. > > Signed-off-by: Alejandro Colomar > --- > > Hi, > > I rebased the patch on top of the current master, > to update it after recent changes to aio.c. > > Thanks, > > Alex > > fs/aio.c | 466 +++++++++++++++++++++++++++++-------------------------- > 1 file changed, 243 insertions(+), 223 deletions(-) Hi, I reviewed this patch. I think it looks OK, but I wish that there was a better way to review it. I'm not asking you to redo the patch, but I think that it would have been easier to review 2 patches: one that contains trivial changes[1] and one that requires thinking to review it -- where the trivial changes are not getting in the way of looking at the non-trivial changes. [1] the trivial set of changes, taken from your patch description: > - Consistently use 'unsigned int', instead of 'unsigned'. > - Add a blank line after variable declarations. > - Move variable declarations to the top of functions. > - Add braces to 'else' if the corresponding 'if' used braces. > - Replace spaces by tabs > - Add spaces when appropriate (after comma, around operators, ...). > - Split multiple assignments. > - Align function arguments. > - Fix typos in comments. > - s/%Lx/%llx/ Standard C uses 'll'. > - Remove trailing whitespace in comments. OK, that's everything except for this: > - Invert logic of 'if's to reduce indentation and simplify function logic. > - Add goto tags when needed. > - Early return when appropriate. thanks. -- ~Randy Reviewed-by: Randy Dunlap