vfs: export vfs_ioctl() to modules

This is needed by the stacked ioctl implementation in overlayfs.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
This commit is contained in:
Miklos Szeredi 2018-07-18 15:44:40 +02:00
parent d3b1084dfd
commit 9df6702ad0
3 changed files with 3 additions and 1 deletions

View 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, extern int do_vfs_ioctl(struct file *file, unsigned int fd, unsigned int cmd,
unsigned long arg); unsigned long arg);
extern long vfs_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
/* /*
* iomap support: * iomap support:

View file

@ -49,6 +49,7 @@ long vfs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
out: out:
return error; return error;
} }
EXPORT_SYMBOL(vfs_ioctl);
static int ioctl_fibmap(struct file *filp, int __user *p) static int ioctl_fibmap(struct file *filp, int __user *p)
{ {

View file

@ -1634,6 +1634,8 @@ int vfs_mkobj(struct dentry *, umode_t,
int (*f)(struct dentry *, umode_t, void *), int (*f)(struct dentry *, umode_t, void *),
void *); void *);
extern long vfs_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
/* /*
* VFS file helper functions. * VFS file helper functions.
*/ */