Skip to contentSkip to conversation

NFS: pnfs_pageio_init_read() and init_write() need an extra argument

PATCH In review [email protected] 2 participants 2 messages Apr 30, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 NFS: pnfs_pageio_init_read() and init_write() need an extra argument

From: Bryan Schumaker <[email protected]>

This is only when CONFIG_NFS_V4_1 isn't enabled.

---
 fs/nfs/pnfs.h |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
fs/nfs/pnfs.h +4 -2
index 8efbee7..f20054b 100644
@@ -424,12 +424,14 @@ static inline void unset_pnfs_layoutdriver(struct nfs_server *s)
 {
 }
 
-static inline bool pnfs_pageio_init_read(struct nfs_pageio_descriptor *pgio, struct inode *inode)
+static inline bool pnfs_pageio_init_read(struct nfs_pageio_descriptor *pgio, struct inode *inode,
+					 const struct nfs_pgio_completion_ops *compl_ops)
 {
 	return false;
 }
 
-static inline bool pnfs_pageio_init_write(struct nfs_pageio_descriptor *pgio, struct inode *inode, int ioflags)
+static inline bool pnfs_pageio_init_write(struct nfs_pageio_descriptor *pgio, struct inode *inode, int ioflags,
+					  const struct nfs_pgio_completion_ops *compl_ops)
 {
 	return false;
 }
Signature · 1 line
1.7.10
#1 lore raw

ACK

Fred

Quoted 37 lines · On Mon, Apr 30, 2012 at 1:06 PM, <[email protected]> wrote:

From: Bryan Schumaker <[email protected]>

This is only when CONFIG_NFS_V4_1 isn't enabled.

---
 fs/nfs/pnfs.h |    6 ++++--

 1 file changed, 4 insertions(+), 2 deletions(-)
fs/nfs/pnfs.h +4 -3
index 8efbee7..f20054b 100644
@@ -424,12 +424,14 @@ static inline void unset_pnfs_layoutdriver(struct nfs_server *s)
  {
  }
 
-static inline bool pnfs_pageio_init_read(struct nfs_pageio_descriptor *pgio, struct inode *inode)
+static inline bool pnfs_pageio_init_read(struct nfs_pageio_descriptor *pgio, struct inode *inode,
+                                        const struct nfs_pgio_completion_ops *compl_ops)
  {
        return false;
  }
 
-static inline bool pnfs_pageio_init_write(struct nfs_pageio_descriptor *pgio, struct inode *inode, int ioflags)
+static inline bool pnfs_pageio_init_write(struct nfs_pageio_descriptor *pgio, struct inode *inode, int ioflags,
+                                         const struct nfs_pgio_completion_ops *compl_ops)
  {
        return false;
  }
--

1.7.10

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html