Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3500982imm; Tue, 29 May 2018 08:16:55 -0700 (PDT) X-Google-Smtp-Source: AB8JxZriBlDnJ9trBqQWPDIaZx/b1FWcz8ihA/q6WSEQwWg5vC6Nk9Em8rLYkv2fSy42GGfpZkay X-Received: by 2002:a63:7986:: with SMTP id u128-v6mr14112784pgc.127.1527607015771; Tue, 29 May 2018 08:16:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527607015; cv=none; d=google.com; s=arc-20160816; b=CPJJeVMkRtxBtLuJM1Of57F6a6x6od1/OGq7sBsj0yBfCUcHTQoZKBApOefJe4P4AU BCQ4YcUvuntAIW+hfuzSVY4DxN87IdtUbT6xkPoRl//9WT0HsAtIwP0h0XbhDTQxI2pK v+FUGcdAtSwasYD6dfLE9HZe+i+cL5qgSM4hEf+z0IPVLN4vk2fWPaaNilrIwGiLu0ML Tz97iHNepC9BOc4Pnbbtrkub+EMJT/cDOQDqEp+ZXZ6/WfYURvgXRb4XoDirpT324pMc lGh9vKPN80ZvFKF74799waIIXDoQ4XEPZIBiSwQgrq3kmBrqdREgg3JNnRA9jZTiRyq6 8u6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=GpFKBbVj3E1uzebp20elyan/+sYItiNwkvunRa9SDNw=; b=iU8ihwbW8XbMiIoeb1DGzdSmxo3Xp/YExcw3C8FavqbxpYodWY9UUzZ36krXvK8nAP hny7v6Njy2suBwkDKp5UIGmVrNvSlZoNu/z+7qUlxT+9NYSh9pXmivF7LwYz9bN4BPq6 SfdJAyUaNbbdlYj6AOtCgsUgpSBkVHcU69DN5a+LQKXgRKuJusEM+rrNmH4b16gG/gff VIlXggv8WdJrHOdKOXWyOHMVCKftI/EEqt9eQK9aaBO0T8MPP5ty/0x5Y0uY72q5PzzN T5DZjOho6fa5lw4VdovXJYytkrgaUjUDNX2W0QGJgjIvW7Xfb5hVjDSvsvg0/t6XPYcx U4hg== 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 f18-v6si25791917pgt.63.2018.05.29.08.16.41; Tue, 29 May 2018 08:16:55 -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 S936493AbeE2PPP (ORCPT + 99 others); Tue, 29 May 2018 11:15:15 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:56033 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934981AbeE2Onu (ORCPT ); Tue, 29 May 2018 10:43:50 -0400 Received: by mail-wm0-f66.google.com with SMTP id a8-v6so41317650wmg.5 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=aOCppB0bmyfTS2ABcz6rzVsTB/hW3C70/lONMlY4HGCcz2KWLLcxGL8kKo97g81j1l 2Bf/qHPQBAzdgCdLrl3HE+rcFMy0Jf9JUvwTDCSLY/C5TZ9uEO3NQqC6DqQV50h7BLuo 6+7MAi3BXjGwbS6FUdxDV/aPgHqY1/tiYb55Jlv93QeZy4lGmFQuWc4cUX1Qrauzuw/j 24u059/rGus49kqL91MakzoXPhdSdUCGtSQCGuzgRoVF9r69bPDAnQb491FSZ2NgxNVk KI2TDyNviEqqv1f5AAACGcnLaIds8JTMr14QP7ne2A0nuHfEiNcrfyGX/rFAo59LsdDH V02w== X-Gm-Message-State: ALKqPwdq56hA/g2UGUANeQzmPLYpqKXQUQgI9GyciETxrrTUn19pNusl CHUL/0ELqcWj5tnQd13jqzZZqA== 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. */ -- 2.14.3