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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8DE85EEB571 for ; Fri, 8 Sep 2023 23:05:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344712AbjIHXFy (ORCPT ); Fri, 8 Sep 2023 19:05:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245662AbjIHXFp (ORCPT ); Fri, 8 Sep 2023 19:05:45 -0400 Received: from mail-il1-x132.google.com (mail-il1-x132.google.com [IPv6:2607:f8b0:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26A901FEB for ; Fri, 8 Sep 2023 16:05:41 -0700 (PDT) Received: by mail-il1-x132.google.com with SMTP id e9e14a558f8ab-34df2a961a0so8872945ab.2 for ; Fri, 08 Sep 2023 16:05:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fromorbit-com.20230601.gappssmtp.com; s=20230601; t=1694214340; x=1694819140; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=LvlWMVxCyv+zi38Xl3VaIYCEHxmB3dP1Hy1CKA8S0RE=; b=3bOldav7wZ/OG6ZW/IYlEMM7NgMwqPQrpY1wnIRdO5Scd7YUH5vUcLV0pfAvwzyp5f YFqno1xpHhGanUaN/sUGp1c1SYcJmm4PU8+mDYZKP9hQWUG2hi1FnHJi9wVns/mJp3Nv YtjbqKQh4vbJRz57gQUWGhS06Oi7CSZX6Piwx6lyJ0Qak46NzJ7OrEPfxZIKOjyZG46B UfrEuG6VlbnAdRchMf03XsnEpsT8dDZwzFexwWCu78ROkHllUz2fvUKvUp9qrietx5cG ijc+XGTCTMKF1eHIC6Rda5PCdU1/RTfCs4in4F3IKpvGdgCzkfyaUmRg+VcgTV/uVUdk bWCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694214340; x=1694819140; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=LvlWMVxCyv+zi38Xl3VaIYCEHxmB3dP1Hy1CKA8S0RE=; b=GISZo2doWQQQMt8z9LZfkm5aYQ3/BZ8OfJIz+3UmXdCBItlsyOL52LvQ/kifFsc3hh VXmLMlL4xmkDWzRwDfQMgbfz8+5qlU+wZRdhpm87AZ37ep6qY6KOUREneno5Gv0I4ahD Oda8XLei0vQMBcXXa9QZqA0B4RnbRNunyQQ2rD9LrL5Z7YI+xebIMjnSbYuyFWFWqZix d5+vFzNKECueZqxxWjBMwiELx0A7bEW8AsgTIwrBL53QN2pv9j0Smp4hsqRpooH6gLXu 5N7nleLFJPMUE7gmqaPucB6SqtlIhQFai4N3CzuLhCEr5nfpafvOc68wWMDAnasgsNUD Z4CQ== X-Gm-Message-State: AOJu0YytmfJqqXXr6LBk1Sa7B7cz4r8E2Y3k1gwkG2piL+pLojn0aMI+ 3Sj563zwsnAz1HdhjUfKGhYBHQ== X-Google-Smtp-Source: AGHT+IGzIwsIjpI1ULRJ3Bzodv5Gi5NcWFQplZ7Zlt1hgPtuKzRS1ZDpiOKlBLZjJkaQ3kzbl7om2Q== X-Received: by 2002:a05:6e02:2165:b0:348:dba4:6418 with SMTP id s5-20020a056e02216500b00348dba46418mr5333591ilv.6.1694214340537; Fri, 08 Sep 2023 16:05:40 -0700 (PDT) Received: from dread.disaster.area (pa49-195-66-88.pa.nsw.optusnet.com.au. [49.195.66.88]) by smtp.gmail.com with ESMTPSA id x20-20020a656ab4000000b00574164301d1sm1392670pgu.47.2023.09.08.16.05.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Sep 2023 16:05:39 -0700 (PDT) Received: from dave by dread.disaster.area with local (Exim 4.96) (envelope-from ) id 1qekXg-00CfA8-30; Sat, 09 Sep 2023 09:05:36 +1000 Date: Sat, 9 Sep 2023 09:05:36 +1000 From: Dave Chinner To: Kees Cook Cc: Kent Overstreet , Nathan Chancellor , torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-bcachefs@vger.kernel.org Subject: Re: [GIT PULL] bcachefs Message-ID: References: <20230903032555.np6lu5mouv5tw4ff@moria.home.lan> <20230906222847.GA230622@dev-arch.thelio-3990X> <202309061658.59013483F@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202309061658.59013483F@keescook> Precedence: bulk List-ID: X-Mailing-List: linux-bcachefs@vger.kernel.org On Wed, Sep 06, 2023 at 05:03:06PM -0700, Kees Cook wrote: > On Wed, Sep 06, 2023 at 03:28:47PM -0700, Nathan Chancellor wrote: > > Hi Kent, > > > > On Sat, Sep 02, 2023 at 11:25:55PM -0400, Kent Overstreet wrote: > > > here's the bcachefs pull request, for 6.6. Hopefully everything > > > outstanding from the previous PR thread has been resolved; the block > > > layer prereqs are in now via Jens's tree and the dcache helper has a > > > reviewed-by from Christain. > > > > I pulled this into mainline locally and did an LLVM build, which found > > an immediate issue. It appears the bcachefs codes uses zero length > > It looks like this series hasn't been in -next at all? That seems like a > pretty important step. > > Also, when I look at the PR, it seems to be a branch history going > back _years_. For this kind of a feature, I'd expect a short series of > "here's the code" in incremental additions (e.g. look at the x86 shstk > series), not the development history from it being out of tree -- this > could easily lead to ugly bisection problems, etc. I disagree entirely. One of the most valuable things we have for XFS is a complete change history going back to the first commit in 1993. We don't have all that in the kernel git tree - that only goes back to 2005. We do, however, have a separate git archive that runs from the initial commit in 1993 to 2008, and so we can track bugs and changes back all the way to when they were first introduced. I'm looking at something in that historic XFS archive every second day; understanding the XFS code and why it is like it is requires looking back in time on a regular basis. And because XFS engineers have been really good with commit messages for a really long time, there is a lot of information in that historic archive that is simply not documented anywhere else. So if we have the full history of bcachefs developement sitting in a git tree, we'd be *utterly stupid* to discard it when merging it into the mainline tree. Nothing else documents the reasons for the code being like it is right now better than the change history of the code. For people trying to understand the code or trying to perform root cause analysis of a bug, a complete revision history is a rich gold mine full of valuable nuggets.... -Dave. -- Dave Chinner david@fromorbit.com