Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1125766pxy; Wed, 28 Apr 2021 23:41:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx77de3y+7Q4brddSrXjDtpdippJcP8qWjynOWyfBdxI6TIsRfoQjPtPlhUUnXthQCWjnUC X-Received: by 2002:aa7:cd8c:: with SMTP id x12mr16160477edv.377.1619678507741; Wed, 28 Apr 2021 23:41:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619678507; cv=none; d=google.com; s=arc-20160816; b=ZEsUdDwRHWLwZkqG5GUdT4lqsw5rNKufuZDKGuc37gjt7wrbwe87WuqAA20pmCNJ1i 5Xv2FCs8/+eWKPmokkh/VrkZLQjMUaVD+pRcw0ou4n8dwzNJxrbj2+Tlu4FxkUY6ZuHR Ey175RRn+tWo5fObkP2IxC8YlzADubekQobsyY0ySQeI6+cBOnHXIn+oAvAiskcDJ2GV 1jSIxUo6mXGNGbsLiXy9CU4M7nICk77wqDJi3l6ovpw6uSHleFdCNv9p5hA8H3bpkl/I BQfFniJpK3kxnvuHg+tPooUy917O4KPTkYmZyw0DcH1CAFdZsKkT1UXVoZwLOeawa6eG gOrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=YaeH9sGa8MlXtO0yNppCZXJjRDMmZTvxbYDV3i2sS4U=; b=cJ9kQG7xu3lQyabelmuYxxYJhp/4js4NJ6BJd90LP6W0OE5zoJNNGVouFFkJBXtP6o /gX48JUZpRS3c/Jp9+6O7kvkUFOnkdQBmOBH2aZFPDJ+VktIQLn2xYmzF5g7TzegG9x/ alXrU6KHQ4h4rVTS8ukor1L1DmsceVkY7d2JFzMoNPiqEr10tozQ37dROh0XRsEkNH2L /ZeSEbR5dfXD3zGQJFDG2OMddGnbtqsbix8Z0Nn/y31ijrCdYXRFgfrXWTg3vtxqmJpz V1mOCY7A3y9wh6uuLc7X1YpwE4AhAV3Jbs7BPr12j6ZF4g9/YXcert0ysfV2F5g8qJd8 9XcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=G+kCPzZt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ds10si2685624ejc.559.2021.04.28.23.41.24; Wed, 28 Apr 2021 23:41:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=G+kCPzZt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238584AbhD2Gkq (ORCPT + 99 others); Thu, 29 Apr 2021 02:40:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230148AbhD2Gkp (ORCPT ); Thu, 29 Apr 2021 02:40:45 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A62CFC06138D for ; Wed, 28 Apr 2021 23:39:59 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id j28so13158787edy.9 for ; Wed, 28 Apr 2021 23:39:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=YaeH9sGa8MlXtO0yNppCZXJjRDMmZTvxbYDV3i2sS4U=; b=G+kCPzZt0bV04nTRDKIP0XzNCMEmRE1Y8/XwnOoegIUDSA1dPxSndP9AqGep941dpb HKHNcN4jKqdPGveE8Ei76tpBf07fQORwSFN+9CvdIQe5DyUjrRygoHxksf0vR0mo6fEl zEpP3L1DZONWOAbT7oeTRPh2nE3QYI5eh1a5M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=YaeH9sGa8MlXtO0yNppCZXJjRDMmZTvxbYDV3i2sS4U=; b=YgYst/Ra/aFwl8BmRtpWhcqK5aoGM1luAyNI27RZBbvfgZ/qo6YaV3MjPBeJblWBMA D6jPjLzV6aq7qJy12CjtdW0S+Cdp0Absa/V9k9mbPSBD5BASiDDWSgHiANssgrY4E7j1 skodfUUXeTWlzoJI10cJAPGsoCoxFNkbd8oJ/4zC//UaVGA2jvk5B5sA9LPV0nev7jnv x0/fAGlFSiEUtY0MbNboi62uW2g4akVUdJj1p1Vab9RVzhdMfRcS0+ayF50mepQbh5nG t8yah7NI2oflOEhftcUUGEk1n1YN8g9ub91TWPI7dyuxzBUJ64AQAAX8zVuIjjOWkgxj Xd4w== X-Gm-Message-State: AOAM530ybQVXqxHsdwMN6RAGYLywO3w0DyI1Ce0CaRwrere1DHM1izcH FzxH0N5/SLx4xoLHCQTQYvU/TA== X-Received: by 2002:a05:6402:17d7:: with SMTP id s23mr14972330edy.66.1619678398309; Wed, 28 Apr 2021 23:39:58 -0700 (PDT) Received: from [192.168.1.149] ([80.208.71.248]) by smtp.gmail.com with ESMTPSA id v19sm1586089edr.21.2021.04.28.23.39.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 28 Apr 2021 23:39:57 -0700 (PDT) Subject: Re: [GIT PULL] iomap: new code for 5.13-rc1 To: Linus Torvalds Cc: Christoph Hellwig , "Darrick J. Wong" , Jia He , Al Viro , linux-fsdevel , linux-xfs , Dave Chinner , Linux Kernel Mailing List , Eric Sandeen , Andy Shevchenko References: <20210427025805.GD3122264@magnolia> <20210427195727.GA9661@lst.de> <20210428061706.GC5084@lst.de> <20210428064110.GA5883@lst.de> <1de23de2-12a9-2b13-3b86-9fe4102fdc0c@rasmusvillemoes.dk> From: Rasmus Villemoes Message-ID: <26d06c27-4778-bf75-e39a-3b02cd22d0e3@rasmusvillemoes.dk> Date: Thu, 29 Apr 2021 08:39:56 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28/04/2021 18.50, Linus Torvalds wrote: > [ Added Andy, who replied to the separate thread where Jia already > posted the patch ] > > On Wed, Apr 28, 2021 at 12:38 AM Rasmus Villemoes > wrote: >> >> So the patch makes sense to me. If somebody says '%pD5', it would get >> capped at 4 instead of being forced down to 1. But note that while that >> grep only produces ~36 hits, it also affects %pd, of which there are >> ~200 without a 2-4 following (including some vsprintf test cases that >> would break). So I think one would first have to explicitly support '1', >> switch over some users by adding that 1 in their format string >> (test_vsprintf in particular), then flip the default for 'no digit >> following %p[dD]'. > > Yeah, and the "show one name" actually makes sense for "%pd", because > that's about the *dentry*. > > A dentry has a parent, yes, but at the same time, a dentry really does > inherently have "one name" (and given just the dentry pointers, you > can't show mount-related parenthood, so in many ways the "show just > one name" makes sense for "%pd" in ways it doesn't necessarily for > "%pD"). But while a dentry arguably has that "one primary component", > a _file_ is certainly not exclusively about that last component. > > So you're right - my "how about something like this" patch is too > simplistic. The default number of components to show should be about > whether it's %pd or %pD. Well, keeping the default at 1 for %pd would certainly simplify things as there are much fewer %pD instances. > That also does explain the arguably odd %pD defaults: %pd came first, > and then %pD came afterwards. Eh? 4b6ccca701ef5977d0ffbc2c932430dea88b38b6 added them both at the same time. Rasmus