diff options
-rw-r--r-- | fs/9p/vfs_file.c | 2 | ||||
-rw-r--r-- | fs/btrfs/file.c | 1 | ||||
-rw-r--r-- | fs/ceph/addr.c | 1 | ||||
-rw-r--r-- | fs/cifs/file.c | 1 | ||||
-rw-r--r-- | fs/ext4/file.c | 1 | ||||
-rw-r--r-- | fs/f2fs/file.c | 1 | ||||
-rw-r--r-- | fs/fuse/file.c | 1 | ||||
-rw-r--r-- | fs/gfs2/file.c | 1 | ||||
-rw-r--r-- | fs/nfs/file.c | 1 | ||||
-rw-r--r-- | fs/nilfs2/file.c | 1 | ||||
-rw-r--r-- | fs/ocfs2/mmap.c | 1 | ||||
-rw-r--r-- | fs/ubifs/file.c | 1 | ||||
-rw-r--r-- | fs/xfs/xfs_file.c | 1 | ||||
-rw-r--r-- | include/linux/fs.h | 6 | ||||
-rw-r--r-- | include/linux/mm.h | 3 | ||||
-rw-r--r-- | mm/filemap.c | 1 | ||||
-rw-r--r-- | mm/filemap_xip.c | 1 | ||||
-rw-r--r-- | mm/shmem.c | 1 |
18 files changed, 0 insertions, 26 deletions
diff --git a/fs/9p/vfs_file.c b/fs/9p/vfs_file.c index 5594505e6e73..b40133796b87 100644 --- a/fs/9p/vfs_file.c +++ b/fs/9p/vfs_file.c | |||
@@ -831,7 +831,6 @@ static const struct vm_operations_struct v9fs_file_vm_ops = { | |||
831 | .fault = filemap_fault, | 831 | .fault = filemap_fault, |
832 | .map_pages = filemap_map_pages, | 832 | .map_pages = filemap_map_pages, |
833 | .page_mkwrite = v9fs_vm_page_mkwrite, | 833 | .page_mkwrite = v9fs_vm_page_mkwrite, |
834 | .remap_pages = generic_file_remap_pages, | ||
835 | }; | 834 | }; |
836 | 835 | ||
837 | static const struct vm_operations_struct v9fs_mmap_file_vm_ops = { | 836 | static const struct vm_operations_struct v9fs_mmap_file_vm_ops = { |
@@ -839,7 +838,6 @@ static const struct vm_operations_struct v9fs_mmap_file_vm_ops = { | |||
839 | .fault = filemap_fault, | 838 | .fault = filemap_fault, |
840 | .map_pages = filemap_map_pages, | 839 | .map_pages = filemap_map_pages, |
841 | .page_mkwrite = v9fs_vm_page_mkwrite, | 840 | .page_mkwrite = v9fs_vm_page_mkwrite, |
842 | .remap_pages = generic_file_remap_pages, | ||
843 | }; | 841 | }; |
844 | 842 | ||
845 | 843 | ||
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index e4090259569b..a606ab551296 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c | |||
@@ -2081,7 +2081,6 @@ static const struct vm_operations_struct btrfs_file_vm_ops = { | |||
2081 | .fault = filemap_fault, | 2081 | .fault = filemap_fault, |
2082 | .map_pages = filemap_map_pages, | 2082 | .map_pages = filemap_map_pages, |
2083 | .page_mkwrite = btrfs_page_mkwrite, | 2083 | .page_mkwrite = btrfs_page_mkwrite, |
2084 | .remap_pages = generic_file_remap_pages, | ||
2085 | }; | 2084 | }; |
2086 | 2085 | ||
2087 | static int btrfs_file_mmap(struct file *filp, struct vm_area_struct *vma) | 2086 | static int btrfs_file_mmap(struct file *filp, struct vm_area_struct *vma) |
diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c index c81c0e004588..24be059fd1f8 100644 --- a/fs/ceph/addr.c +++ b/fs/ceph/addr.c | |||
@@ -1569,7 +1569,6 @@ out: | |||
1569 | static struct vm_operations_struct ceph_vmops = { | 1569 | static struct vm_operations_struct ceph_vmops = { |
1570 | .fault = ceph_filemap_fault, | 1570 | .fault = ceph_filemap_fault, |
1571 | .page_mkwrite = ceph_page_mkwrite, | 1571 | .page_mkwrite = ceph_page_mkwrite, |
1572 | .remap_pages = generic_file_remap_pages, | ||
1573 | }; | 1572 | }; |
1574 | 1573 | ||
1575 | int ceph_mmap(struct file *file, struct vm_area_struct *vma) | 1574 | int ceph_mmap(struct file *file, struct vm_area_struct *vma) |
diff --git a/fs/cifs/file.c b/fs/cifs/file.c index 74f12877493a..294ff302a237 100644 --- a/fs/cifs/file.c +++ b/fs/cifs/file.c | |||
@@ -3248,7 +3248,6 @@ static struct vm_operations_struct cifs_file_vm_ops = { | |||
3248 | .fault = filemap_fault, | 3248 | .fault = filemap_fault, |
3249 | .map_pages = filemap_map_pages, | 3249 | .map_pages = filemap_map_pages, |
3250 | .page_mkwrite = cifs_page_mkwrite, | 3250 | .page_mkwrite = cifs_page_mkwrite, |
3251 | .remap_pages = generic_file_remap_pages, | ||
3252 | }; | 3251 | }; |
3253 | 3252 | ||
3254 | int cifs_file_strict_mmap(struct file *file, struct vm_area_struct *vma) | 3253 | int cifs_file_strict_mmap(struct file *file, struct vm_area_struct *vma) |
diff --git a/fs/ext4/file.c b/fs/ext4/file.c index 8131be8c0af3..7cb592386121 100644 --- a/fs/ext4/file.c +++ b/fs/ext4/file.c | |||
@@ -195,7 +195,6 @@ static const struct vm_operations_struct ext4_file_vm_ops = { | |||
195 | .fault = filemap_fault, | 195 | .fault = filemap_fault, |
196 | .map_pages = filemap_map_pages, | 196 | .map_pages = filemap_map_pages, |
197 | .page_mkwrite = ext4_page_mkwrite, | 197 | .page_mkwrite = ext4_page_mkwrite, |
198 | .remap_pages = generic_file_remap_pages, | ||
199 | }; | 198 | }; |
200 | 199 | ||
201 | static int ext4_file_mmap(struct file *file, struct vm_area_struct *vma) | 200 | static int ext4_file_mmap(struct file *file, struct vm_area_struct *vma) |
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 3c27e0ecb3bc..5674ba13102b 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c | |||
@@ -92,7 +92,6 @@ static const struct vm_operations_struct f2fs_file_vm_ops = { | |||
92 | .fault = filemap_fault, | 92 | .fault = filemap_fault, |
93 | .map_pages = filemap_map_pages, | 93 | .map_pages = filemap_map_pages, |
94 | .page_mkwrite = f2fs_vm_page_mkwrite, | 94 | .page_mkwrite = f2fs_vm_page_mkwrite, |
95 | .remap_pages = generic_file_remap_pages, | ||
96 | }; | 95 | }; |
97 | 96 | ||
98 | static int get_parent_ino(struct inode *inode, nid_t *pino) | 97 | static int get_parent_ino(struct inode *inode, nid_t *pino) |
diff --git a/fs/fuse/file.c b/fs/fuse/file.c index 760b2c552197..d769e594855b 100644 --- a/fs/fuse/file.c +++ b/fs/fuse/file.c | |||
@@ -2062,7 +2062,6 @@ static const struct vm_operations_struct fuse_file_vm_ops = { | |||
2062 | .fault = filemap_fault, | 2062 | .fault = filemap_fault, |
2063 | .map_pages = filemap_map_pages, | 2063 | .map_pages = filemap_map_pages, |
2064 | .page_mkwrite = fuse_page_mkwrite, | 2064 | .page_mkwrite = fuse_page_mkwrite, |
2065 | .remap_pages = generic_file_remap_pages, | ||
2066 | }; | 2065 | }; |
2067 | 2066 | ||
2068 | static int fuse_file_mmap(struct file *file, struct vm_area_struct *vma) | 2067 | static int fuse_file_mmap(struct file *file, struct vm_area_struct *vma) |
diff --git a/fs/gfs2/file.c b/fs/gfs2/file.c index 6e600abf694a..ec9c2d33477a 100644 --- a/fs/gfs2/file.c +++ b/fs/gfs2/file.c | |||
@@ -498,7 +498,6 @@ static const struct vm_operations_struct gfs2_vm_ops = { | |||
498 | .fault = filemap_fault, | 498 | .fault = filemap_fault, |
499 | .map_pages = filemap_map_pages, | 499 | .map_pages = filemap_map_pages, |
500 | .page_mkwrite = gfs2_page_mkwrite, | 500 | .page_mkwrite = gfs2_page_mkwrite, |
501 | .remap_pages = generic_file_remap_pages, | ||
502 | }; | 501 | }; |
503 | 502 | ||
504 | /** | 503 | /** |
diff --git a/fs/nfs/file.c b/fs/nfs/file.c index 2ab6f00dba5b..94712fc781fa 100644 --- a/fs/nfs/file.c +++ b/fs/nfs/file.c | |||
@@ -646,7 +646,6 @@ static const struct vm_operations_struct nfs_file_vm_ops = { | |||
646 | .fault = filemap_fault, | 646 | .fault = filemap_fault, |
647 | .map_pages = filemap_map_pages, | 647 | .map_pages = filemap_map_pages, |
648 | .page_mkwrite = nfs_vm_page_mkwrite, | 648 | .page_mkwrite = nfs_vm_page_mkwrite, |
649 | .remap_pages = generic_file_remap_pages, | ||
650 | }; | 649 | }; |
651 | 650 | ||
652 | static int nfs_need_sync_write(struct file *filp, struct inode *inode) | 651 | static int nfs_need_sync_write(struct file *filp, struct inode *inode) |
diff --git a/fs/nilfs2/file.c b/fs/nilfs2/file.c index 3a03e0aea1fb..a8c728acb7a8 100644 --- a/fs/nilfs2/file.c +++ b/fs/nilfs2/file.c | |||
@@ -128,7 +128,6 @@ static const struct vm_operations_struct nilfs_file_vm_ops = { | |||
128 | .fault = filemap_fault, | 128 | .fault = filemap_fault, |
129 | .map_pages = filemap_map_pages, | 129 | .map_pages = filemap_map_pages, |
130 | .page_mkwrite = nilfs_page_mkwrite, | 130 | .page_mkwrite = nilfs_page_mkwrite, |
131 | .remap_pages = generic_file_remap_pages, | ||
132 | }; | 131 | }; |
133 | 132 | ||
134 | static int nilfs_file_mmap(struct file *file, struct vm_area_struct *vma) | 133 | static int nilfs_file_mmap(struct file *file, struct vm_area_struct *vma) |
diff --git a/fs/ocfs2/mmap.c b/fs/ocfs2/mmap.c index 10d66c75cecb..9581d190f6e1 100644 --- a/fs/ocfs2/mmap.c +++ b/fs/ocfs2/mmap.c | |||
@@ -173,7 +173,6 @@ out: | |||
173 | static const struct vm_operations_struct ocfs2_file_vm_ops = { | 173 | static const struct vm_operations_struct ocfs2_file_vm_ops = { |
174 | .fault = ocfs2_fault, | 174 | .fault = ocfs2_fault, |
175 | .page_mkwrite = ocfs2_page_mkwrite, | 175 | .page_mkwrite = ocfs2_page_mkwrite, |
176 | .remap_pages = generic_file_remap_pages, | ||
177 | }; | 176 | }; |
178 | 177 | ||
179 | int ocfs2_mmap(struct file *file, struct vm_area_struct *vma) | 178 | int ocfs2_mmap(struct file *file, struct vm_area_struct *vma) |
diff --git a/fs/ubifs/file.c b/fs/ubifs/file.c index 538519ee37d9..035e51011444 100644 --- a/fs/ubifs/file.c +++ b/fs/ubifs/file.c | |||
@@ -1536,7 +1536,6 @@ static const struct vm_operations_struct ubifs_file_vm_ops = { | |||
1536 | .fault = filemap_fault, | 1536 | .fault = filemap_fault, |
1537 | .map_pages = filemap_map_pages, | 1537 | .map_pages = filemap_map_pages, |
1538 | .page_mkwrite = ubifs_vm_page_mkwrite, | 1538 | .page_mkwrite = ubifs_vm_page_mkwrite, |
1539 | .remap_pages = generic_file_remap_pages, | ||
1540 | }; | 1539 | }; |
1541 | 1540 | ||
1542 | static int ubifs_file_mmap(struct file *file, struct vm_area_struct *vma) | 1541 | static int ubifs_file_mmap(struct file *file, struct vm_area_struct *vma) |
diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c index 13e974e6a889..ac7f1e8f92b3 100644 --- a/fs/xfs/xfs_file.c +++ b/fs/xfs/xfs_file.c | |||
@@ -1384,5 +1384,4 @@ static const struct vm_operations_struct xfs_file_vm_ops = { | |||
1384 | .fault = filemap_fault, | 1384 | .fault = filemap_fault, |
1385 | .map_pages = filemap_map_pages, | 1385 | .map_pages = filemap_map_pages, |
1386 | .page_mkwrite = xfs_vm_page_mkwrite, | 1386 | .page_mkwrite = xfs_vm_page_mkwrite, |
1387 | .remap_pages = generic_file_remap_pages, | ||
1388 | }; | 1387 | }; |
diff --git a/include/linux/fs.h b/include/linux/fs.h index 60c4996df7f3..47f557c7ef7e 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -2481,12 +2481,6 @@ extern int sb_min_blocksize(struct super_block *, int); | |||
2481 | 2481 | ||
2482 | extern int generic_file_mmap(struct file *, struct vm_area_struct *); | 2482 | extern int generic_file_mmap(struct file *, struct vm_area_struct *); |
2483 | extern int generic_file_readonly_mmap(struct file *, struct vm_area_struct *); | 2483 | extern int generic_file_readonly_mmap(struct file *, struct vm_area_struct *); |
2484 | static inline int generic_file_remap_pages(struct vm_area_struct *vma, | ||
2485 | unsigned long addr, unsigned long size, pgoff_t pgoff) | ||
2486 | { | ||
2487 | BUG(); | ||
2488 | return 0; | ||
2489 | } | ||
2490 | int generic_write_checks(struct file *file, loff_t *pos, size_t *count, int isblk); | 2484 | int generic_write_checks(struct file *file, loff_t *pos, size_t *count, int isblk); |
2491 | extern ssize_t generic_file_read_iter(struct kiocb *, struct iov_iter *); | 2485 | extern ssize_t generic_file_read_iter(struct kiocb *, struct iov_iter *); |
2492 | extern ssize_t __generic_file_write_iter(struct kiocb *, struct iov_iter *); | 2486 | extern ssize_t __generic_file_write_iter(struct kiocb *, struct iov_iter *); |
diff --git a/include/linux/mm.h b/include/linux/mm.h index 376e5c325dee..2ddd9d1d6268 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -285,9 +285,6 @@ struct vm_operations_struct { | |||
285 | struct mempolicy *(*get_policy)(struct vm_area_struct *vma, | 285 | struct mempolicy *(*get_policy)(struct vm_area_struct *vma, |
286 | unsigned long addr); | 286 | unsigned long addr); |
287 | #endif | 287 | #endif |
288 | /* called by sys_remap_file_pages() to populate non-linear mapping */ | ||
289 | int (*remap_pages)(struct vm_area_struct *vma, unsigned long addr, | ||
290 | unsigned long size, pgoff_t pgoff); | ||
291 | }; | 288 | }; |
292 | 289 | ||
293 | struct mmu_gather; | 290 | struct mmu_gather; |
diff --git a/mm/filemap.c b/mm/filemap.c index 673e4581a2e5..bf7a27142704 100644 --- a/mm/filemap.c +++ b/mm/filemap.c | |||
@@ -2087,7 +2087,6 @@ const struct vm_operations_struct generic_file_vm_ops = { | |||
2087 | .fault = filemap_fault, | 2087 | .fault = filemap_fault, |
2088 | .map_pages = filemap_map_pages, | 2088 | .map_pages = filemap_map_pages, |
2089 | .page_mkwrite = filemap_page_mkwrite, | 2089 | .page_mkwrite = filemap_page_mkwrite, |
2090 | .remap_pages = generic_file_remap_pages, | ||
2091 | }; | 2090 | }; |
2092 | 2091 | ||
2093 | /* This is used for a general mmap of a disk file */ | 2092 | /* This is used for a general mmap of a disk file */ |
diff --git a/mm/filemap_xip.c b/mm/filemap_xip.c index 0d105aeff82f..70c09da1a419 100644 --- a/mm/filemap_xip.c +++ b/mm/filemap_xip.c | |||
@@ -301,7 +301,6 @@ out: | |||
301 | static const struct vm_operations_struct xip_file_vm_ops = { | 301 | static const struct vm_operations_struct xip_file_vm_ops = { |
302 | .fault = xip_file_fault, | 302 | .fault = xip_file_fault, |
303 | .page_mkwrite = filemap_page_mkwrite, | 303 | .page_mkwrite = filemap_page_mkwrite, |
304 | .remap_pages = generic_file_remap_pages, | ||
305 | }; | 304 | }; |
306 | 305 | ||
307 | int xip_file_mmap(struct file * file, struct vm_area_struct * vma) | 306 | int xip_file_mmap(struct file * file, struct vm_area_struct * vma) |
diff --git a/mm/shmem.c b/mm/shmem.c index 993e6ba689cc..b3e403181981 100644 --- a/mm/shmem.c +++ b/mm/shmem.c | |||
@@ -3201,7 +3201,6 @@ static const struct vm_operations_struct shmem_vm_ops = { | |||
3201 | .set_policy = shmem_set_policy, | 3201 | .set_policy = shmem_set_policy, |
3202 | .get_policy = shmem_get_policy, | 3202 | .get_policy = shmem_get_policy, |
3203 | #endif | 3203 | #endif |
3204 | .remap_pages = generic_file_remap_pages, | ||
3205 | }; | 3204 | }; |
3206 | 3205 | ||
3207 | static struct dentry *shmem_mount(struct file_system_type *fs_type, | 3206 | static struct dentry *shmem_mount(struct file_system_type *fs_type, |