Received: by 10.213.65.68 with SMTP id h4csp2133612imn; Thu, 5 Apr 2018 09:30:22 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+q+ypPl34hbNJQu2/58oaaqqxpc6+EUhqHQPfx90C2YcOgEGi7W0BZk1pK/ropAa3Za2lG X-Received: by 2002:a17:902:8d97:: with SMTP id v23-v6mr23133640plo.285.1522945822852; Thu, 05 Apr 2018 09:30:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522945822; cv=none; d=google.com; s=arc-20160816; b=L1qD/fSPKZf5uoVB1IGcl8UobNThwaOR4Z+WJWsAuyKeVKqVrW3WJDs4aDNvaecZqi R7wq8XO5tGudCQGw0S4FF4CuEusGescRBTfQqhP2raWzDCWn1qyY+YcOkZMuvubqlHIa CNW9NEraK04mGv04qzcx9vs+Plq61Ipxnd+9z7QzeyY4hjR8lHZGb7oGIe/q7M30ZWzn hVKn0SSjsBOSIh/+hS81IHDiYCBZK7S03N/BpOKfLSGAEc2JKCnHDVfxYj6GUXoEt7mQ 7cc+L3G/kX17SXkijJlz4cu07a4PDTe5RPqg64Z4KmsfwdAZvsWYyQSoU2K5/GaVB5na eoYA== 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 :references:in-reply-to:mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=A7GN7XQj3Vn/PntEGYS8BcRQWK3gPHKewnfZJ9k9K+0=; b=SspAhK9BSBsOQVFBmMtpNIGK3nWQGY9VGjcPiJX86MAl1ktX5Ptui8ztVpzm1s5Fb/ W5svj1MIw8X4nha6zocy8IuTB3fX7RYDs6FNxL6fKABXpIPkGL2UHBGeWj/nn8qvXb1S Q2w1oUtD7JmjzoA8mBMJ+RqTXekHmuWvvK8keC2XKGiPkIw6ztg2NDIoRimyJPmgJP4Y aKTdOW0HcW/UD7hR2Xxvxo+5EDX53+CGonYR9E5P+dYPGdpmSswmOfPEJfva/OqnWqp6 gnf9X3o8sqzFETNClbcJF3UGz2c0ieicBgnQqpkWBSphiyL6UyoyWYMpeRiFiLqceUqC Y1TQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=MawAcWZL; dkim=fail header.i=@linux-foundation.org header.s=google header.b=B/857usw; 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 v2-v6si6146338plo.670.2018.04.05.09.30.07; Thu, 05 Apr 2018 09:30:22 -0700 (PDT) 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=fail header.i=@gmail.com header.s=20161025 header.b=MawAcWZL; dkim=fail header.i=@linux-foundation.org header.s=google header.b=B/857usw; 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 S1751352AbeDEQ27 (ORCPT + 99 others); Thu, 5 Apr 2018 12:28:59 -0400 Received: from mail-it0-f42.google.com ([209.85.214.42]:39773 "EHLO mail-it0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750835AbeDEQ25 (ORCPT ); Thu, 5 Apr 2018 12:28:57 -0400 Received: by mail-it0-f42.google.com with SMTP id e98-v6so4736387itd.4 for ; Thu, 05 Apr 2018 09:28:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=A7GN7XQj3Vn/PntEGYS8BcRQWK3gPHKewnfZJ9k9K+0=; b=MawAcWZLwNHgA4e1wieHjnJppfLReTsgZw4JDmNvr2MbEY2VxQVe+Z6YUxD2sRM4uC qVZcL+TYeKvMbmJ3LB1o7bwh6VADHJNkV6xKGODSVrY5RBBI8QF8I358MZuzzCzLHWZm bNLeW5GZUubLgd5fDNXQJVDFpWqFcLLHe3g7pz8UOyjbomy9VOyzeIfJXqgM+Plgh+YC E5wdw2lzadx8f5cE260n0hkReQVEFAw15lH5jqU+19a+Gx9gDAStzamGMJxvtbDh+TTt vU+9mEAzKL8rtZOlE/b5hMjNUku4C46qIXVEzUNDHCVxdN/5cwKa19kEKnl6V16g4BQY iVcA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=A7GN7XQj3Vn/PntEGYS8BcRQWK3gPHKewnfZJ9k9K+0=; b=B/857uswWDjUhka17TxS6Y6q8pcZgbvZxfZ1juguzvA4ygk07++3o7y34U96S0JgA7 hgnONudJ4yBDQTqikDqw7O83GlPtsHCgmjS78235EyZv6nEgan/pOzjTmLgptLVDJ+wC 92FEJB+cSbqUba8LSeVkV3xBI0OudXjdeZL7A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=A7GN7XQj3Vn/PntEGYS8BcRQWK3gPHKewnfZJ9k9K+0=; b=baJTRQv5kQEb/3XxnkabdBw2HiJhCHOgEScy1KJR89SKe53YkfsGIIt/RUA/o74zsh C03zwuijgVnU+M+34nSn5dzT05Qx8AZD36W3PM0o5nVQ8gh3C85rMcLPWOyOiU5kDEBN YZOOaYI1wpHTffO6K/6K7fjtBleSgvVucipa6whTePVEoEHSeUYGBC99IOfGYV0+Ll/l icowxtdBwWW9rlum/sOcsda01DJgdTsGuVENw7H0HiN+HSnfpjrwKxszCoHZC6EqvO+g PqwqUNNP7MdE7FdpLB3d9b4CPBsV4Qy+dL2eCVwJJNcalo1umAGuSv+mmTXQh5dacj5u y0kg== X-Gm-Message-State: ALQs6tAU0qZIHWNElSRKZBuhLACW+ALHw6zm63niwGXT+4Ukac/6Bgx8 OFZ31oT7SQg8zOP9p2Vd5X9rIiJy73MxhfCU/+DdkdTr X-Received: by 2002:a24:7693:: with SMTP id z141-v6mr14102165itb.113.1522945736824; Thu, 05 Apr 2018 09:28:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.95.15 with HTTP; Thu, 5 Apr 2018 09:28:56 -0700 (PDT) In-Reply-To: <20180405105103.21572-1-christian.brauner@ubuntu.com> References: <20180405105103.21572-1-christian.brauner@ubuntu.com> From: Linus Torvalds Date: Thu, 5 Apr 2018 09:28:56 -0700 X-Google-Sender-Auth: QKXy-w4nx0FK9S7edjtAfRBwrF0 Message-ID: Subject: Re: [PATCH 0/3 RESEND] namei: add follow_up_bind() To: Christian Brauner Cc: Al Viro , "Eric W. Biederman" , 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 On Thu, Apr 5, 2018 at 3:51 AM, Christian Brauner wrote: > > This series adds: > - follow_up_bind() to namei.{c,h} > - switches fs/nfsd/vfs.c:follow_to_parent() to use follow_up_bind() > - switches fs/devpts/inode.c:devpts_mntget() to use follow_up_bind() Hmm. Seems fair enough to me, although I wonder how much this really helps. It does get rid of a duplicate code pattern, but: 4 files changed, 14 insertions(+), 5 deletions(-) and while some of that is just the new comment, some of it is just "overhead". It's also a bit odd how the new helper is marked "inline", but nobody will inline it because it's not actually in the header file or any of the isers in the same C file. So instead, it has to be exported. I wonder if it should just be a trivial inline in ? Maybe it originally was, and that's where the inline came from, and then Christian decided to make it be by the regular "follow_up()" instead? But with all that said, I certainly don't *mind* the patch series. Al, I'm leaving this up to you, and expect to get it from your vfs tree eventually. Or not. Linus