Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2253113rwd; Tue, 13 Jun 2023 23:33:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ60Rh3b0EgW0nRUfiXpkqBBpNAIMzbrhCuF65PVNnTXGEcOToIDeLjQu3FepkVMRFQxOmpc X-Received: by 2002:ac8:5dc7:0:b0:3f6:b017:6289 with SMTP id e7-20020ac85dc7000000b003f6b0176289mr1107605qtx.10.1686724381252; Tue, 13 Jun 2023 23:33:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686724381; cv=none; d=google.com; s=arc-20160816; b=K4sMuDVQcY/h7e4dccqYQlIxzhUnnGJ1Rrw0OQ+zGQUF06fw9z0lBIfo9pRQBL9MnS MGTWPR0CUIRBrSUCbAbYKN9fZ5fXVwLAxiT4KN77teVOTvon2Lny0F4oO+xm7u63Chv7 2IQCzYpE1dxane6Ru3kjLxxcI7MpPNaZ2R1vzfTy5gClKO3FELGiGbg+btRmxLMcQ71Z QWZtt6KzyCo8w03QTppaH7BZdkgYnNgLc8C2saK1LqZf+wMwPDBLMOJ0aCTcH1ZKeUXL PvTlKp6r3DkEXJ2KN1nmEWNy9AwUqzerMcH7nQ9RH1iYJAPuDCwo7cj10IMibFOSt/fw bA9Q== 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=WhRg7AS1rFppn5iIs8F60bd4ptNXmG1fNIigho91Fjw=; b=EwTs/icYvmM3OioSHdLEQMB66SFrWgh+OYFyuMWL00skJezb6rZIx27DMvrYA2BZx1 RxBCAC2f9b/Pat4y7urFIcDuWsDmn2xfcMSQygDRTqhOClOYlwP6PYso/0CNTmDHhPsv 59LVxq7/T4UUQ1A16LZQaE9wPCSrQMKmDHB9qKyayMA+KHH1eXfju0KTaqqBybIYlpQd iUgAtcVKTYQA/tMSjel4Y3RBRFO6GXBA4aPu2XkBgTdO/dFwFNlH8Y8Yj75UuM2uGQl/ zhfPD2kDmuiZjCI663/DeUohuD4ooGoFUHLNZ5GtQxuGHirRuE0xyb+qUNYI8zx6PQaw /6qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XnX11RI9; 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 i20-20020a633c54000000b0053f812a109esi54529pgn.796.2023.06.13.23.32.46; Tue, 13 Jun 2023 23:33:01 -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=XnX11RI9; 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 S242777AbjFNGaD (ORCPT + 99 others); Wed, 14 Jun 2023 02:30:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243194AbjFNG3p (ORCPT ); Wed, 14 Jun 2023 02:29:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 442C31BF7; Tue, 13 Jun 2023 23:29:43 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E979563DEF; Wed, 14 Jun 2023 06:29:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D9C5C433C8; Wed, 14 Jun 2023 06:29:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686724178; bh=XjFkOsOx183EvSiM4yPrENjUW2d5opZ5TvQfHk7+D2E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XnX11RI911zmZAW2F67s3+Ymqh1WyrS9FAGLruYi0rzwQOXU1+S0hh65U7iPNXoq6 chqapxeFWuQPWe1xw5png9URTFBluyLfk4L59UjPan9xuJTRHK//t2Z5ie2yzGNTva qtQi48csnlK0bKeNPyWNQ7KX8SMFwBcnhVywwMAmbDknwoN451G2FPeFgN+O75pBm3 WtTXZEDZE2FCRdCej0zaWKFjud0zNmD8JJuXe2p307imyZZdCdixaF6gKTcbWD0OOt 9+GJw+FhGue1elde/UvtQ6Neflo/LSA/woAWF7Btga+5DatyoY4t6prX187y6cupLw qW86pY+AZP7aQ== Date: Wed, 14 Jun 2023 08:29:29 +0200 From: Christian Brauner To: Jeff Layton Cc: Jan Kara , Alexander Viro , "Darrick J. Wong" , Hugh Dickins , Andrew Morton , Dave Chinner , Chuck Lever , Amir Goldstein , David Howells , Neil Brown , Matthew Wilcox , Andreas Dilger , Theodore T'so , Chris Mason , Josef Bacik , David Sterba , Namjae Jeon , Steve French , Sergey Senozhatsky , Tom Talpey , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-ext4@vger.kernel.org, linux-mm@kvack.org, linux-nfs@vger.kernel.org, linux-cifs@vger.kernel.org Subject: Re: [PATCH v4 2/9] fs: add infrastructure for multigrain inode i_m/ctime Message-ID: <20230614-fanal-infamieren-b9c106e37b73@brauner> References: <20230518114742.128950-1-jlayton@kernel.org> <20230518114742.128950-3-jlayton@kernel.org> <20230523100240.mgeu4y46friv7hau@quack3> <20230523124606.bkkhwi6b67ieeygl@quack3> <11dc42c327c243ea1def211f352cb4fc38094cc0.camel@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <11dc42c327c243ea1def211f352cb4fc38094cc0.camel@kernel.org> X-Spam-Status: No, score=-7.1 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 Tue, Jun 13, 2023 at 09:09:29AM -0400, Jeff Layton wrote: > On Tue, 2023-05-23 at 14:46 +0200, Jan Kara wrote: > > On Tue 23-05-23 06:40:08, Jeff Layton wrote: > > > On Tue, 2023-05-23 at 12:02 +0200, Jan Kara wrote: > > > > > > > > So there are two things I dislike about this series because I think they > > > > are fragile: > > > > > > > > 1) If we have a filesystem supporting multigrain ts and someone > > > > accidentally directly uses the value of inode->i_ctime, he can get bogus > > > > value (with QUERIED flag). This mistake is very easy to do. So I think we > > > > should rename i_ctime to something like __i_ctime and always use accessor > > > > function for it. > > > > > > > > > > We could do this, but it'll be quite invasive. We'd have to change any > > > place that touches i_ctime (and there are a lot of them), even on > > > filesystems that are not being converted. > > > > Yes, that's why I suggested Coccinelle to deal with this. > > > I've done the work to convert all of the accesses of i_ctime into > accessor functions in the kernel. The current state of it is here: > > > https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git/commit/?h=ctime > > As expected, it touches a lot of code, all over the place. So far I have > most of the conversion in one giant patch, and I need to split it up > (probably per-subsystem). Yeah, you have time since it'll be v6.6 material. > > What's the best way to feed this change into mainline? Should I try to > get subsystem maintainers to pick these up, or are we better off feeding > this in via a separate branch? I would prefer if we send them all through the vfs tree since trickle down conversions are otherwise very painful and potentially very slow.