diff options
author | Miklos Szeredi <mszeredi@redhat.com> | 2017-02-20 10:51:23 -0500 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2017-02-20 10:51:23 -0500 |
commit | f74ac01520c9f6d89bbc3c6931a72f757b742f86 (patch) | |
tree | 5e7a68e5172a1157ef8b5120c11df6ad6c7f8f85 /include/linux/fs.h | |
parent | bb7462b6fd64e40809a857223bf7f0e628969f87 (diff) |
mm: use helper for calling f_op->mmap()
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'include/linux/fs.h')
-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, | |||
1727 | return file->f_op->write_iter(kio, iter); | 1727 | return file->f_op->write_iter(kio, iter); |
1728 | } | 1728 | } |
1729 | 1729 | ||
1730 | static inline int call_mmap(struct file *file, struct vm_area_struct *vma) | ||
1731 | { | ||
1732 | return file->f_op->mmap(file, vma); | ||
1733 | } | ||
1734 | |||
1730 | ssize_t rw_copy_check_uvector(int type, const struct iovec __user * uvector, | 1735 | ssize_t rw_copy_check_uvector(int type, const struct iovec __user * uvector, |
1731 | unsigned long nr_segs, unsigned long fast_segs, | 1736 | unsigned long nr_segs, unsigned long fast_segs, |
1732 | struct iovec *fast_pointer, | 1737 | struct iovec *fast_pointer, |