Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp766968pxy; Wed, 28 Apr 2021 13:52:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynsefBGsGHfvB65hqtZU3NFNotR0jzRqDNpuilnQC+rxUHXTNTqZdib1o5Dg/YiLgEUnwc X-Received: by 2002:a05:6402:2713:: with SMTP id y19mr13937271edd.347.1619643131756; Wed, 28 Apr 2021 13:52:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619643131; cv=none; d=google.com; s=arc-20160816; b=T13CEDZLg76ET0q5WEmxkGtKl+XKLLM3cJpBytZAk4rtnlxc9TOSzBPcE2Oh3E+0OT idnsa9+x/VkXDpEZOp4wmU8gXDJ3jzcUlatr2qDX1KHBxU0tOWvtxi51xjG9reflzcN3 gB6HB83+Fl1LHnC55lAjJ77whXUNe0cyaQ/AyM6CeCK23FVc4UKoFBZqszK8W8H25ovi AvNLQk9TgMNLj3NYm3oU+btE4970D6zeHWrwjE2WS3445u5jPXSnaZal870kIX6mFXDK KcpEKQa1xzSRIbJohaxa75tK7FgKJLpST/ihaBrW/YEmnysiJV5YTPoBblybhEOyb/Rq vv0Q== 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=0uZJAIRFioTiHNk4LTl3GPgwLpvR/tqMtufSg3nWhNk=; b=Q4m3slwLDBr/dmVinPM4S1zuibDIW/7Y2jj+d68TFPvOAdCO5tqpwOF3J6+HfcgQZv e/JQuaCd8vzs4yIQ/iGjHBApWjBcDR9AjsE7KzkYJgaCPXQ6lzUgQv5CL5Khfhh7so8e Q8euRyACl7ONuZY/BqY9tjhx/Q+D+TNQDmlnHcuzMFinf7psfk7VSVHGFloautwFlofc Y0B9vABrJzdBD6wrYOA9Uo9ecf7qqU3vkh5DbxAg+vlaYGFUqpH35cVDTM0tmqF5t91H wUkh8psXT0MDT+S6uT24Iw5ye29jR+bX0xBHzXmD8nUoa/YtKyAeOpl4cIJLJQnNXnKZ EyVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=MkEAqmIh; 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 hp34si1130873ejc.292.2021.04.28.13.51.48; Wed, 28 Apr 2021 13:52:11 -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=@linux-foundation.org header.s=google header.b=MkEAqmIh; 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 S241146AbhD1QvG (ORCPT + 99 others); Wed, 28 Apr 2021 12:51:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240643AbhD1QvG (ORCPT ); Wed, 28 Apr 2021 12:51:06 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB504C061573 for ; Wed, 28 Apr 2021 09:50:19 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id z13so19308332lft.1 for ; Wed, 28 Apr 2021 09:50:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0uZJAIRFioTiHNk4LTl3GPgwLpvR/tqMtufSg3nWhNk=; b=MkEAqmIhebjBuyB/bFWJkeNmQq6+31Os4ltso3CHWcE/z6HMUwlD9kGKr75X1dcJZN nhAkq4TFetgPc3bclHi1B1uRcqtiTIb2JBFDflUDC+XnR14QbDiaFEnR1UXNn7Agvs3p CZs19Op5jQnv+sJsmNTa3kkHt1Kq8UyRB4q18= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0uZJAIRFioTiHNk4LTl3GPgwLpvR/tqMtufSg3nWhNk=; b=W4Y1eHPUGQK3oLY5M7b+GpxxrCXlO/ehycXHAp6orhLTSIRGGvyq+tVviCsQsX/uGf FwQjC2VGSUD2jius3/OKNI/lcRWuXt2c1svxauPboGEwz9pf6fHHB2yqrYJPpG7eHGnx rvywYt0JcWbF54yxUCGJNmvnqIsblv+Xl8zpNc/orpAG32tmvVQ63siEkNzTlT7RI36B GrjWnUXoJsHd9wnpWb3mHfdLHx4FkU+XIMmP2gXBMpJHkvbRiFz7dQn8qnhn0gkQF8yF vH2Ut5o6Jrbek1d364Ak7S/2rkOnWmqDbfW/7CbxeeGASNSsLb7VYCswriCkwyT4UerA SVhg== X-Gm-Message-State: AOAM530+fC/qzwaZ88EsBhGMJfn88JQ4qBzTmXc3lOR2RiG/C+i9rtvA 5Bm1R1hudlud5eDENGo+6jOUAZwbKj0xIdbM X-Received: by 2002:a05:6512:b90:: with SMTP id b16mr22098890lfv.37.1619628618141; Wed, 28 Apr 2021 09:50:18 -0700 (PDT) Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com. [209.85.167.43]) by smtp.gmail.com with ESMTPSA id m28sm88188lfq.180.2021.04.28.09.50.17 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 28 Apr 2021 09:50:17 -0700 (PDT) Received: by mail-lf1-f43.google.com with SMTP id 124so19275152lff.5 for ; Wed, 28 Apr 2021 09:50:17 -0700 (PDT) X-Received: by 2002:ac2:5f92:: with SMTP id r18mr7706166lfe.253.1619628617003; Wed, 28 Apr 2021 09:50:17 -0700 (PDT) MIME-Version: 1.0 References: <20210427025805.GD3122264@magnolia> <20210427195727.GA9661@lst.de> <20210428061706.GC5084@lst.de> <20210428064110.GA5883@lst.de> <1de23de2-12a9-2b13-3b86-9fe4102fdc0c@rasmusvillemoes.dk> In-Reply-To: <1de23de2-12a9-2b13-3b86-9fe4102fdc0c@rasmusvillemoes.dk> From: Linus Torvalds Date: Wed, 28 Apr 2021 09:50:01 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] iomap: new code for 5.13-rc1 To: Rasmus Villemoes Cc: Christoph Hellwig , "Darrick J. Wong" , Jia He , Al Viro , linux-fsdevel , linux-xfs , Dave Chinner , Linux Kernel Mailing List , Eric Sandeen , Andy Shevchenko Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ 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. That also does explain the arguably odd %pD defaults: %pd came first, and then %pD came afterwards. Linus