mm: drop vm_ops->remap_pages and generic_file_remap_pages() stub
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Tue, 10 Feb 2015 22:09:54 +0000 (14:09 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 10 Feb 2015 22:30:30 +0000 (14:30 -0800)
Nobody uses it anymore.

[akpm@linux-foundation.org: fix filemap_xip.c]
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 files changed:
fs/9p/vfs_file.c
fs/btrfs/file.c
fs/ceph/addr.c
fs/cifs/file.c
fs/ext4/file.c
fs/f2fs/file.c
fs/fuse/file.c
fs/gfs2/file.c
fs/nfs/file.c
fs/nilfs2/file.c
fs/ocfs2/mmap.c
fs/ubifs/file.c
fs/xfs/xfs_file.c
include/linux/fs.h
include/linux/mm.h
mm/filemap.c
mm/filemap_xip.c
mm/shmem.c

index 5594505e6e730eac98c5b2a2f786d00b946a987b..b40133796b8734d32cf5376b12d1e01672af85db 100644 (file)
@@ -831,7 +831,6 @@ static const struct vm_operations_struct v9fs_file_vm_ops = {
        .fault = filemap_fault,
        .map_pages = filemap_map_pages,
        .page_mkwrite = v9fs_vm_page_mkwrite,
-       .remap_pages = generic_file_remap_pages,
 };
 
 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 = {
        .fault = filemap_fault,
        .map_pages = filemap_map_pages,
        .page_mkwrite = v9fs_vm_page_mkwrite,
-       .remap_pages = generic_file_remap_pages,
 };
 
 
index e4090259569bccfdb3ec788481814e769ff84615..a606ab551296e150f0b8045c937a8df0dab4dc58 100644 (file)
@@ -2081,7 +2081,6 @@ static const struct vm_operations_struct btrfs_file_vm_ops = {
        .fault          = filemap_fault,
        .map_pages      = filemap_map_pages,
        .page_mkwrite   = btrfs_page_mkwrite,
-       .remap_pages    = generic_file_remap_pages,
 };
 
 static int btrfs_file_mmap(struct file *filp, struct vm_area_struct *vma)
index c81c0e004588b9e2ae03580ed6265096d6608d46..24be059fd1f8e073b7ee1d250b20f0bcdab16da0 100644 (file)
@@ -1569,7 +1569,6 @@ out:
 static struct vm_operations_struct ceph_vmops = {
        .fault          = ceph_filemap_fault,
        .page_mkwrite   = ceph_page_mkwrite,
-       .remap_pages    = generic_file_remap_pages,
 };
 
 int ceph_mmap(struct file *file, struct vm_area_struct *vma)
index 74f12877493ac6c3f87792192b8aa8c1190f3c05..294ff302a2370fcee27b16bb0f4967bdfa509ecb 100644 (file)
@@ -3248,7 +3248,6 @@ static struct vm_operations_struct cifs_file_vm_ops = {
        .fault = filemap_fault,
        .map_pages = filemap_map_pages,
        .page_mkwrite = cifs_page_mkwrite,
-       .remap_pages = generic_file_remap_pages,
 };
 
 int cifs_file_strict_mmap(struct file *file, struct vm_area_struct *vma)
index 8131be8c0af3166aac865557baa9f0371564a397..7cb5923861211999fe7c3bd627fee9ca9d1f8d7d 100644 (file)
@@ -195,7 +195,6 @@ static const struct vm_operations_struct ext4_file_vm_ops = {
        .fault          = filemap_fault,
        .map_pages      = filemap_map_pages,
        .page_mkwrite   = ext4_page_mkwrite,
-       .remap_pages    = generic_file_remap_pages,
 };
 
 static int ext4_file_mmap(struct file *file, struct vm_area_struct *vma)
index 3c27e0ecb3bcf1d57a1b349b0e00b30ce99cd43f..5674ba13102be9373be7a168fbf44f1980e3d86d 100644 (file)
@@ -92,7 +92,6 @@ static const struct vm_operations_struct f2fs_file_vm_ops = {
        .fault          = filemap_fault,
        .map_pages      = filemap_map_pages,
        .page_mkwrite   = f2fs_vm_page_mkwrite,
-       .remap_pages    = generic_file_remap_pages,
 };
 
 static int get_parent_ino(struct inode *inode, nid_t *pino)
index 760b2c55219741a48e0e444d482cb9e08535f938..d769e594855b0ac6192925c4a6f4f23b03db4ca7 100644 (file)
@@ -2062,7 +2062,6 @@ static const struct vm_operations_struct fuse_file_vm_ops = {
        .fault          = filemap_fault,
        .map_pages      = filemap_map_pages,
        .page_mkwrite   = fuse_page_mkwrite,
-       .remap_pages    = generic_file_remap_pages,
 };
 
 static int fuse_file_mmap(struct file *file, struct vm_area_struct *vma)
index 6e600abf694a20f327a7a025c670954002745453..ec9c2d33477a848d88ba2a60d9a206efea44fd31 100644 (file)
@@ -498,7 +498,6 @@ static const struct vm_operations_struct gfs2_vm_ops = {
        .fault = filemap_fault,
        .map_pages = filemap_map_pages,
        .page_mkwrite = gfs2_page_mkwrite,
-       .remap_pages = generic_file_remap_pages,
 };
 
 /**
index 2ab6f00dba5bd63cc8e958165c1a5bdf9443840f..94712fc781fa58fa162c8399c6b9427aa242f5ce 100644 (file)
@@ -646,7 +646,6 @@ static const struct vm_operations_struct nfs_file_vm_ops = {
        .fault = filemap_fault,
        .map_pages = filemap_map_pages,
        .page_mkwrite = nfs_vm_page_mkwrite,
-       .remap_pages = generic_file_remap_pages,
 };
 
 static int nfs_need_sync_write(struct file *filp, struct inode *inode)
index 3a03e0aea1fb6b3cc9b00e1d3870719f13030c42..a8c728acb7a809b4078c21146ae1c3759c7f7021 100644 (file)
@@ -128,7 +128,6 @@ static const struct vm_operations_struct nilfs_file_vm_ops = {
        .fault          = filemap_fault,
        .map_pages      = filemap_map_pages,
        .page_mkwrite   = nilfs_page_mkwrite,
-       .remap_pages    = generic_file_remap_pages,
 };
 
 static int nilfs_file_mmap(struct file *file, struct vm_area_struct *vma)
index 10d66c75cecbae9b69d32a34ccf343d332185cb3..9581d190f6e12346e70226c93458df0a1791abe0 100644 (file)
@@ -173,7 +173,6 @@ out:
 static const struct vm_operations_struct ocfs2_file_vm_ops = {
        .fault          = ocfs2_fault,
        .page_mkwrite   = ocfs2_page_mkwrite,
-       .remap_pages    = generic_file_remap_pages,
 };
 
 int ocfs2_mmap(struct file *file, struct vm_area_struct *vma)
index 538519ee37d939536806fe62ecb55ba8bc9e04b3..035e510114447582cf9e38d7b113519e7094a1f2 100644 (file)
@@ -1536,7 +1536,6 @@ static const struct vm_operations_struct ubifs_file_vm_ops = {
        .fault        = filemap_fault,
        .map_pages = filemap_map_pages,
        .page_mkwrite = ubifs_vm_page_mkwrite,
-       .remap_pages = generic_file_remap_pages,
 };
 
 static int ubifs_file_mmap(struct file *file, struct vm_area_struct *vma)
index 13e974e6a889fa0270b5679be2b1db5baca81bea..ac7f1e8f92b35c9c4f2da53021792dad35dbc795 100644 (file)
@@ -1384,5 +1384,4 @@ static const struct vm_operations_struct xfs_file_vm_ops = {
        .fault          = filemap_fault,
        .map_pages      = filemap_map_pages,
        .page_mkwrite   = xfs_vm_page_mkwrite,
-       .remap_pages    = generic_file_remap_pages,
 };
index 60c4996df7f3bed76c0bf6e569a772ee9004e598..47f557c7ef7eda84e797234f0fc661b669d801e7 100644 (file)
@@ -2481,12 +2481,6 @@ extern int sb_min_blocksize(struct super_block *, int);
 
 extern int generic_file_mmap(struct file *, struct vm_area_struct *);
 extern int generic_file_readonly_mmap(struct file *, struct vm_area_struct *);
-static inline int generic_file_remap_pages(struct vm_area_struct *vma,
-               unsigned long addr, unsigned long size, pgoff_t pgoff)
-{
-       BUG();
-       return 0;
-}
 int generic_write_checks(struct file *file, loff_t *pos, size_t *count, int isblk);
 extern ssize_t generic_file_read_iter(struct kiocb *, struct iov_iter *);
 extern ssize_t __generic_file_write_iter(struct kiocb *, struct iov_iter *);
index 376e5c325dee02821afd97eeb7442c6c5d362143..2ddd9d1d6268af262e2613a95403807f975e895e 100644 (file)
@@ -285,9 +285,6 @@ struct vm_operations_struct {
        struct mempolicy *(*get_policy)(struct vm_area_struct *vma,
                                        unsigned long addr);
 #endif
-       /* called by sys_remap_file_pages() to populate non-linear mapping */
-       int (*remap_pages)(struct vm_area_struct *vma, unsigned long addr,
-                          unsigned long size, pgoff_t pgoff);
 };
 
 struct mmu_gather;
index 673e4581a2e541b44b02cd8ef201772dad5311a1..bf7a271427041342c9a2fab5ae53fc563ad52f44 100644 (file)
@@ -2087,7 +2087,6 @@ const struct vm_operations_struct generic_file_vm_ops = {
        .fault          = filemap_fault,
        .map_pages      = filemap_map_pages,
        .page_mkwrite   = filemap_page_mkwrite,
-       .remap_pages    = generic_file_remap_pages,
 };
 
 /* This is used for a general mmap of a disk file */
index 0d105aeff82fe258f06eaacbb8205ade160436cb..70c09da1a4198c3def28256c1b5c8cd79f16a5c6 100644 (file)
@@ -301,7 +301,6 @@ out:
 static const struct vm_operations_struct xip_file_vm_ops = {
        .fault  = xip_file_fault,
        .page_mkwrite   = filemap_page_mkwrite,
-       .remap_pages = generic_file_remap_pages,
 };
 
 int xip_file_mmap(struct file * file, struct vm_area_struct * vma)
index 993e6ba689ccd442aa33e42489e71f0e558d1943..b3e4031819815b68b813728aa6c0f4ca0d4607b6 100644 (file)
@@ -3201,7 +3201,6 @@ static const struct vm_operations_struct shmem_vm_ops = {
        .set_policy     = shmem_set_policy,
        .get_policy     = shmem_get_policy,
 #endif
-       .remap_pages    = generic_file_remap_pages,
 };
 
 static struct dentry *shmem_mount(struct file_system_type *fs_type,