Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
b693ba4a
Commit
b693ba4a
authored
Aug 09, 2009
by
Trond Myklebust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SUNRPC: Constify rpc_pipe_ops...
Signed-off-by:
Trond Myklebust
<
Trond.Myklebust@netapp.com
>
parent
7b2aa037
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
10 deletions
+12
-10
fs/nfs/idmap.c
fs/nfs/idmap.c
+1
-1
include/linux/sunrpc/rpc_pipe_fs.h
include/linux/sunrpc/rpc_pipe_fs.h
+3
-2
net/sunrpc/auth_gss/auth_gss.c
net/sunrpc/auth_gss/auth_gss.c
+4
-4
net/sunrpc/rpc_pipe.c
net/sunrpc/rpc_pipe.c
+4
-3
No files found.
fs/nfs/idmap.c
View file @
b693ba4a
...
@@ -101,7 +101,7 @@ static void idmap_pipe_destroy_msg(struct rpc_pipe_msg *);
...
@@ -101,7 +101,7 @@ static void idmap_pipe_destroy_msg(struct rpc_pipe_msg *);
static
unsigned
int
fnvhash32
(
const
void
*
,
size_t
);
static
unsigned
int
fnvhash32
(
const
void
*
,
size_t
);
static
struct
rpc_pipe_ops
idmap_upcall_ops
=
{
static
const
struct
rpc_pipe_ops
idmap_upcall_ops
=
{
.
upcall
=
idmap_pipe_upcall
,
.
upcall
=
idmap_pipe_upcall
,
.
downcall
=
idmap_pipe_downcall
,
.
downcall
=
idmap_pipe_downcall
,
.
destroy_msg
=
idmap_pipe_destroy_msg
,
.
destroy_msg
=
idmap_pipe_destroy_msg
,
...
...
include/linux/sunrpc/rpc_pipe_fs.h
View file @
b693ba4a
...
@@ -32,8 +32,8 @@ struct rpc_inode {
...
@@ -32,8 +32,8 @@ struct rpc_inode {
wait_queue_head_t
waitq
;
wait_queue_head_t
waitq
;
#define RPC_PIPE_WAIT_FOR_OPEN 1
#define RPC_PIPE_WAIT_FOR_OPEN 1
int
flags
;
int
flags
;
struct
rpc_pipe_ops
*
ops
;
struct
delayed_work
queue_timeout
;
struct
delayed_work
queue_timeout
;
const
struct
rpc_pipe_ops
*
ops
;
};
};
static
inline
struct
rpc_inode
*
static
inline
struct
rpc_inode
*
...
@@ -46,7 +46,8 @@ extern int rpc_queue_upcall(struct inode *, struct rpc_pipe_msg *);
...
@@ -46,7 +46,8 @@ extern int rpc_queue_upcall(struct inode *, struct rpc_pipe_msg *);
extern
struct
dentry
*
rpc_mkdir
(
char
*
,
struct
rpc_clnt
*
);
extern
struct
dentry
*
rpc_mkdir
(
char
*
,
struct
rpc_clnt
*
);
extern
int
rpc_rmdir
(
struct
dentry
*
);
extern
int
rpc_rmdir
(
struct
dentry
*
);
extern
struct
dentry
*
rpc_mkpipe
(
struct
dentry
*
,
const
char
*
,
void
*
,
struct
rpc_pipe_ops
*
,
int
flags
);
extern
struct
dentry
*
rpc_mkpipe
(
struct
dentry
*
,
const
char
*
,
void
*
,
const
struct
rpc_pipe_ops
*
,
int
flags
);
extern
int
rpc_unlink
(
struct
dentry
*
);
extern
int
rpc_unlink
(
struct
dentry
*
);
extern
struct
vfsmount
*
rpc_get_mount
(
void
);
extern
struct
vfsmount
*
rpc_get_mount
(
void
);
extern
void
rpc_put_mount
(
void
);
extern
void
rpc_put_mount
(
void
);
...
...
net/sunrpc/auth_gss/auth_gss.c
View file @
b693ba4a
...
@@ -89,8 +89,8 @@ static struct rpc_wait_queue pipe_version_rpc_waitqueue;
...
@@ -89,8 +89,8 @@ static struct rpc_wait_queue pipe_version_rpc_waitqueue;
static
DECLARE_WAIT_QUEUE_HEAD
(
pipe_version_waitqueue
);
static
DECLARE_WAIT_QUEUE_HEAD
(
pipe_version_waitqueue
);
static
void
gss_free_ctx
(
struct
gss_cl_ctx
*
);
static
void
gss_free_ctx
(
struct
gss_cl_ctx
*
);
static
struct
rpc_pipe_ops
gss_upcall_ops_v0
;
static
const
struct
rpc_pipe_ops
gss_upcall_ops_v0
;
static
struct
rpc_pipe_ops
gss_upcall_ops_v1
;
static
const
struct
rpc_pipe_ops
gss_upcall_ops_v1
;
static
inline
struct
gss_cl_ctx
*
static
inline
struct
gss_cl_ctx
*
gss_get_ctx
(
struct
gss_cl_ctx
*
ctx
)
gss_get_ctx
(
struct
gss_cl_ctx
*
ctx
)
...
@@ -1507,7 +1507,7 @@ static const struct rpc_credops gss_nullops = {
...
@@ -1507,7 +1507,7 @@ static const struct rpc_credops gss_nullops = {
.
crunwrap_resp
=
gss_unwrap_resp
,
.
crunwrap_resp
=
gss_unwrap_resp
,
};
};
static
struct
rpc_pipe_ops
gss_upcall_ops_v0
=
{
static
const
struct
rpc_pipe_ops
gss_upcall_ops_v0
=
{
.
upcall
=
gss_pipe_upcall
,
.
upcall
=
gss_pipe_upcall
,
.
downcall
=
gss_pipe_downcall
,
.
downcall
=
gss_pipe_downcall
,
.
destroy_msg
=
gss_pipe_destroy_msg
,
.
destroy_msg
=
gss_pipe_destroy_msg
,
...
@@ -1515,7 +1515,7 @@ static struct rpc_pipe_ops gss_upcall_ops_v0 = {
...
@@ -1515,7 +1515,7 @@ static struct rpc_pipe_ops gss_upcall_ops_v0 = {
.
release_pipe
=
gss_pipe_release
,
.
release_pipe
=
gss_pipe_release
,
};
};
static
struct
rpc_pipe_ops
gss_upcall_ops_v1
=
{
static
const
struct
rpc_pipe_ops
gss_upcall_ops_v1
=
{
.
upcall
=
gss_pipe_upcall
,
.
upcall
=
gss_pipe_upcall
,
.
downcall
=
gss_pipe_downcall
,
.
downcall
=
gss_pipe_downcall
,
.
destroy_msg
=
gss_pipe_destroy_msg
,
.
destroy_msg
=
gss_pipe_destroy_msg
,
...
...
net/sunrpc/rpc_pipe.c
View file @
b693ba4a
...
@@ -125,7 +125,7 @@ static void
...
@@ -125,7 +125,7 @@ static void
rpc_close_pipes
(
struct
inode
*
inode
)
rpc_close_pipes
(
struct
inode
*
inode
)
{
{
struct
rpc_inode
*
rpci
=
RPC_I
(
inode
);
struct
rpc_inode
*
rpci
=
RPC_I
(
inode
);
struct
rpc_pipe_ops
*
ops
;
const
struct
rpc_pipe_ops
*
ops
;
int
need_release
;
int
need_release
;
mutex_lock
(
&
inode
->
i_mutex
);
mutex_lock
(
&
inode
->
i_mutex
);
...
@@ -776,8 +776,9 @@ rpc_rmdir(struct dentry *dentry)
...
@@ -776,8 +776,9 @@ rpc_rmdir(struct dentry *dentry)
* The @private argument passed here will be available to all these methods
* The @private argument passed here will be available to all these methods
* from the file pointer, via RPC_I(file->f_dentry->d_inode)->private.
* from the file pointer, via RPC_I(file->f_dentry->d_inode)->private.
*/
*/
struct
dentry
*
struct
dentry
*
rpc_mkpipe
(
struct
dentry
*
parent
,
const
char
*
name
,
rpc_mkpipe
(
struct
dentry
*
parent
,
const
char
*
name
,
void
*
private
,
struct
rpc_pipe_ops
*
ops
,
int
flags
)
void
*
private
,
const
struct
rpc_pipe_ops
*
ops
,
int
flags
)
{
{
struct
dentry
*
dentry
;
struct
dentry
*
dentry
;
struct
inode
*
dir
,
*
inode
;
struct
inode
*
dir
,
*
inode
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment