Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3704853rwa; Tue, 23 Aug 2022 08:47:39 -0700 (PDT) X-Google-Smtp-Source: AA6agR7y8sCmm9IXA3IQvNZ8kENASJUx05i4w/9+JSzio2QtWzoFb1aO13YwKgfFBHvnnOJKx4SP X-Received: by 2002:a05:6a00:1393:b0:536:5b8a:c35b with SMTP id t19-20020a056a00139300b005365b8ac35bmr14980528pfg.5.1661269659694; Tue, 23 Aug 2022 08:47:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661269659; cv=none; d=google.com; s=arc-20160816; b=Lyj95733CuNO78QopUT3MMosCF72+O9sa54+RNT5gHNMnMVnlLk/ByOtAECn5XhJtc sIgXV6ONJVQCzmU0vW2R1B5GB/OpX+gIi31birLAWJyWHSIQQBzXMlhqaknWDI4Kvsmo a4/CisR260W7HoRv3Za/s4gT9O9NNZvd1dH0WK0OfnRaUI+QZMhEKm3PwrRyUbWOMP0q w2lgGgGlLLKuX3en1qAOEkZ7gWJP/AjNKBkUeLAgisi9TyNdgvB87jgfO2wwGnkoz0bD FwJKgJGLKtFKhaMT+dn5xtnejjLNWQlTiPXlgzMGg8odxRLHuyOgYXSru0T0ZrGwhPL4 M/ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:references:in-reply-to:subject :cc:to:from:mime-version:content-transfer-encoding:dkim-signature :dkim-signature; bh=O5U0gw3AtIl2Nq1G66dQgq5N3st5lWOBhdWxLO2VlGE=; b=QZWeoEq+QRAakTgvAZZ8LpGEJJ8LKewMcT3SkX6SY4x9bnFuLrsDzQGZahex6GbHdX cFB0dygbSGslFaCN3RVOag8zgvI/OdBSNUm+E5zcQC7KfefG1phoVMuQFgvl33cYyFn3 KPZP3y318vryWYYh0zAmUeQ7xDkQThhAn+Y/efHI+eVZvHSosWw73+MB5apzVYAIn4pJ RZFqUj3LUf+qoFgK9YpBnnh//RR3oI9vUiFhjTKM4xhOaOxXY36A0SkzSJqPtMePjydu T17/B5RbsE0gJMrUdTJMOqu1jf/s2WC78bCTQlYf0RKFd94kZXdNgmZ/7b0yOcu0pzfc gCCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=ammxSTYU; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=K9Ngnq2p; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y22-20020a63de56000000b004297419ae8bsi13939976pgi.29.2022.08.23.08.47.13; Tue, 23 Aug 2022 08:47:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=ammxSTYU; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=K9Ngnq2p; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243296AbiHWPnP (ORCPT + 99 others); Tue, 23 Aug 2022 11:43:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243807AbiHWPmt (ORCPT ); Tue, 23 Aug 2022 11:42:49 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA1C7EE1C; Tue, 23 Aug 2022 04:39:26 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 324BC336BA; Tue, 23 Aug 2022 11:38:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1661254700; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=O5U0gw3AtIl2Nq1G66dQgq5N3st5lWOBhdWxLO2VlGE=; b=ammxSTYUkCQ6Lu+GqUnnZHT8EpBMtIsT8PA1UnmlPL8dUH9A4bdRtTR4IEpcF0e0rMCEJc Vhy/BEKQFv6oKQaF/R+zchvlg6RoLjwuFvj9yZd3h/HK2bz+4p+qfP7fnJBZVo6kilPSMF m0Ja3K2+SsAW+hPlqSuEjXjUFI6BOoM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1661254700; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=O5U0gw3AtIl2Nq1G66dQgq5N3st5lWOBhdWxLO2VlGE=; b=K9Ngnq2pAX6810jWu8OsMysSuPXoUMzaNMB0Ba/tGCgdVPJMrbOTnkJBE2jpToacYEf8pd cHBWZKBczM/X5mDw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 26C5F13AB7; Tue, 23 Aug 2022 11:38:16 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id cKPANCi8BGP8LwAAMHmgww (envelope-from ); Tue, 23 Aug 2022 11:38:16 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 From: "NeilBrown" To: "Jeff Layton" Cc: "Dave Chinner" , "Mimi Zohar" , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-integrity@vger.kernel.org, linux-nfs@vger.kernel.org, linux-xfs@vger.kernel.org, linux-ext4@vger.kernel.org, "Trond Myklebust" Subject: Re: [PATCH] iversion: update comments with info about atime updates In-reply-to: <6cbcb33d33613f50dd5e485ecbf6ce7e305f3d6f.camel@kernel.org> References: <20220822133309.86005-1-jlayton@kernel.org>, , , <18827b350fbf6719733fda814255ec20d6dcf00f.camel@linux.ibm.com>, <4cc84440d954c022d0235bf407a60da66a6ccc39.camel@kernel.org>, <20220822233231.GJ3600936@dread.disaster.area>, <6cbcb33d33613f50dd5e485ecbf6ce7e305f3d6f.camel@kernel.org> Date: Tue, 23 Aug 2022 21:38:07 +1000 Message-id: <166125468756.23264.2859374883806269821@noble.neil.brown.name> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Tue, 23 Aug 2022, Jeff Layton wrote: > So, we can refer to that and simply say: > > "If the function updates the mtime or ctime on the inode, then the > i_version should be incremented. If only the atime is being updated, > then the i_version should not be incremented. The exception to this rule > is explicit atime updates via utimes() or similar mechanism, which > should result in the i_version being incremented." Is that exception needed? utimes() updates ctime. https://man7.org/linux/man-pages/man2/utimes.2.html doesn't say that, but https://pubs.opengroup.org/onlinepubs/007904875/functions/utimes.html does, as does the code. NeilBrown