Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1980289lql; Wed, 13 Mar 2024 13:48:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVRmtTyt4BZDp2fFwvfhZMEB4byj7SE1rGehsrM8PbvU3t9EQxtLUbKgU1hwwed9IVIlhjQ8Bbtk79ghEu+ps/p6QmSHfCcUQsyHV1H2Q== X-Google-Smtp-Source: AGHT+IF1biu0zngPxH8pIEMylFcOsPT7+XntyJm6m+PYMeA39cSAxzBoRJ28YV8HINhSKuxpUiXm X-Received: by 2002:a05:6359:5faa:b0:17c:1ba5:2447 with SMTP id lh42-20020a0563595faa00b0017c1ba52447mr95180rwc.4.1710362930631; Wed, 13 Mar 2024 13:48:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710362930; cv=pass; d=google.com; s=arc-20160816; b=kCNWYWHLIv2aVIyI6R9oZR+MZE4r3BNSGgfLxpI98nokO9J1zaDzMTe4htR2TbclHE UpYso8VVWfwzCk/bM1e7ZtVc2z2aU5iOM4lSA6zfzdbH7WT0B7aKkYxzyAa5Ptduwcq7 lEvLymwkV3Wk8WYZTt0LSKpZBsanCxi2WLAjgH4xoJS8GsfibBNyuD0niyMyGV6N4etM tMz7jbV034U6dy5qCTgQRNcJ/D6xTcAt7xDccLV+SCahXqtvIZfV55ZSVKxouNqQKvoX edWjzmEuZ2z9xSsm2GIMCGRjsKlCWN4xFqhMGSpFDc60a6S7azaHYIdnPTYTfBx8LlwN Kihw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=PPuXpkeGm2u0OvGSXHyAWpUcDKXz5BztlE6+aKXcrYM=; fh=93VZFmOeVuGh63966sq7Xd0zLeg5AFTzmChptx73dPo=; b=rtRSVIhf+JKKIulMfbCtnkPGlOWXYx1LpczuQVa7jL3hioEQ/+35jKX6u9JXkur3ft ZWtyqdKvNdc9UtBiE8QiEdHSmM7JM0RkjtBZ6uVmb3vOaEygNBw73tq+m+itiNpbJQ0s 9CXwyeFHL5ovPRUyQ6lioTUEKr+Xa9jiJ9GtwQktxxn0l0IhZjAKbGYTjCWE09HwxHQr O/bAmcEZ1s2O0fda+6GTdxQl1TICUKvIBmAZW96nJ8pph/eRMF7WO84OyAG0F9tCIQzc 0QdhpXitqSSUDj6II3MPFVgqf6OkuzHSIECCZG5mmi17nXgVAyTzMqrRgr/PjddvLAIC MkeQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=OF7EDGDB; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-102502-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102502-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id m12-20020a634c4c000000b005dc85506e66si110904pgl.402.2024.03.13.13.48.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 13:48:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-102502-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=OF7EDGDB; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-102502-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102502-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id F3E18287328 for ; Wed, 13 Mar 2024 20:48:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 64011524DD; Wed, 13 Mar 2024 20:48:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="OF7EDGDB" Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A99F42570 for ; Wed, 13 Mar 2024 20:48:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710362900; cv=none; b=AFrVcvB50YlRAukD3J55WcBGxLP1+MdrSkVWLX5wfCUgZwQeQl34f0J5TijbiD3cV2uC9833eLGAuykVXG4h3NsFamxwzaymAMZCFHIKw2awPRIltfpKW2arh5MWwu4LtJz4jtz1upVd7wFmGYuy2u/4E86rhnyj7MyDOGaowgY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710362900; c=relaxed/simple; bh=Qs82lcXumefYXpExMq3K66hhPd5zaxuwF7JwqNXx9iQ=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=t/98g8vYb39eJmP/UhSWoAVdUqnpt93ypMsdL6sWdq1g40P2xdJwE+bTjpcebAOGXPxhaZt5L+jOsZPAZ7MD8u49ulUwOco8Ek8T8flLkld0ST6ifOncNya4VzhVp/xKaMuEIeYfqIQMxLc+x3HIuU6Y6ZvcW2Ae3mmbXl5T824= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=OF7EDGDB; arc=none smtp.client-ip=209.85.218.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-a45606c8444so28504466b.3 for ; Wed, 13 Mar 2024 13:48:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1710362897; x=1710967697; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=PPuXpkeGm2u0OvGSXHyAWpUcDKXz5BztlE6+aKXcrYM=; b=OF7EDGDBmmuyTKI5wyvojDoVQbgQkPFxMtFPvlzVtQMfv04STtxyHTCY6ZI0mt2frT 1KimqT+tw1aJotnLGnPfqY0BAV3azV0zA6RPZ7Zc/FXC9NrvOgzcKahk/H9UgFdBkH9w kG408dtdZTcwDA5xO5NGhW1nGL5qIlsYayKGo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710362897; x=1710967697; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=PPuXpkeGm2u0OvGSXHyAWpUcDKXz5BztlE6+aKXcrYM=; b=lZSPooVs67foFWe4LY7SY4S7R3T9E70Z9nWl8sUp+r560vAc4GdYmMaJUaes6LC+0b I/f+7VpXeK8d7UVSOYKvR3AjhwRSJg5JIsqJoUCEiZUb8Xq4MGeo9JoewNS9KWnHLvA/ sW9Px/3+gzVsKUKVVHhJKsIy0HEL/kpl/aziynkFlRqr3CKxLZw5ATmlk3FzOq8QKS+3 uGHAPxpBzq2ad7BIUgGd/AFgeK1NrOUgEqnId0araD6+xrIvibbYFd+U7NMvZ5elfsXe Y3Hp8EzBm/kAQq0LDD17Q1kMNRbnMoky6nZdgnflsQ5/oThZSjc6TwAX4j5l0me7AOyn 2auw== X-Forwarded-Encrypted: i=1; AJvYcCUYvXi/fCwVQ6653Lsb4pOHj88KcxINLAFQfVsrn52SSJjv3Ga6fkgoQKRwLTbJTY0k8Ghg9gqa0d00rQQqbCNP6mNXYEAW6PaToQHL X-Gm-Message-State: AOJu0YyUcUPKwpcKi2oXG+s5xWdx/X+XRnyB6CSB3xaBDSH/KsSNXkYT mRM7DZPM532fneC0jFb2KwXhgbWMrr9uICin/vc5yqoELWB1qbdMYrAJEegeZYhSHcLRigK2qK7 1kj4WEA== X-Received: by 2002:a17:907:1606:b0:a45:efb1:d4d8 with SMTP id cw6-20020a170907160600b00a45efb1d4d8mr11647230ejd.53.1710362896810; Wed, 13 Mar 2024 13:48:16 -0700 (PDT) Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com. [209.85.208.49]) by smtp.gmail.com with ESMTPSA id lx9-20020a170906af0900b00a4638693bbfsm3455ejb.116.2024.03.13.13.48.16 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 Mar 2024 13:48:16 -0700 (PDT) Received: by mail-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-55a179f5fa1so319466a12.0 for ; Wed, 13 Mar 2024 13:48:16 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCU+hzmHoTSffLxHAAl3t88RTPTrLMx2ndgGpSShGk/oI5EJngeoQA21eUY5eq0tEP7qdXqg1Bs4MvGJ/53T97sR21MV5j5ujrHO9zra X-Received: by 2002:a17:906:dacc:b0:a45:e270:609c with SMTP id xi12-20020a170906dacc00b00a45e270609cmr11079476ejb.23.1710362895736; Wed, 13 Mar 2024 13:48:15 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: In-Reply-To: From: Linus Torvalds Date: Wed, 13 Mar 2024 13:47:59 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] bcachefs updates for 6.9 To: Kent Overstreet , "Darrick J. Wong" Cc: linux-bcachefs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Tue, 12 Mar 2024 at 18:10, Kent Overstreet wrote: > > Hi Linus, few patches for you - plus a simple merge conflict with VFS > changes: The conflicts are trivial. The "make random bcachefs code be a library function" stuff I looked at, decided is senseless, and ended up meaning that I'm not pulling this without a lot more explanation (and honestly, I don't think the explanations would hold water). That "stdio_redirect_printf()" and darray_char stuff is just horrendous interfaces with no explanations. The interfaces are disgusting. Keep it in your own code where it belongs, don't try to make it some generic library thing. And if you *do* make it a library thing, it needs to be (a) much more explained (b) have much saner naming, and fewer disgusting and completely nonsensical interfaces ("DARRAY()"). And no, finding one other filesystem to share this kind of code is not sufficient to try to claim it's a sane interface and sane naming. But the main dealbreaker is the insane math. And dammit, we talked about the idiotic "mean and variance" garbage long ago. It was wrong back then, it's *still* wrong. You didn't explain why it couldn't use the *much* simpler MAD (median absolute deviation) instead of using variance. That bad decision directly results in that pointless use of overly complex 128-bit math. I called it insanely over-engineered back then, and as far as I can tell, absolutely *NOTHING* has changed apart from some slight type name details. As long as you made it some kind of bcachefs-only thing, I don't mind. But now you're trying to push this garbage as some kind of generic library code that others would use, and that immediately means that I *do* mind insanely overengineered interfaces. The time_stats stuff otherwise looks at leask like a sane interface with names and uses, but the use of that horrendous infrastructure scuttles it. Linus