From patchwork Tue Oct 25 07:34:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miklos Szeredi X-Patchwork-Id: 9394121 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E5D2360231 for ; Tue, 25 Oct 2016 07:35:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DBD06293D2 for ; Tue, 25 Oct 2016 07:35:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D03D1293D5; Tue, 25 Oct 2016 07:35:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 75CC3293D2 for ; Tue, 25 Oct 2016 07:35:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932299AbcJYHfR (ORCPT ); Tue, 25 Oct 2016 03:35:17 -0400 Received: from mail-wm0-f53.google.com ([74.125.82.53]:36316 "EHLO mail-wm0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752418AbcJYHex (ORCPT ); Tue, 25 Oct 2016 03:34:53 -0400 Received: by mail-wm0-f53.google.com with SMTP id b80so146680447wme.1 for ; Tue, 25 Oct 2016 00:34:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=RicvJ03/PvHo2piS34PY1v6w3633Yn2dQzmztJrtZ94=; b=gW/MaHFuHHZVMgbzATrCwvdKODOFiCi10fgOXLb2N5EAaNvG1FIEVPzrqSUSv9JyJJ tPGsF/iYOmAvZe9iDllpvZ++neSUTyBy9jbUQ2nLQI1zTA3Ll07otKRsGKgIKn8fAhww Jy8NwJVVJloINC0PuJ12/8v+i71DMCMwhPSMrAtRqUCZNQa10B8ODyoChKLZeQt35DHr sBGw0JNfl9p2glN52B4+tTZaQOc861qsH8+SHsdIu3d02nXX9buYXR+yWpxBHkxMOHir NvxWEWuxNvKwayEo1HLbu+2RY3y7wnNney+GcjbUG1bLCZMAtO+tkgHAlXAMT5F43PHZ 6h7g== X-Gm-Message-State: ABUngveVNyHpesJRbn2mJulEq94Jwy2/2gaig67Wt1040G+FKwqoyeh5z3dtyJwkrsa0A5ay X-Received: by 10.194.118.100 with SMTP id kl4mr14734905wjb.193.1477380892398; Tue, 25 Oct 2016 00:34:52 -0700 (PDT) Received: from veci.piliscsaba.szeredi.hu (pool-dsl-2c-0018.externet.hu. [217.173.44.24]) by smtp.gmail.com with ESMTPSA id jq10sm21340722wjb.46.2016.10.25.00.34.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Oct 2016 00:34:51 -0700 (PDT) From: Miklos Szeredi To: linux-unionfs@vger.kernel.org Cc: Guillem Jover , Raphael Hertzog , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] vfs: export vfs_path_lookup() Date: Tue, 25 Oct 2016 09:34:46 +0200 Message-Id: <1477380887-21333-3-git-send-email-mszeredi@redhat.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1477380887-21333-1-git-send-email-mszeredi@redhat.com> References: <1477380887-21333-1-git-send-email-mszeredi@redhat.com> Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Exported to modules, but currently residing in fs/internal.h due to commit 197df04c749a ("rename user_path_umountat() to user_path_mountpoint_at()"). Move back to so that overlayfs can make use of it. Signed-off-by: Miklos Szeredi --- fs/internal.h | 2 -- include/linux/namei.h | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/internal.h b/fs/internal.h index f4da3341b4a3..800319d11291 100644 --- a/fs/internal.h +++ b/fs/internal.h @@ -53,8 +53,6 @@ extern void __init chrdev_init(void); * namei.c */ extern int user_path_mountpoint_at(int, const char __user *, unsigned int, struct path *); -extern int vfs_path_lookup(struct dentry *, struct vfsmount *, - const char *, unsigned int, struct path *); /* * namespace.c diff --git a/include/linux/namei.h b/include/linux/namei.h index f29abda31e6d..2375bc50a9d3 100644 --- a/include/linux/namei.h +++ b/include/linux/namei.h @@ -78,6 +78,8 @@ extern struct dentry *user_path_create(int, const char __user *, struct path *, extern void done_path_create(struct path *, struct dentry *); extern struct dentry *kern_path_locked(const char *, struct path *); extern int kern_path_mountpoint(int, const char *, struct path *, unsigned int); +extern int vfs_path_lookup(struct dentry *, struct vfsmount *, + const char *, unsigned int, struct path *); extern struct dentry *lookup_one_len(const char *, struct dentry *, int); extern struct dentry *lookup_one_len_unlocked(const char *, struct dentry *, int);