Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2678075rwb; Fri, 2 Dec 2022 13:20:50 -0800 (PST) X-Google-Smtp-Source: AA0mqf5aXrGPwncHmpoADkPTPAmeM05fw35F8yXzyyseGzB9pUeWznWArfNjXSDXMw3W5uR8lOUu X-Received: by 2002:a17:906:7c59:b0:7c0:4030:ae21 with SMTP id g25-20020a1709067c5900b007c04030ae21mr21186927ejp.346.1670016049908; Fri, 02 Dec 2022 13:20:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670016049; cv=none; d=google.com; s=arc-20160816; b=HOo5PU13+iNfy/5rTj4msc9jYU7optSBIDVl59YStj/yR5VVJukPtXy6u5ioFAiI/u H0Iee/7CAVP0Ljq3Yaq81TjQSTYxgCjfP0fTUpFpLI3TIauek0Twd2Il7aegAdh+2vzM 3Mxnk+RMEQJvKXNB5CL2VE8P8LzCzQnOKjNMQo/LIWczsFY+xfD098Kv60gTJzuFbpc6 MEkLFwnLMi6XvMNvKHl1qe+mkxFWx2KbYFdBJQXTSaCs5M3x16wYgR4FU6oNXg8Xd3ij sREaMr8tHzTFxB6070B05fiT2r83YjRpA5zhoi4w9ShQECNlvE+ZNbaQ6KAp2GA9GO7k peHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=sXtlxuzUFxbPmC4t7SAKSZe/dzivDlZ1ENrBxJjcBuw=; b=CxHQHsgIDWrsJ5OORI+BmF50cqrfqQPnuNO/5hDcqheUqGC8xsUuEK/BYIq4OiyMpc K2W1MB9fJ4PEgCEbQx5TEeYsMRxtbD15CY3I4BDGSni1dK43olwX5XegV0GZOeFtrgbG jixBQd2MFZLtEUA6Cc53euIonLzIMHr/X+DLPip3oT5yxOv5FXKMHnB3STrSI4Ro05o3 qIImJLdAASnU8Q8O45HJhnAFzrH6mji0txwPwHKMseL85ME8OeqIubd3wRYFeynKxw1X 7KGYtrya0iPCDy/1MUuvI0+bv2omfxW5uZ5KCWJbyZRdshMRfyPD2p/uA/9nCMmDDoOs hutA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=F0DAfu1l; 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 eb5-20020a0564020d0500b0046baedff35bsi7400356edb.291.2022.12.02.13.20.28; Fri, 02 Dec 2022 13:20:49 -0800 (PST) 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=korg header.b=F0DAfu1l; 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 S234329AbiLBVKf (ORCPT + 83 others); Fri, 2 Dec 2022 16:10:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234211AbiLBVKe (ORCPT ); Fri, 2 Dec 2022 16:10:34 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 494B4DBF72; Fri, 2 Dec 2022 13:10:33 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 076E6B8229B; Fri, 2 Dec 2022 21:10:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6D653C433C1; Fri, 2 Dec 2022 21:10:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1670015430; bh=leQP6OmGjss7eL3jNcnl/Bw5gjzQ0u1AnRVRsOkXVlg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=F0DAfu1lupy5YDs9vy3ihQX7YAQ7rE/5LdTZcL1zRJcQI/Yw2CIYDBbK49aXzuaE+ v87hS0zw27rukrqD0FNNNWAbBE/OUWi3u3/c+Hl1IhXlBrGTtbFxCc4+obU/OIpyTh DtKw6KcD50O5K5xBZefaUrw8W+GVb5HdSg+P2bkk= Date: Fri, 2 Dec 2022 13:10:29 -0800 From: Andrew Morton To: Matthew Wilcox Cc: Aditya Garg , "ira.weiny@intel.com" , "axboe@kernel.dk" , "bvanassche@acm.org" , "keescook@chromium.org" , "songmuchun@bytedance.com" , "slava@dubeyko.com" , "linux-fsdevel@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Christoph Hellwig Subject: Re: [PATCH] hfsplus: Add module parameter to enable force writes Message-Id: <20221202131029.50fde1c15a2dd7e156f7e1e8@linux-foundation.org> In-Reply-To: References: <53821C76-DAFE-4505-9EC8-BE4ACBEA9DD9@live.com> <20221202125344.4254ab20d2fe0a8e784b33e8@linux-foundation.org> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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-kernel@vger.kernel.org On Fri, 2 Dec 2022 21:01:44 +0000 Matthew Wilcox wrote: > On Fri, Dec 02, 2022 at 12:53:44PM -0800, Andrew Morton wrote: > > > + if (force_journaled_rw) { > > > + pr_warn("write access to a journaled filesystem is not supported, but has been force enabled.\n"); > > > + } else { > > > + pr_warn("write access to a journaled filesystem is not supported, use the force option at your own risk, mounting read-only.\n"); > > > + sb->s_flags |= SB_RDONLY; > > > + } > > > > All these super long lines are an eyesore. How about > > > > pr_warn("write access to a journaled filesystem is " > > "not supported, but has been force enabled.\n"); > > Linus has asked us to not do that because it makes it hard to grep. Yup. But as with everything, there are tradeoffs. These messages are so messy to read and reading code is more common than grepping for error messages. Just grep the first 20-30 characters...