From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5342DC31E5B for ; Tue, 18 Jun 2019 01:12:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3427920861 for ; Tue, 18 Jun 2019 01:12:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726243AbfFRBMT (ORCPT ); Mon, 17 Jun 2019 21:12:19 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:36480 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726007AbfFRBMT (ORCPT ); Mon, 17 Jun 2019 21:12:19 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92 #3 (Red Hat Linux)) id 1hd2fY-00048L-I1; Tue, 18 Jun 2019 01:12:16 +0000 Date: Tue, 18 Jun 2019 02:12:16 +0100 From: Al Viro To: Aurelien Thierry Cc: linux-fsdevel@vger.kernel.org, trivial@kernel.org Subject: Re: [PATCH] fs: relatime update - Match comment with behavior Message-ID: <20190618011216.GY17978@ZenIV.linux.org.uk> References: <5553a3e1-bc49-4553-0648-91350be3ae9c@quoscient.io> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5553a3e1-bc49-4553-0648-91350be3ae9c@quoscient.io> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Tue, Jun 11, 2019 at 07:45:40AM +0200, Aurelien Thierry wrote: > 2 comments right before code wrongly state that if (c|m)time is younger > than atime, then atime is updated (behavior is the other way around). > > Fix aligns comments with actual behavior, function description and > documentation (man mount). Huh? "mtime is younger than atime" means that mtime refers to the moment later than that refered to by atime, i.e that atime refers to the moment earlier than that refered to by mtime. What is the problem you are trying to fix? Both the original and changed comments mean exact same thing. And yes, the changed comment does match the actual behaviour. Just as the original one does...