Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4826038rwb; Tue, 8 Aug 2023 14:44:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEMK1b9PNU/C7V5cucc0LOKKdrKwbeOKgZvaE/4J9PIpnMIlwTiBY/u49RSA/0XpQ2WZqk1 X-Received: by 2002:a05:6a21:3e07:b0:132:9d0:1492 with SMTP id bk7-20020a056a213e0700b0013209d01492mr771077pzc.35.1691531083878; Tue, 08 Aug 2023 14:44:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691531083; cv=none; d=google.com; s=arc-20160816; b=yYm4QrZs7lkCO4khu3pmH8QNWJhyfzKt8YaAgfntki1CHfZV+kbDnOC0qPxLucyOac QLkVkXy0y66K10TNdM/rE1B2c1/MVnMzeq4UlyGuP3vBKjLdKveMfyKH4qg5SE4vYoSc L8QT63T/ifbaQI08xl9gKhOFPCLR2IU2A0TLMFRnCm7W4TnTzMVhYOgxo6RQ25AXVyqv q6bL6CR81mnCh1H8Ps2Gb+iLHHOb0z/o8KAEbM41REXtOKPQA2y8oVEVklixtiRwcwwn VMMuXu6mmfqco1E4wEymq+CNMrYYBxdE+u9YYzPwpTapB14THQ7b5i8ib6HRHKsEPggY QM2A== 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=1uNjCc9Bzcn7Dor1sdhjCXOwNWmVk+6MaO4ncMW1tgM=; fh=kjUaokrAaqHFXHZmNvVTNe9fnLF4SMrjSmoxPidr7ng=; b=Sq9CMuneopGDBwmLPRCXuLL/3zi58JCyhX4Bdkuv6K9+ZWZ5yyvPIp44gSBtyeXGuM pMfYhYROuPEHtaeI0yp6HbE2wYqYDXfbonJ4WqXWGGs1FAgGEEHhBQcsgl4BlG4YZy8I 5lWTwpak9oiIyav511xVcm0Atgz4h6Tv5A/8KEcwHB1cng+JgDqaztiY58f+H7U3b+NP IhIUGNdfPZUyA5CHm1bWE7OcXGDgelOjZVxur4Nu/F2OG/5NBvgeqn1034lsk2JbNVq0 6102P6q4g4H80SXRfhsLLqmbMDjNWsleW/RhFAIgZD2kGpz5uq1tJhPV+x8GWcGUBatP XQXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=gifu3hI3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id eb14-20020a056a004c8e00b006874e6f72basi7844339pfb.157.2023.08.08.14.44.32; Tue, 08 Aug 2023 14:44:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@linux-foundation.org header.s=google header.b=gifu3hI3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233713AbjHHUgH (ORCPT + 99 others); Tue, 8 Aug 2023 16:36:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233773AbjHHUfq (ORCPT ); Tue, 8 Aug 2023 16:35:46 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B700E5EA3A for ; Tue, 8 Aug 2023 10:05:42 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-4fe7e1ef45dso645887e87.1 for ; Tue, 08 Aug 2023 10:05:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1691514339; x=1692119139; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=1uNjCc9Bzcn7Dor1sdhjCXOwNWmVk+6MaO4ncMW1tgM=; b=gifu3hI3Y2Y1Hqj/X0HI3y5JgWHgfs81ZFYzlTJgFMo66Ka4YBt+qKw1/kWUd7NaT5 3892R2r454SKdtdIaycq6gbtSmTvMl5F6NOC83SNvQglwYfBBPyXYF0GBCgmmXJyVSpl qEg0gZuD3KItQIaj5YpOiVxRj65+qkuXsDpsY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691514339; x=1692119139; 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=1uNjCc9Bzcn7Dor1sdhjCXOwNWmVk+6MaO4ncMW1tgM=; b=DaVIRUryNbR5U3eE8oL6s1nATm3A9DpGCqemIipAwEnTQkwcQvE+pUmer3MBdB2/7O wT7R3W5soKdKT0cU0U95b8edosLWUVyojT5aEEmaqVYJ7miwyU8HXlBnvhi28DZM6Gcd GYSKEBa3/vOz8BFQMYY9dMmeR/TgJk67qgK2M84yXT2GM8qvgRguSOdtK3BCsvARe5DU ihet5fOnlS+ykWFIcDXmK/lXqk1UBXzz/Ej2rfs0FYHpuP9FHnMpqPXJjHGSVubebNvR ebEKd6uE+C5WIi3tjN4JBQIZlywGlsTSfH1wiZPIpLNEeWM8bhx6sHfAK0WXxiRnSgBd 563g== X-Gm-Message-State: AOJu0YzXZdXkv9qczJglPZO+Ed18dCDELoM6+Y74GTEsNRt5RUUuTPcO qm8ZVhQ4bCY3s56nDGFVyL0edu4ejCWsjVDuh3TdGxxy X-Received: by 2002:a05:6512:4002:b0:4fe:2f8a:457e with SMTP id br2-20020a056512400200b004fe2f8a457emr79772lfb.43.1691514338876; Tue, 08 Aug 2023 10:05:38 -0700 (PDT) Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com. [209.85.167.52]) by smtp.gmail.com with ESMTPSA id p20-20020ac246d4000000b004fbf37b73ccsm1954906lfo.284.2023.08.08.10.05.38 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 08 Aug 2023 10:05:38 -0700 (PDT) Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-4fe21e7f3d1so9724697e87.3 for ; Tue, 08 Aug 2023 10:05:38 -0700 (PDT) X-Received: by 2002:ac2:54ba:0:b0:4fe:f24:cbf3 with SMTP id w26-20020ac254ba000000b004fe0f24cbf3mr47081lfk.63.1691514337785; Tue, 08 Aug 2023 10:05:37 -0700 (PDT) MIME-Version: 1.0 References: <20230806230627.1394689-1-mjguzik@gmail.com> <87o7jidqlg.fsf@email.froward.int.ebiederm.org> <20230808-eingaben-lumpen-e3d227386e23@brauner> <20230808-unsensibel-scham-c61a71622ae7@brauner> <20230808-lebst-vorgibt-75c3010b4e54@brauner> In-Reply-To: <20230808-lebst-vorgibt-75c3010b4e54@brauner> From: Linus Torvalds Date: Tue, 8 Aug 2023 10:05:20 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 (kindof)] fs: use __fput_sync in close(2) To: Christian Brauner Cc: Mateusz Guzik , "Eric W. Biederman" , viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, oleg@redhat.com, Matthew Wilcox Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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-kernel@vger.kernel.org On Tue, 8 Aug 2023 at 09:30, Christian Brauner wrote: > > At least make this really dumb and obvious and keep the ugliness to > internal.h and open.c See the patch I just sent out. I hate yours too, for that nasty "bool may_delay". I hate those "bool flag" things that change behavior of a function. It may be obvious when you look at the function itself, and know the code, but then it causes things like this: return __filp_close(filp, id, true); and there is zero clue about what the heck 'true' means. At least then the "behavior flags" are named bitmasks, things make *sense*. But we have too many of these boolean arguments. And yes, I realize that we have tons of extant ones, and this would be only one more in a sea of others. That doesn't make it ok. So please keep it to when it *has* to be done to avoid major problems. Linus