NFS: Remove unused parameter gfp_flags from nfs_pageio_init()
authorTrond Myklebust <trond.myklebust@primarydata.com>
Sun, 20 Aug 2017 15:33:25 +0000 (11:33 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Sun, 20 Aug 2017 15:35:33 +0000 (11:35 -0400)
Now that the mirror allocation has been moved, the parameter can go.
Also remove the redundant symbol export.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/pagelist.c
fs/nfs/read.c
fs/nfs/write.c
include/linux/nfs_page.h

index b7d193e2a2432cc666728d6fbbb0739223557b5f..ee66d8c3336c7486321dfdd66e0cce7ccb7f31ab 100644 (file)
@@ -711,8 +711,7 @@ void nfs_pageio_init(struct nfs_pageio_descriptor *desc,
                     const struct nfs_pgio_completion_ops *compl_ops,
                     const struct nfs_rw_ops *rw_ops,
                     size_t bsize,
-                    int io_flags,
-                    gfp_t gfp_flags)
+                    int io_flags)
 {
        desc->pg_moreio = 0;
        desc->pg_inode = inode;
@@ -733,7 +732,6 @@ void nfs_pageio_init(struct nfs_pageio_descriptor *desc,
        desc->pg_mirrors = desc->pg_mirrors_static;
        nfs_pageio_mirror_init(&desc->pg_mirrors[0], bsize);
 }
-EXPORT_SYMBOL_GPL(nfs_pageio_init);
 
 /**
  * nfs_pgio_result - Basic pageio error handling
index a8421d9dab6a125c4eb6b7ad9f074d8ce91a5a99..0d42573d423d6d7940f1d2dbaca45ab3dd7b65f7 100644 (file)
@@ -68,7 +68,7 @@ void nfs_pageio_init_read(struct nfs_pageio_descriptor *pgio,
                pg_ops = server->pnfs_curr_ld->pg_read_ops;
 #endif
        nfs_pageio_init(pgio, inode, pg_ops, compl_ops, &nfs_rw_read_ops,
-                       server->rsize, 0, GFP_KERNEL);
+                       server->rsize, 0);
 }
 EXPORT_SYMBOL_GPL(nfs_pageio_init_read);
 
index b1af5dee5e0a87fdbd370bfdd9277d331aa4c721..ae78ac0a7a8a66f501c1affbb31db5b2f2afabdc 100644 (file)
@@ -1452,7 +1452,7 @@ void nfs_pageio_init_write(struct nfs_pageio_descriptor *pgio,
                pg_ops = server->pnfs_curr_ld->pg_write_ops;
 #endif
        nfs_pageio_init(pgio, inode, pg_ops, compl_ops, &nfs_rw_write_ops,
-                       server->wsize, ioflags, GFP_NOIO);
+                       server->wsize, ioflags);
 }
 EXPORT_SYMBOL_GPL(nfs_pageio_init_write);
 
index d67b67ae6c8bfba9ccfdbdbdd1d132e203f22b55..8b1a35aad0c35688e40e8ae77e373165f7db4dfe 100644 (file)
@@ -125,8 +125,7 @@ extern      void nfs_pageio_init(struct nfs_pageio_descriptor *desc,
                             const struct nfs_pgio_completion_ops *compl_ops,
                             const struct nfs_rw_ops *rw_ops,
                             size_t bsize,
-                            int how,
-                            gfp_t gfp_flags);
+                            int how);
 extern int nfs_pageio_add_request(struct nfs_pageio_descriptor *,
                                   struct nfs_page *);
 extern  int nfs_pageio_resend(struct nfs_pageio_descriptor *,