Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1502836pxf; Fri, 9 Apr 2021 09:57:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxK4fEd/mCDr5FYnZlTBIl3S+RdQ0WRrcd23vwv+6tl9zTz5PKhpW6SHaQIEIsKl4G35y2+ X-Received: by 2002:a63:4c55:: with SMTP id m21mr14675622pgl.251.1617987453146; Fri, 09 Apr 2021 09:57:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617987453; cv=none; d=google.com; s=arc-20160816; b=yypNyglN4KTjOmuIZSti+XN+lq8fy78Z36o0wbnJ4qlRr2DFTFs+Z6RuuEAzNxXqB0 gfvNKq8fRw4XrCJ/PjGp6RW1UKXB62VYRnFVwO0J27ABtq6OoJUTqU7/tZar54P2eB7N 0y4qZYPxtPZnBo2S6Oro3RhzBNtHViRKVOZEimvwmxA5YXenocR8ppWqsN5YIHdTgyHZ 7QUwHpUYKDrs34ugPlXNsoIwDSGAXWVu1oEGAk3l8aYpFtbBt5nIgbF+l6qYwOew9o3/ Ne3+2qeo/ouDWSni6VelwawDsDZ13Doh9MiKJnCUjTG0mYYQMBO+oUVDmYDwmEfZMhgN GETw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=AVBJF1UKxFSsEQHPFEZTdDVQO0cFE5Ox3XsDwCz00zY=; b=jmbL4trXGp2DiNzcoE+vUkZ16JjimAwskTUuFC+iTeGbxdEabqfSQGLstpy3k8kZQD s8072lOlmnnHJqbjzK2f5a5x2Vak52DLc0xX070ytQagKaFgNcWVjbuUBu/wSJuhGfsy lh4stOYv7tfJnUd4WJj+kQNriPQo/oNkExzq+SOnUFaQ2T3y+/u2m44FcRKfhX+xC64j iRNErz5cDRHILiw44aEzC3+xhLl4KUDo3Zuei9Y3wqTA+ErBrOfL9D7xG9hv4RA0jG9P UB+xDTF4v2r3y21GDHO7wuYaZ7ioMKKGoCtUGPyink9XtaSGaX9tvBMzzSW88y//0iAD GLMg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-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 i67si3667512pgd.215.2021.04.09.09.57.18; Fri, 09 Apr 2021 09:57:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234229AbhDIQ4c (ORCPT + 99 others); Fri, 9 Apr 2021 12:56:32 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:56663 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S234239AbhDIQ4a (ORCPT ); Fri, 9 Apr 2021 12:56:30 -0400 Received: from cwcc.thunk.org (pool-72-74-133-215.bstnma.fios.verizon.net [72.74.133.215]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 139GtpX5021793 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 9 Apr 2021 12:55:51 -0400 Received: by cwcc.thunk.org (Postfix, from userid 15806) id 2EBA415C3B12; Fri, 9 Apr 2021 12:55:51 -0400 (EDT) Date: Fri, 9 Apr 2021 12:55:51 -0400 From: "Theodore Ts'o" To: Ritesh Harjani Cc: Shaokun Zhang , linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Guo , Andreas Dilger Subject: Re: [PATCH] ext4: Delete redundant uptodate check for buffer Message-ID: References: <1617260610-29770-1-git-send-email-zhangshaokun@hisilicon.com> <20210401112001.tjwjfrno4ygwwzh2@riteshh-domain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210401112001.tjwjfrno4ygwwzh2@riteshh-domain> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Thu, Apr 01, 2021 at 04:50:01PM +0530, Ritesh Harjani wrote: > On 21/04/01 03:03PM, Shaokun Zhang wrote: > > From: Yang Guo > > > > The buffer uptodate state has been checked in function set_buffer_uptodate, > > there is no need use buffer_uptodate before calling set_buffer_uptodate and > > delete it. > > > > Cc: "Theodore Ts'o" > > Cc: Andreas Dilger > > Signed-off-by: Yang Guo > > Signed-off-by: Shaokun Zhang > > --- > > fs/ext4/inode.c | 6 ++---- > > 1 file changed, 2 insertions(+), 4 deletions(-) > > Thanks for the patch. Changes looks good and trivial. > > Feel free to add - > Reviewed-by: Ritesh Harjani Thanks, applied. - Ted