Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2071076rwb; Fri, 12 Aug 2022 11:24:57 -0700 (PDT) X-Google-Smtp-Source: AA6agR55kZiHHeKwkEitBZoNzeC07pXECaaSb4NMceI8StF7LPV7FcYmCws00VxE1t3ASanjpxrB X-Received: by 2002:a63:87c7:0:b0:41d:dcc3:20ef with SMTP id i190-20020a6387c7000000b0041ddcc320efmr3942295pge.583.1660328696773; Fri, 12 Aug 2022 11:24:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660328696; cv=none; d=google.com; s=arc-20160816; b=L21l0GApwG5O/kZwQssKETsBz4usskoCnn3yaKg19SNcpNzW5qiyRG3b4C1iVU8M6v BIcZxTHISCpDHvdruOFQKAiovoaApbTu52TJ5RFDZmvKKD+empUAsZ9lQMkEs6ClGmRL HXOJe38iGzIl62yX5BarA2x+CKJ3lWJXY8m8KMbiN3RzrJPLiuIkfB37JCQC7v4838OD 72D+ML6sD+c0iUz5OpKrjIfnuJNiXCeVuSvxIpfvXIft8FswGgWLLXmGwBfKGcYWeb0L GPgdfGfCRaVgsDAWwYn4TTMThQrC9m8FiwhuEAmK0a5WgCZ4bLJQ4RNz6lv0ubGOcVSL dLDQ== 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=t0J8Xd3A7DbtY1n1forrcSuPcyuTSQeP3jRY3x2ENXI=; b=XKMxaiz/9rA2oSHotqRjewnOz/JgWxX58XqylFP/KrUd7UZCxAGrNGjJPz9fOcghmZ rOKUeDHjPEpkKAoQJVspZIsNkeeFTPViuyrD7yUihf0lC6qNXGXPfy1tWn2Jic/jjske CYqCAVxm7wvvSD8pk015hDuJT53TQIBUXjM6F2iH+xNUD1SgPNqxoI1PjtA9PDIm4S8M zt1MIM6QUcwjPCxorQeNPOO1/R2YKBypRksD2DhYaltOr91MnUWuZ3qsmBLHE8+Z+Wga svmCHNlO8FZ/PZX/2gkTaPHsORlPKWE7anB6wMT64WEvtEDItqBfTpiVgFVELpD1gU+O r7MQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BhhOufxL; 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 y20-20020a170902cad400b001714e7608f0si2576553pld.386.2022.08.12.11.24.41; Fri, 12 Aug 2022 11:24:56 -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=BhhOufxL; 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 S231234AbiHLSUk (ORCPT + 99 others); Fri, 12 Aug 2022 14:20:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230105AbiHLSUj (ORCPT ); Fri, 12 Aug 2022 14:20:39 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B26B4D807; Fri, 12 Aug 2022 11:20:39 -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 EEE3B61765; Fri, 12 Aug 2022 18:20:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 188F4C433D6; Fri, 12 Aug 2022 18:20:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660328438; bh=X2PIlKbqhvmZj4CcZUAZ/aUM7rnGwIsXQ2MW7MrU+3I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BhhOufxLdINCLlR2giV5zCFghE8qbNuq+q4c1jluGot6825qvTk+D9TL3D+2mocJC LCfXBbR+w/vhBV+SXg92M591/OTjMlu9DbkGkvpxYgnIm+ZQYOpRXlVJH9+Hj4eB/y WU3qpOV/U7PuMTYduVZPlV0w/XWmmHFNzyecM2rehws0DQ3KdE+DDbPhNwvFpT27ly ts9MipYg0mVN22L1RJXCrXSYjgsbPHQVh86QMr5vXqoOosWIzetzQOLXNhPnqwul2b QeDdn9bBczEErdx/fKf8cQTGSST0poaBJ1r5YFxVWoVLkqLTz5yrs6+e2zHletW0MS 6giM6GyUqlRMg== Date: Fri, 12 Aug 2022 11:20:36 -0700 From: Eric Biggers To: Lukas Czerner Cc: linux-ext4@vger.kernel.org, jlayton@kernel.org, tytso@mit.edu, linux-fsdevel@vger.kernel.org, Dave Chinner , Christoph Hellwig , Jan Kara Subject: Re: [PATCH v2 2/3] fs: record I_DIRTY_TIME even if inode already has I_DIRTY_INODE Message-ID: References: <20220803105340.17377-1-lczerner@redhat.com> <20220803105340.17377-2-lczerner@redhat.com> <20220805122306.anavrrmt6lqwd2yt@fedora> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220805122306.anavrrmt6lqwd2yt@fedora> 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 05, 2022 at 02:23:06PM +0200, Lukas Czerner wrote: > > > > Also what is the precise meaning of the flags argument to ->dirty_inode now? > > > > sb->s_op->dirty_inode(inode, > > flags & (I_DIRTY_INODE | I_DIRTY_TIME)); > > > > Note that dirty_inode is documented in Documentation/filesystems/vfs.rst. > > Don't know. It alredy don't mention I_DIRTY_SYNC that can be there as > well. Well, it didn't really need to because there were only two possibilities: datasync and not datasync. This patch changes that. > Additionaly it can have I_DIRTY_TIME to inform the fs we have a > dirty timestamp as well (in case of lazytime). This is introduced by this patch. - Eric