From patchwork Mon May 7 08:37:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miklos Szeredi X-Patchwork-Id: 10383633 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 C87DD60353 for ; Mon, 7 May 2018 08:49:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BCA9828B60 for ; Mon, 7 May 2018 08:49:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B176028B64; Mon, 7 May 2018 08:49: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=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI 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 A33D928B60 for ; Mon, 7 May 2018 08:49:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752085AbeEGIt2 (ORCPT ); Mon, 7 May 2018 04:49:28 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:35241 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752072AbeEGIiS (ORCPT ); Mon, 7 May 2018 04:38:18 -0400 Received: by mail-wm0-f66.google.com with SMTP id o78-v6so13871922wmg.0 for ; Mon, 07 May 2018 01:38:17 -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=UV+lbiJDt+7MmXJssSV6faBdF8FoOZmezT0/TkPgcEo=; b=GvjbgrurjXGEEwpwIEFBttRHHDOjxVVqMb5VIZmP64l7+S+P0p6Di6m+Ub1fW0tOwl oA90QEg21z6/phdpHjKifqTcbbD8XPEMFbUp+pFw6/L0IdMUWOYKlNFbbueafzycihXh ys7ZRvngiPqekjsHItQMSzBVBssQmlxu99yy4UYuNQcQM2VY72jyElWHLhLPGWI0ouTt 8hDwmhdLAuLafTyhrhb34ju2yEY0yqHCP7QpJNc2b3OuhQJGIK8evwIiaOApnuMXLKWT cUUP9E3oDSCBU0ETYAOO+9/HGraYeeyL5rSYCFSY8hPQgaAzkeMiKqfHkR9F0W6XrkzZ f1cg== X-Gm-Message-State: ALQs6tCTFZg+4PAmrDMuT+5plhAPQgF9kro5ZVWqE81Qv2kfxbQ97+x2 oT5Ez/FzA/gF3e0iogf6RPOknA== X-Google-Smtp-Source: AB8JxZprqDppCyZkJLUTX8x7F+lQPmsWzt2xbcXLipWXDYhrEFQvoOzRuz+G3UhoGyksjG3Pkh0CHQ== X-Received: by 10.28.0.206 with SMTP id 197mr166449wma.118.1525682297123; Mon, 07 May 2018 01:38:17 -0700 (PDT) Received: from veci.piliscsaba.redhat.com (C2B0E321.catv.pool.telekom.hu. [194.176.227.33]) by smtp.gmail.com with ESMTPSA id h8-v6sm5908050wmc.16.2018.05.07.01.38.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 07 May 2018 01:38:16 -0700 (PDT) From: Miklos Szeredi To: linux-unionfs@vger.kernel.org Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Al Viro Subject: [PATCH v2 04/35] vfs: export vfs_ioctl() to modules Date: Mon, 7 May 2018 10:37:36 +0200 Message-Id: <20180507083807.28792-5-mszeredi@redhat.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180507083807.28792-1-mszeredi@redhat.com> References: <20180507083807.28792-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 898fb798a3ff..26685011c4bd 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. */