Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3735604imm; Mon, 4 Jun 2018 08:27:54 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIA4ex8XNrYBs6YtHQYgmNBducwtI1IVfbeCzs1IvKv6Wo9GtsWrbmwaC8+XvbBRKuFd3Om X-Received: by 2002:a62:a8e:: with SMTP id 14-v6mr7694513pfk.57.1528126074672; Mon, 04 Jun 2018 08:27:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528126074; cv=none; d=google.com; s=arc-20160816; b=RmGxvSXdAGxSHPxUv/bUHOs5i6HeYkA/nhGhivfUMg+16iiZGv/zxmTiAiUnDr0KRE gyf3grJC8zKJ68DnzVYzWgiVFG7lFOsYHbsRtZHl8m4Ku1QNGOjcudyvWOR+MjnsSJ5x s1RNO1kklI4MlIk5c0mO0qOmSYJ1hE4Ki9RBeDRIO+UwxHcu9NLro7IGGGTeTInGFTdr GKoUC0ne7KP+UJHwyXHGF8SxKidt54A+JfF59uQxzferJEHOIQO8YNno7L9VfEki+nYE 3IOpOVwjTm3meWKwem428sr3NOwn3jugimpq6mvBLKkn7B7bg3ynElT9sa+TmBiJ5Zgf f9Tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:content-id:mime-version :subject:cc:to:references:in-reply-to:from:organization :arc-authentication-results; bh=TZQdk2ItDw4ot1EI3u/0PIVVh2hVXjtWCPY+jQ74VIg=; b=Pc5ck3xCAgdcdCh2YG3NbH6Z+CLA+mqmpZq0J2AQqrqdYr40KXETF7lY4zPaSnCZBu EOGw4wX9iGzcPy+3TSyukfwZIkIejkEi8oIjDVp+DtNwe6psvMsTr1kpajzE2YaHGKVP 2M/9po0dTu1VHCSCaK1qAaeko1y6ry9Z7TU1CEZm3Kn6rgTsf/Gi5N6f/uh6NhHuhObG 9mzvS4YB2CB4CFg79NudFap7uRtROkxjHyoSEUBKlkXRoCodobsD8gt006NnFkiyBhFt Rpe6bP0QfjocW82FXFnsOo88YC7lMajHVxQmcBp7ZgQKI5I13UmyMF9d//eboSD0OoOm zp7Q== 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 n12-v6si20622098plp.123.2018.06.04.08.27.40; Mon, 04 Jun 2018 08:27:54 -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; 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 S1751010AbeFDP1K (ORCPT + 99 others); Mon, 4 Jun 2018 11:27:10 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:51792 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750723AbeFDP1J (ORCPT ); Mon, 4 Jun 2018 11:27:09 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 919AA402347E; Mon, 4 Jun 2018 15:27:08 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-121-245.rdu2.redhat.com [10.10.121.245]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6836C63F70; Mon, 4 Jun 2018 15:27:07 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: References: <20180602040434.GW30522@ZenIV.linux.org.uk> <20180601063928.GS30522@ZenIV.linux.org.uk> <152720672288.9073.9868393448836301272.stgit@warthog.procyon.org.uk> <152720691829.9073.10564431140980997005.stgit@warthog.procyon.org.uk> <20180601062654.GA32397@infradead.org> <7067.1527841663@warthog.procyon.org.uk> <20180602030913.GU30522@ZenIV.linux.org.uk> <20180602034255.GV30522@ZenIV.linux.org.uk> <21804.1527954321@warthog.procyon.org.uk> <20180602174957.GX30522@ZenIV.linux.org.uk> <20180603005532.GZ30522@ZenIV.linux.org.uk> To: Miklos Szeredi Cc: dhowells@redhat.com, Al Viro , Christoph Hellwig , linux-fsdevel , linux-afs@lists.infradead.org, LKML , Linux API Subject: Re: [PATCH][RFC] open_tree(2) (was Re: [PATCH 30/32] vfs: Allow cloning of a mount tree with open(O_PATH|O_CLONE_MOUNT) [ver #8]) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <26843.1528126021.1@warthog.procyon.org.uk> Date: Mon, 04 Jun 2018 16:27:01 +0100 Message-ID: <26844.1528126021@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Mon, 04 Jun 2018 15:27:08 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Mon, 04 Jun 2018 15:27:08 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'dhowells@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Miklos Szeredi wrote: > fsinfo = info from path Actually, I was thinking of making fsinfo() detect if it's been given an fsfd and go through an fs_context operation instead in that case. David