Received: by 10.223.164.202 with SMTP id h10csp166578wrb; Thu, 9 Nov 2017 04:34:41 -0800 (PST) X-Google-Smtp-Source: ABhQp+RynhY9RLIuUm+ddfby5rsJxZ/Fgg593nmdzdjxvnn11RgvmrFFjvtvg8TcyA17YYw6Jmzf X-Received: by 10.84.241.129 with SMTP id b1mr332284pll.103.1510230880840; Thu, 09 Nov 2017 04:34:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510230880; cv=none; d=google.com; s=arc-20160816; b=I7RXh1XwlXvI5Yw7YXApx/fnaQ2zCd/7wNBoNGWZgyDLR6dqGn/HAfnrr13oOQHqC0 /XptWyZIiaPM20EZG3maGP+seyzd/nCsoPL8u9gPh8cwXEh1AocGaSbVGhRZPRy2Upbg W54YklwDoN2BEeNij4xlha/nGmPlzZ3tQWvPIA/Ni2ylzVOlcvpWmXbSrerDKHWV6O2I ZoqZXtzMyZkSj/gjEWAOrXa+vsXYQWUj8o+D4mORqmF7EeRMrd/6uPG4wXE8xkX1kBmA uuB0ELen3QMLl2bcE78RP4eolHtafVAMpQyS5yDzx4BplBdjLzXYobZsrTCUkvSko4nB ngdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=ciz18LcCyjAhupO/u4ELHvGIsj+GpSLlFX2Hnr4R2wI=; b=DmSiGAo+w+8x5w8RCtobyAdqXyTZYkwb6FA7FbCBWdt9phgpkcJPu80O9A1N2bQVWk EKyxrnfL/YtQ1nTHAfQplW9CELKujAcDR18loqsNfrJ9DPs/N+G6+amkDJPBwWkKDlHU syF+ke0rzlBvDFKdzYiv7qdA7aiIV6PHRTAwpEQv/tccGRWxMUAC82dOz5BXR2Ciq+sZ LLDEyIsorA8vz1akyEmNXrZYqDFzaTPQu12ZvnNjjmwOt9fPbZ1IDCQj8IYjteRnSFU+ HWbr2YiX7kJw8QvuMsiHjKgNepfHZv5mVL+yHW2mSTrHLcAe52lO+V9Oo26a5E7zdnm8 ibBQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1si6173280pln.176.2017.11.09.04.34.29; Thu, 09 Nov 2017 04:34:40 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754501AbdKIMck (ORCPT + 80 others); Thu, 9 Nov 2017 07:32:40 -0500 Received: from mail-qt0-f193.google.com ([209.85.216.193]:54344 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754354AbdKIMch (ORCPT ); Thu, 9 Nov 2017 07:32:37 -0500 Received: by mail-qt0-f193.google.com with SMTP id c36so1191116qtc.11 for ; Thu, 09 Nov 2017 04:32:36 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=ciz18LcCyjAhupO/u4ELHvGIsj+GpSLlFX2Hnr4R2wI=; b=Gar0B65RIL9uJZX/i59sc69eKw1JwB8ES1PUf0DRVmU6xw0MrLav2FH7Rt3ZS3Pf6L AX6LuHWkenQsk/e4tm6uGJfpuVNlgI2Vsi4x2cB2ite49+02o7ZMPBVgp2eCReb43EiP nSbRYCJV/ctnkY3HGpfafeq9pw0NBMUblOMhn0kiH47TrYfml/x+TO7NFWQdn4MHFreQ JfM+Qwc07tkgOIHdAFgdH6F210VSZLtGbJH8vrbcxIlisvwfjQmro8+LVuc+REv0Sw6J GXCVE1sAx0lYPhGVXWn6IXbPhCx8fUchJ9l0gr1AsjrnnupLdSRwa9sdsn2bVGETdF1J tTAQ== X-Gm-Message-State: AJaThX5s33fPa6zHSYZtAepnGzUsLCFpr3PkHtT/DdUnmWHMXTlweRi4 qHdwXt8rvgN4lCtgqXrUjiz8HQMsoMI= X-Received: by 10.200.26.146 with SMTP id x18mr459351qtj.145.1510230756419; Thu, 09 Nov 2017 04:32:36 -0800 (PST) Received: from tleilax.poochiereds.net (cpe-71-70-156-158.nc.res.rr.com. [71.70.156.158]) by smtp.gmail.com with ESMTPSA id a66sm4393530qkf.49.2017.11.09.04.32.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 09 Nov 2017 04:32:35 -0800 (PST) Message-ID: <1510230754.29194.6.camel@redhat.com> Subject: Re: [PATCH 0/3] VFS: name lookup improvements. From: Jeff Layton To: NeilBrown , Ian Kent , Latchesar Ionkov , Eric Van Hensbergen , Al Viro , Ron Minnich , Trond Myklebust Cc: linux-nfs@vger.kernel.org, autofs@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, v9fs-developer@lists.sourceforge.net, Linus Torvalds Date: Thu, 09 Nov 2017 07:32:34 -0500 In-Reply-To: <151021179901.22743.15252956909042161062.stgit@noble> References: <151021179901.22743.15252956909042161062.stgit@noble> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.24.6 (3.24.6-1.fc26) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2017-11-09 at 18:20 +1100, NeilBrown wrote: > These three patches address two issues: d_weak_revalidate and > path_mountpoint lookups. > > The former is poorly defined and doesn't actually do the one thing > that it would be useful for it to do. So the nfs implemention > is improved, the 9p one discarded, and the documentation clarified. > > Given this change and recent change to follow_automount() the > mountpoint path lookup functions are no longer needed. The regular > path look functions are quite sufficient. > The second two patches remove this with detailed explanation of why > it is OK. > > Thanks, > NeilBrown > > > --- > > NeilBrown (3): > VFS/nfs/9p: revise meaning of d_weak_invalidate. > VFS: remove user_path_mountpoint_at() > VFS / autofs4: remove kern_path_mountpoint() > > > Documentation/filesystems/porting | 5 + > Documentation/filesystems/vfs.txt | 11 +-- > fs/9p/vfs_dentry.c | 1 > fs/autofs4/dev-ioctl.c | 5 - > fs/internal.h | 1 > fs/namei.c | 150 ------------------------------------- > fs/namespace.c | 2 > fs/nfs/dir.c | 60 ++------------- > include/linux/namei.h | 1 > 9 files changed, 24 insertions(+), 212 deletions(-) > > -- > Signature > I love that diffstat and I think the patches and the logic behind them look reasonable. I'm the one that added d_weak_revalidate and while it did fix a problem at the time, it has always seemed a bit of an odd d_op. Your patch does make me wonder if we should consider merging d_weak_revalidate and d_revalidate back together, and simply require all the d_revalidate ops vet the flags more thoroughly. -- Jeff Layton From 1583574068425392201@xxx Thu Nov 09 07:51:57 +0000 2017 X-GM-THRID: 1583574068425392201 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread