Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp4328041rwb; Sun, 7 Aug 2022 21:33:11 -0700 (PDT) X-Google-Smtp-Source: AA6agR5CSREqabwhPpL3tgNN1x9QBiIQ3nkLRWGUK3OYWz4CUW+7wLartnfkeIQackjhJbx0lgke X-Received: by 2002:a05:6402:e08:b0:43a:f435:ff1a with SMTP id h8-20020a0564020e0800b0043af435ff1amr16647607edh.123.1659933191508; Sun, 07 Aug 2022 21:33:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659933191; cv=none; d=google.com; s=arc-20160816; b=YF1af1r3Wll4+HX5yZyGxJo1aNUp1voT0Z2TSvNYl15PKxc10bvsBwGNzKq3e59Xro xbEjNpyPmIo/XDxNNIQmW9C7mPI6IN4Vc3n6rRch1zZs0dE7V4yfg0NMtV1JNUu3AG6v Kw+9Vn/9UZ51CrHZ3X308uJBRXpUff0CvPVj8IlWnNYGm0wn58btSBoslJ64uE70kFVK IBnPTivlOp7lYvTFDgTDfvGtD0sS7VrgWBB4sbrKSVK2AATCspr4His7FFI5xWM6RzXd yAvjhTkzH7Dvlpabh5tJv9wBc7Qsr2nRPjfj8KFcW+21dEyb4/lB5TOY7siG1GJ1wq5L G6wA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=A4RtxbAqeBnUIxMXF4XlPWBMt/xyvevjMbPuIHGM/1c=; b=z5HzXmoUQmPxLx5rJhGrrzL1kXxWRJBYCs7AIdzvBy2LusaslWZF3Pc9UQBIFdfCLo fE9TtbZp4U34GCIKzsliDekYjHD1u01kt9O+o8kJLIBzAZ1nUW4bob3xNPTNwxQXWCZc XXP086JjDJtQJPQWQsuK+zdIH2HvFciYAMerJ8LhMnkoitNENlCi+sk9ttM++l/aHilx G+fWQaE0YZeNB3UPngw/X/7HJMKoDH6PI6cQQMySedrz43BmUiX/c2pIt3i0VgFm7Xe2 EzV51z2BATx05E9cyaT3HmYkwx6Ph2YBDM2QlRFLhvvJpL+zNocrEz+z2+b6X9ooQTxQ TXqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=PkVGVmd1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l11-20020a056402254b00b0043d67b88ac6si6470696edb.163.2022.08.07.21.32.44; Sun, 07 Aug 2022 21:33:11 -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.org.uk header.s=zeniv-20220401 header.b=PkVGVmd1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233263AbiHHERb (ORCPT + 99 others); Mon, 8 Aug 2022 00:17:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231720AbiHHER3 (ORCPT ); Mon, 8 Aug 2022 00:17:29 -0400 Received: from zeniv.linux.org.uk (zeniv.linux.org.uk [IPv6:2a03:a000:7:0:5054:ff:fe1c:15ff]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3F2311A05 for ; Sun, 7 Aug 2022 21:17:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=A4RtxbAqeBnUIxMXF4XlPWBMt/xyvevjMbPuIHGM/1c=; b=PkVGVmd1YUw8qnNn52lXdq7Pjy 4Mv6h6473hhsT9Dp/H5PVVUbH9SxopjTg3xfQGYZouZsv2qxRWUpMeJgQv0PdaZPWdi0JgEhktN18 1V6qLiFSlWPzOPX2FfNFGYtmpGDSFBgceHTJRvaRyZ3qrhBNK9dliAoLn4nWt4a+8I04AOxkZVydg 25jLyp6QRTi9aRCS4iaeX07jBzdNyT0i+NDtEw5xCKPGE08C3KuOjPziFJz6kZqgfIqyMyTUuC82X xvKwfjBxnqsBV3HUTlAnSXV3CrtOlBkWUd6vIxBxNJ+ecP0K/wV0WicY17XTV6R2ba/BerzZea6LW 6HFPnUUw==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.95 #2 (Red Hat Linux)) id 1oKuCi-002LOS-Dq; Mon, 08 Aug 2022 04:17:24 +0000 Date: Mon, 8 Aug 2022 05:17:24 +0100 From: Al Viro To: "Matthew Wilcox (Oracle)" Cc: linux-kernel@vger.kernel.org, pmladek@suse.com, Kent Overstreet Subject: Re: [PATCH v5 29/32] d_path: prt_path() Message-ID: References: <20220808024128.3219082-1-willy@infradead.org> <20220808024128.3219082-30-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220808024128.3219082-30-willy@infradead.org> Sender: Al Viro X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Mon, Aug 08, 2022 at 03:41:25AM +0100, Matthew Wilcox (Oracle) wrote: > From: Kent Overstreet > > This implements a new printbuf version of d_path()/mangle_path(), which > will replace the seq_buf version. > > Part of what we're trying to do with printbufs is standardizing a > calling convention so they don't have to live in lib/vsprintf.c, and can > instead with the code for the types they're printing - so this patch > adds prt_path() to d_path.c, another patch will switch vsprintf.c to use > it. To use it for *what*? If you mean replacing %pd with it - forget about that. Not going to happen. There's a hard requirement for printk - it should be safe to call in any locking environment. d_path() isn't, and that's impossible to avoid.