diff options
author | Miklos Szeredi | 2017-02-20 16:51:23 +0100 |
---|---|---|
committer | Miklos Szeredi | 2017-02-20 16:51:23 +0100 |
commit | f74ac01520c9f6d89bbc3c6931a72f757b742f86 (patch) | |
tree | 5e7a68e5172a1157ef8b5120c11df6ad6c7f8f85 /include | |
parent | vfs: use helpers for calling f_op->{read,write}_iter() (diff) | |
download | kernel-qcow2-linux-f74ac01520c9f6d89bbc3c6931a72f757b742f86.tar.gz kernel-qcow2-linux-f74ac01520c9f6d89bbc3c6931a72f757b742f86.tar.xz kernel-qcow2-linux-f74ac01520c9f6d89bbc3c6931a72f757b742f86.zip |
mm: use helper for calling f_op->mmap()
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index a3145cdff8f2..93691b59e476 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -1727,6 +1727,11 @@ static inline ssize_t call_write_iter(struct file *file, struct kiocb *kio, return file->f_op->write_iter(kio, iter); } +static inline int call_mmap(struct file *file, struct vm_area_struct *vma) +{ + return file->f_op->mmap(file, vma); +} + ssize_t rw_copy_check_uvector(int type, const struct iovec __user * uvector, unsigned long nr_segs, unsigned long fast_segs, struct iovec *fast_pointer, |