aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/rpc_pipe.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2009-08-09 15:14:15 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2009-08-09 15:14:15 -0400
commitb693ba4a338da15db1db4b5ebaa36e4ab9781c82 (patch)
tree6c16b9ef282af0e958fa216310d4552303b525d5 /net/sunrpc/rpc_pipe.c
parent7b2aa037e878c939676675969983284a02958ae3 (diff)
SUNRPC: Constify rpc_pipe_ops...
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc/rpc_pipe.c')
-rw-r--r--net/sunrpc/rpc_pipe.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c
index 9ced0628d69c..f6f60f625e3f 100644
--- a/net/sunrpc/rpc_pipe.c
+++ b/net/sunrpc/rpc_pipe.c
@@ -125,7 +125,7 @@ static void
125rpc_close_pipes(struct inode *inode) 125rpc_close_pipes(struct inode *inode)
126{ 126{
127 struct rpc_inode *rpci = RPC_I(inode); 127 struct rpc_inode *rpci = RPC_I(inode);
128 struct rpc_pipe_ops *ops; 128 const struct rpc_pipe_ops *ops;
129 int need_release; 129 int need_release;
130 130
131 mutex_lock(&inode->i_mutex); 131 mutex_lock(&inode->i_mutex);
@@ -776,8 +776,9 @@ rpc_rmdir(struct dentry *dentry)
776 * The @private argument passed here will be available to all these methods 776 * The @private argument passed here will be available to all these methods
777 * from the file pointer, via RPC_I(file->f_dentry->d_inode)->private. 777 * from the file pointer, via RPC_I(file->f_dentry->d_inode)->private.
778 */ 778 */
779struct dentry * 779struct dentry *rpc_mkpipe(struct dentry *parent, const char *name,
780rpc_mkpipe(struct dentry *parent, const char *name, void *private, struct rpc_pipe_ops *ops, int flags) 780 void *private, const struct rpc_pipe_ops *ops,
781 int flags)
781{ 782{
782 struct dentry *dentry; 783 struct dentry *dentry;
783 struct inode *dir, *inode; 784 struct inode *dir, *inode;