From patchwork Tue May 29 14:43:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miklos Szeredi X-Patchwork-Id: 10436143 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 CF6E160327 for ; Tue, 29 May 2018 15:15:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C13FB28587 for ; Tue, 29 May 2018 15:15:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B607E287ED; Tue, 29 May 2018 15:15:50 +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=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=unavailable 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 693A828587 for ; Tue, 29 May 2018 15:15:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935637AbeE2PPK (ORCPT ); Tue, 29 May 2018 11:15:10 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:54477 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935550AbeE2Onu (ORCPT ); Tue, 29 May 2018 10:43:50 -0400 Received: by mail-wm0-f65.google.com with SMTP id f6-v6so41346494wmc.4 for ; Tue, 29 May 2018 07:43:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=GpFKBbVj3E1uzebp20elyan/+sYItiNwkvunRa9SDNw=; b=ChDmS9i5bS54AHtn/jSnD58JUkTDucd/FMILyvg+MJdzrO+E42eSGb+gbEAqWXj4LC djSuA0J+Va2g3OYUPjZFZ+IHHjxtJbO8sh1/uyzU4SX4+V6UbsUu7MArP1gFk8qLCVQd XAaZKPxQkOKw+ef7gat9n+FPlZnFxgQPX0/YmCoDmrQle60ne6yWleV2sc2KLjbK+8mF JHeAiG2LcgqYnV/+pQvKf/HS4t24JaP3Spz5zNYkYKP1vCk7U4/EAJLLCJDn+mw1/lFd ewQKjbKJE213XtgVLp7s7NBdK1IfBcrDmRUia0hZzu56Z+yejxdzEw21tBo4Vy1G9T9V fCzQ== X-Gm-Message-State: ALKqPwfcMiSMIaMRfGZzS/XRy0W5qqkYysgtwrl5hKESlT+k83V3IfzF 651w3z75u0a4fIyqzbkqxugO/cJtgtg= X-Google-Smtp-Source: ADUXVKKqrRDsiufGm4H8PX8Q/S6okU9auseWwTYfiR4T+ekL49YLOJngq7kSr3bLZpUyaIfMbFyICQ== X-Received: by 2002:a1c:f407:: with SMTP id z7-v6mr3806209wma.143.1527605029440; Tue, 29 May 2018 07:43:49 -0700 (PDT) Received: from veci.piliscsaba.redhat.com (catv-176-63-54-97.catv.broadband.hu. [176.63.54.97]) by smtp.gmail.com with ESMTPSA id t198-v6sm18834422wmt.23.2018.05.29.07.43.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 29 May 2018 07:43:48 -0700 (PDT) From: Miklos Szeredi To: linux-unionfs@vger.kernel.org Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 07/39] vfs: export vfs_ioctl() to modules Date: Tue, 29 May 2018 16:43:07 +0200 Message-Id: <20180529144339.16538-8-mszeredi@redhat.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180529144339.16538-1-mszeredi@redhat.com> References: <20180529144339.16538-1-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 This is needed by the stacked ioctl implementation in overlayfs. Signed-off-by: Miklos Szeredi --- fs/internal.h | 1 - fs/ioctl.c | 1 + include/linux/fs.h | 2 ++ 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/fs/internal.h b/fs/internal.h index b82725ba3054..6821cf475fc6 100644 --- a/fs/internal.h +++ b/fs/internal.h @@ -189,7 +189,6 @@ extern const struct dentry_operations ns_dentry_operations; */ extern int do_vfs_ioctl(struct file *file, unsigned int fd, unsigned int cmd, unsigned long arg); -extern long vfs_ioctl(struct file *file, unsigned int cmd, unsigned long arg); /* * iomap support: diff --git a/fs/ioctl.c b/fs/ioctl.c index 4823431d1c9d..41071915f411 100644 --- a/fs/ioctl.c +++ b/fs/ioctl.c @@ -49,6 +49,7 @@ long vfs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) out: return error; } +EXPORT_SYMBOL(vfs_ioctl); static int ioctl_fibmap(struct file *filp, int __user *p) { diff --git a/include/linux/fs.h b/include/linux/fs.h index 1ea3f153b7f8..598c60092c11 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -1623,6 +1623,8 @@ int vfs_mkobj(struct dentry *, umode_t, int (*f)(struct dentry *, umode_t, void *), void *); +extern long vfs_ioctl(struct file *file, unsigned int cmd, unsigned long arg); + /* * VFS file helper functions. */