Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp913422ybv; Sat, 22 Feb 2020 18:23:49 -0800 (PST) X-Google-Smtp-Source: APXvYqwT4zUvahjXjJsui1vrBL0pTm+ksoQbubGFJnPVgqVs2f09xCLPYxe29ojSwfWwa5fS3nto X-Received: by 2002:aca:c515:: with SMTP id v21mr8313354oif.60.1582424629841; Sat, 22 Feb 2020 18:23:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582424629; cv=none; d=google.com; s=arc-20160816; b=dkcOMZrwRdOPYiiFgh+Kwbu0dtggtBevRyF6HcIrMwsok4WsYJh8heov5tayl/g6uC R9BC7g162LLlp6GMLgbXQSMriz7k0QmxC6RMev/gL4kj1FjfW9vhJxJytQNtV7dHqzdk ea2usPZ8uTAyeYP2S5f8Vk5T/HXPMl4i3qj9jviFlrGWk1tlvJvqTOQ6Af5su/PQn7me TzbzoQGTW/fjldKL5Sk/N8RTc4ZgzBfUF2QU9+MmevlWTivm4Dc+uHOi9LrIOTFyZwDr pS14NMMEOJDzT12Ydw2XgRhrdc+87JQJ7YTOWhy9fH9hpo5/VjwhaGclIX0/IzGF+Afg jFkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=nRiUMLVal6a47Pn0KiyPnBHZC0rhgcARtYIItZoVMts=; b=kFB07Rs+VxyfOVuVQpdn9YAuv4D48tuDtEl4b7kdldxsBhbJYVaF6Ge1rrOCEcAsVz Dl3SrWefY/oZN+3MVzMqrZrRwiVjTTL602MneSBJucvNWjsFjYx1rkTMxUqL3AgQS8PQ 9/jq2+rCW46ybS/hgH98vDxM/yhGE+sNad7yFxXJm+6r9MwYGf8wGTQxyMoxNkKwH4Id t+ess3QVboQnT5sTaIBkwdxALPGHanqocP50cp3DxpYrdUOY2SZ9uKhl23gxy0xbnupJ wKn3s1mxqEw48TnQc4GLWFwIzm7o2Rpb7n6vWikkMfg26vYgp422TGTvFRImPmdKitVP TdfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=cONgu9fG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 17si4286788otv.149.2020.02.22.18.23.37; Sat, 22 Feb 2020 18:23:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=cONgu9fG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728438AbgBWCXD (ORCPT + 99 others); Sat, 22 Feb 2020 21:23:03 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:43546 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728421AbgBWCXC (ORCPT ); Sat, 22 Feb 2020 21:23:02 -0500 Received: by mail-lj1-f195.google.com with SMTP id a13so6204759ljm.10 for ; Sat, 22 Feb 2020 18:23:01 -0800 (PST) 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=nRiUMLVal6a47Pn0KiyPnBHZC0rhgcARtYIItZoVMts=; b=cONgu9fG5pE/tWCiXtgOF5ceYHdHZxNumSvYoyFsvLp9PS5M3fb0VPF5CuTOccSzER r2NpU2iSrvNXG0WR0NFnOm0HM9MXa0tN+yL++q7ziS1cy/uG5oeUPcx10pfWU/Hr0Ynu w3/+07uf8cXa3uKMy2VDDKuUVcP4LO3LE57ko= 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=nRiUMLVal6a47Pn0KiyPnBHZC0rhgcARtYIItZoVMts=; b=T1GkbsGDeDB9lckNPv14wndX7laCG/n5/mvBOCS+FlCMb9AMW6+SdpMehxsgDt9Xdy xY0WTQth4aTs/Pa13wvzXEIOymVfrYOAKxu2c+E4cmKVmPzkw87Z/D9GJ6R6mxhkdG2Z run53r3gV8YtkwIOLBm6bJZBSuUVMxJZi11IkSsl34wfU3kNSvRkhOOpV0/bU5ncPjoL ZHM+gd8AaxFgeQtdefwxpb8pWsCZrQln0LI+p61K3tBy9qIve8cOMmyutzDn8a/8qeth 0XRJ25O5uxA1AV6/2VeYhreUQlisU3NhpXr4jw78Oo8AM4ReXwIRS75gV6fJBsOsHNOg P//w== X-Gm-Message-State: APjAAAXVYXHSsn7F/VeG7w+M5J8/+scktlTLCOro6Dj5mn5sVlReb3F6 St6M7xLvhgzSgPo3G0RFas3xEun/M0c= X-Received: by 2002:a2e:81d0:: with SMTP id s16mr26739439ljg.166.1582424579974; Sat, 22 Feb 2020 18:22:59 -0800 (PST) Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com. [209.85.167.52]) by smtp.gmail.com with ESMTPSA id y2sm3993816ljm.28.2020.02.22.18.22.59 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 22 Feb 2020 18:22:59 -0800 (PST) Received: by mail-lf1-f52.google.com with SMTP id l16so4319818lfg.2 for ; Sat, 22 Feb 2020 18:22:59 -0800 (PST) X-Received: by 2002:a19:f514:: with SMTP id j20mr23906945lfb.31.1582424578811; Sat, 22 Feb 2020 18:22:58 -0800 (PST) MIME-Version: 1.0 References: <20200223011154.GY23230@ZenIV.linux.org.uk> <20200223011626.4103706-1-viro@ZenIV.linux.org.uk> <20200223011626.4103706-22-viro@ZenIV.linux.org.uk> In-Reply-To: <20200223011626.4103706-22-viro@ZenIV.linux.org.uk> From: Linus Torvalds Date: Sat, 22 Feb 2020 18:22:43 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC][PATCH v2 22/34] merging pick_link() with get_link(), part 5 To: Al Viro Cc: linux-fsdevel , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ok, one step back: On Sat, Feb 22, 2020 at 5:22 PM Al Viro wrote: > > + if (err > 0) > + return get_link(nd); > + else > + return ERR_PTR(err); > } .. and two steps forward, as you then entirely remove the code I just complained about. > - err = step_into(nd, flags, dentry, inode, seq); > - if (!err) > - return NULL; > - else if (err > 0) > - return get_link(nd); > - else > - return ERR_PTR(err); > + return step_into(nd, flags, dentry, inode, seq); I'm waiting with bated breath if the next patch will then remove the new odd if-return-else thing. But I'm not going to peek, it's going to be a surprise. Linus