Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2064676rwb; Fri, 12 Aug 2022 11:16:10 -0700 (PDT) X-Google-Smtp-Source: AA6agR7SAmpoKR1iAJx1U/wKhIcW4J4Wy188KIoI57Nqt/l/MayE7G6XhmlywHRwTPC/yTAUBFSp X-Received: by 2002:aa7:d60b:0:b0:43c:f7ab:3c8f with SMTP id c11-20020aa7d60b000000b0043cf7ab3c8fmr4577175edr.6.1660328170220; Fri, 12 Aug 2022 11:16:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660328170; cv=none; d=google.com; s=arc-20160816; b=wwdWFa0DWDzpWc45XPiOZ5/uA3qJuU7Ji7jXvbgtfMYek1menfy/Ao8zwWj/xQ0h3V 7RN6CrbDPem/y10of6tca8pzjFa1UaFSQd1ccE4pKMLApgjX/ukFrg6IYqKmSf5XqgUD To88DUjf56jn9S51t541+bPgtLS/PNs4Q6xUpks08x9DabGC9+zphnxLWhYeNTzk8oqA 9PiEZACBqFOPDcGKjXXnsQ/6PeqMSKgXsE7d57HUSx39C0FeomeyO+nfBD02SMZ4PLOF 7ipackTlIio+GQvd1KwJvLuadbCeZUGyjHWC2oDi5xQFdRuO3NUi3l0BBk3vcxLItZTo YsIw== 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:dkim-signature; bh=7sEJiVhIWBx0JfxXbdXLFW61bZzfIYhWQOQCbwL2ixU=; b=OTfT0UhxX/i07f0//m4pEA48gjUf1tHbT6mydVvCRQVhXZznVom43iCLFq8Br+A7sQ PxVNA3fjdYhopeTFVu2trZTsR7+mefaBbHjngWXcyhDkIQl1GfUnzyajsuKK6UyJNMcW cEwiA80BN4/5K9sc0+E1zwLrorBRNXl9VL3ykRpczbRKUNtbMZu5/Qo8nztj5LYaefpG +x1HL1xGjL/seSKLBjvbmjxC/VbtqFzkV+2tmo2VsWAHz34kIHY72/o9WHypwSZlxm8D xT3PaSZeJ1kvPWK+upESrv5qyi+a3Ff816DAF94KEgol65T154UZpn8g0KXbLxBTbb+m LTZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eTJV4Khr; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sd31-20020a1709076e1f00b007308550af97si2355294ejc.735.2022.08.12.11.15.32; Fri, 12 Aug 2022 11:16:10 -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=@kernel.org header.s=k20201202 header.b=eTJV4Khr; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238844AbiHLSMe (ORCPT + 99 others); Fri, 12 Aug 2022 14:12:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238127AbiHLSMa (ORCPT ); Fri, 12 Aug 2022 14:12:30 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01CE5B2D8A; Fri, 12 Aug 2022 11:12:29 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 94A54616EA; Fri, 12 Aug 2022 18:12:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B35A1C433C1; Fri, 12 Aug 2022 18:12:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660327949; bh=Rv6lMtGY5d9H88atrguKPOp8nVJS42od+lW9pBzVVxQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eTJV4KhrHOaSfFxNURrSUMS6gfqTumbLuHtpyk/xawEvrWJ9/TX+wPXUKZpVmx2MM hBjDW3Nf2JBINWDmIevduFbMAncjc5EC3ICCZDJrdkbwn5la44RnV5IKmkn7eM1qQ8 KcIqKPzUlFTbuLHbR8p6RNYKgzL2V+Mr6AUvxuboQQ9jZfHV6+/THXkty2iASGS33J OW1vsyvTDWI983hyNLe2kUcZRgUfmNlCKhfPT1JbGcrynnB24WZF1WS6KJ2Pk/DNlH kRyU1DngWKj73oWw6nzlpK/Ck9Xtw+A++TgdtpnJVja+OizP65iKcv5/tbJ4YGEeCN 0p/2Qg9YtVbmQ== Date: Fri, 12 Aug 2022 11:12:27 -0700 From: Eric Biggers To: Lukas Czerner Cc: linux-ext4@vger.kernel.org, tytso@mit.edu, jlayton@kernel.org, jack@suse.cz, linux-fsdevel@vger.kernel.org, david@fromorbit.com, Christoph Hellwig Subject: Re: [PATCH v3 2/3] fs: record I_DIRTY_TIME even if inode already has I_DIRTY_INODE Message-ID: References: <20220812123727.46397-1-lczerner@redhat.com> <20220812123727.46397-2-lczerner@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220812123727.46397-2-lczerner@redhat.com> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Fri, Aug 12, 2022 at 02:37:26PM +0200, Lukas Czerner wrote: > diff --git a/Documentation/filesystems/vfs.rst b/Documentation/filesystems/vfs.rst > index 6cd6953e175b..5d72b6ba4e63 100644 > --- a/Documentation/filesystems/vfs.rst > +++ b/Documentation/filesystems/vfs.rst > @@ -274,6 +274,8 @@ or bottom half). > This is specifically for the inode itself being marked dirty, > not its data. If the update needs to be persisted by fdatasync(), > then I_DIRTY_DATASYNC will be set in the flags argument. > + If the inode has dirty timestamp and lazytime is enabled > + I_DIRTY_TIME will be set in the flags. The new sentence is not always true, since with this patch if __mark_inode_dirty(I_DIRTY_INODE) is called twice on an inode that has I_DIRTY_TIME, the second call will no longer include I_DIRTY_TIME -- even though the inode still has dirty timestamps. Please be super clear about what the flags actually mean -- I'm still struggling to understand this patch... - Eric