Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp1250160rdb; Fri, 20 Oct 2023 12:44:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFnV+uLvUBPlq675AZz3a6bYv1axH/btB1lCdM/eF1wrRjcmYQFMEz0r1WFgcrFwOwxES/1 X-Received: by 2002:a17:903:11c5:b0:1c7:23c9:a7e1 with SMTP id q5-20020a17090311c500b001c723c9a7e1mr3077813plh.26.1697831072282; Fri, 20 Oct 2023 12:44:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697831072; cv=none; d=google.com; s=arc-20160816; b=w7qIYYDXRHBzzPb4wJhH11p9dkZjgim4Ay9+A5AdPPc6ZEsEVNwcyMCXe4AhJQ160s Wf9XNrLW4MBiFXknNN7YiUvdwcPpqO7bwA0twD1ozqH+3zBndKVAuDQSbfQ+Zx/38Zo8 e0hMkF8h2t/MTkxNpOfuExsLg4L+SYUxsDACIaF+1r6f9iCrOFcWACmkW9C/XyUQ4+uX 7ojsy0rwzSXKULZUnaZIOtkhWELMIGPjTHFxhW4LtOAqaOEpGLJzjBvrEo9ZKoXfj4sE pncZSdNvGb0aFUMNrRJ8M0EVeZhhyEDcz3bW/GWlpMu1yuDSSyDXIMyur78fljMZ+As3 ayhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=NnnjNkqgXxS0pckrv1oPel8s8uR9/bn0uOyrsj0uCGA=; fh=YRHjPZZv8FVSDYTZwLzAPbChG55V8v59BT6PvHVucWw=; b=iB7iPeGfFAiV0UiQkRIDE/hgWmSNJd6dvsYb5OedzRzsUOS7eJHOcoNBecdmxHHdl8 1lzry5dGiA4ecZtUZrBXn/BXPMl3OtCvodZyFVpwbxOnSm88t2du7D3sUbQTYF/CMPJv eIa+IS7DkCFrYZkWCcOwlBvwV02tAHoBj/zFWewL9NS3rJGs00bXQkfPf42Ox0yAEybN M/2n/YfaINc1DWbmPHN02Z2am7PRqnBW1uI8BzMG3LW93/umPj4V6gL7Z1CndMUxKi2j lsSUl1NwXBmdpSzbDwPbewbOErgJVsQsgHUaMRiQyznjleSBr2s3GRAvZIlBlG2Yeucu Qo2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=alPPSER8; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id l16-20020a170903245000b001c72699dcd3si2522747pls.367.2023.10.20.12.44.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 12:44:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=alPPSER8; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 54DEE8269F16; Fri, 20 Oct 2023 12:44:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229850AbjJTToS (ORCPT + 99 others); Fri, 20 Oct 2023 15:44:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229836AbjJTToS (ORCPT ); Fri, 20 Oct 2023 15:44:18 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A8DDD8 for ; Fri, 20 Oct 2023 12:44:16 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-99c3c8adb27so181572966b.1 for ; Fri, 20 Oct 2023 12:44:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1697831055; x=1698435855; 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=NnnjNkqgXxS0pckrv1oPel8s8uR9/bn0uOyrsj0uCGA=; b=alPPSER8Jb2LCXXrEsza92LYG7E6LRL6g930ClGmnEP8DJqoLHc68UjXV0cJPK5UFZ krj8zljdzac/fY0EJNhVlNfTuOU0CQigJYvVdMSNgv+Xra9YVDD6ruWPiAyBXIvp0L3Z ol2srF1cYOmr/Hbc4TX0kkK55HxsHvfeR8L9Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697831055; x=1698435855; 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=NnnjNkqgXxS0pckrv1oPel8s8uR9/bn0uOyrsj0uCGA=; b=pti4DANWjCc69Er0JkVMcXfQWIq7/22dWQNLeHPzuKVuJUAXEPGmBS0izgyvHz0B4c GwpTjqAm5w70eOIXx0Z6Ut0kEDzHzlufu7ciJvxfSUHOan3JFhvZ/K4upCeXpwCLY12W ULLfh32SXDc4R5ClwcIRCBvXPxyYkoK3+n0bFh1FmFobjugOHfpiIr4MPua0WokEiZ64 ViYLMYBe16laIE6+sURDwPthZD3pDGNKEhGZWZmhvgIWawHpI5XojyF4QIx4Y7BgVoH8 Nrz7b/x2D58iAyeIrqKuB/PBvfbQjbdSCBKdrujlHMiTp6hehRXdp4zczSRK9ikzWADx Qk8A== X-Gm-Message-State: AOJu0YzKKkNgZrL4MVBB3m9tzdeTGIbW2x+tt+zcSBtCknagwh97bq1L K+U2AmXEcplhPAzsEjc6+I1gLq9L+23+r+Z2eO/lrAYV X-Received: by 2002:a17:907:31c1:b0:9a1:891b:6eed with SMTP id xf1-20020a17090731c100b009a1891b6eedmr1968278ejb.76.1697831054744; Fri, 20 Oct 2023 12:44:14 -0700 (PDT) Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com. [209.85.218.54]) by smtp.gmail.com with ESMTPSA id c25-20020a170906529900b009b947aacb4bsm2104668ejm.191.2023.10.20.12.44.14 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 20 Oct 2023 12:44:14 -0700 (PDT) Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-9c5b313b3ffso183484266b.0 for ; Fri, 20 Oct 2023 12:44:14 -0700 (PDT) X-Received: by 2002:a17:907:2d08:b0:9bf:d65d:dc0f with SMTP id gs8-20020a1709072d0800b009bfd65ddc0fmr1770580ejc.4.1697831053735; Fri, 20 Oct 2023 12:44:13 -0700 (PDT) MIME-Version: 1.0 References: <20231019164240.lhg5jotsh6vfuy67@treble> In-Reply-To: From: Linus Torvalds Date: Fri, 20 Oct 2023 12:43:56 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] ext2, quota, and udf fixes for 6.6-rc1 To: Andy Shevchenko Cc: Baokun Li , Josh Poimboeuf , Jan Kara , Nathan Chancellor , Nick Desaulniers , Kees Cook , Ferry Toth , linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 20 Oct 2023 12:44:29 -0700 (PDT) On Fri, 20 Oct 2023 at 11:29, Andy Shevchenko wrote: > > I'll reply to this with the attached object file, I assume it won't go to the > mailing list, but should be available in your mailbox. Honestly, both cases (that function gets inlined twice) look *identical* from a quick look, apart from obviously the extra call to __quota_error(). I might be missing something, but this most definitely is not a "gcc ends up creating very different code when it doesn't need to synchronize around the call" thing. So a compiler issue looks very unlikely. No absolute guarantees - I didn't do *that* kind of walk-through instruction by instruction - but the results actually seem to line up perfectly. Even register allocation didn't change, making the compare between #if 0 and without rather easy. There's one extra spill/reload due to the call in the "non-#if0" case, and that actually made me look twice (because it spilled %eax, and then reloaded it as %rcx), but it turns that %eax/%ecx had the same value at the time of the spill, so even that was not a "real" difference. So I will claim that no, it's not the compiler. It's some unrelated subtle timing, or possibly just a random code layout issue (because the code addresses do obviously change). Linus