]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
vfs: export vfs_ioctl() to modules
authorMiklos Szeredi <mszeredi@redhat.com>
Wed, 18 Jul 2018 13:44:40 +0000 (15:44 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Wed, 18 Jul 2018 13:44:40 +0000 (15:44 +0200)
This is needed by the stacked ioctl implementation in overlayfs.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/internal.h
fs/ioctl.c
include/linux/fs.h

index 442098fa0a841fae3a8ff282f795a01a016e0b8f..9c3b4c40e58234ee6744ebbef1a95c03d479c18e 100644 (file)
@@ -184,7 +184,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:
index b445b13fc59bd99cea023dc5835674833da4bd6e..3212c29235ce34d21dedc26ea569978d45462706 100644 (file)
@@ -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)
 {
index e1884840d556ae895b93292e5a14dda82fbcb8b6..019817a083a01a2d601af639a3d8017d9e36b600 100644 (file)
@@ -1634,6 +1634,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.
  */