Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
b693ba4a
cloud-kernel
项目概览
openanolis
/
cloud-kernel
11 个月 前同步成功
通知
150
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b693ba4a
编写于
8月 09, 2009
作者:
T
Trond Myklebust
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
SUNRPC: Constify rpc_pipe_ops...
Signed-off-by:
N
Trond Myklebust
<
Trond.Myklebust@netapp.com
>
上级
7b2aa037
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
12 addition
and
10 deletion
+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
未找到文件。
fs/nfs/idmap.c
浏览文件 @
b693ba4a
...
...
@@ -101,7 +101,7 @@ static void idmap_pipe_destroy_msg(struct rpc_pipe_msg *);
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
,
.
downcall
=
idmap_pipe_downcall
,
.
destroy_msg
=
idmap_pipe_destroy_msg
,
...
...
include/linux/sunrpc/rpc_pipe_fs.h
浏览文件 @
b693ba4a
...
...
@@ -32,8 +32,8 @@ struct rpc_inode {
wait_queue_head_t
waitq
;
#define RPC_PIPE_WAIT_FOR_OPEN 1
int
flags
;
struct
rpc_pipe_ops
*
ops
;
struct
delayed_work
queue_timeout
;
const
struct
rpc_pipe_ops
*
ops
;
};
static
inline
struct
rpc_inode
*
...
...
@@ -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
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
struct
vfsmount
*
rpc_get_mount
(
void
);
extern
void
rpc_put_mount
(
void
);
...
...
net/sunrpc/auth_gss/auth_gss.c
浏览文件 @
b693ba4a
...
...
@@ -89,8 +89,8 @@ static struct rpc_wait_queue pipe_version_rpc_waitqueue;
static
DECLARE_WAIT_QUEUE_HEAD
(
pipe_version_waitqueue
);
static
void
gss_free_ctx
(
struct
gss_cl_ctx
*
);
static
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_v0
;
static
const
struct
rpc_pipe_ops
gss_upcall_ops_v1
;
static
inline
struct
gss_cl_ctx
*
gss_get_ctx
(
struct
gss_cl_ctx
*
ctx
)
...
...
@@ -1507,7 +1507,7 @@ static const struct rpc_credops gss_nullops = {
.
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
,
.
downcall
=
gss_pipe_downcall
,
.
destroy_msg
=
gss_pipe_destroy_msg
,
...
...
@@ -1515,7 +1515,7 @@ static struct rpc_pipe_ops gss_upcall_ops_v0 = {
.
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
,
.
downcall
=
gss_pipe_downcall
,
.
destroy_msg
=
gss_pipe_destroy_msg
,
...
...
net/sunrpc/rpc_pipe.c
浏览文件 @
b693ba4a
...
...
@@ -125,7 +125,7 @@ static void
rpc_close_pipes
(
struct
inode
*
inode
)
{
struct
rpc_inode
*
rpci
=
RPC_I
(
inode
);
struct
rpc_pipe_ops
*
ops
;
const
struct
rpc_pipe_ops
*
ops
;
int
need_release
;
mutex_lock
(
&
inode
->
i_mutex
);
...
...
@@ -776,8 +776,9 @@ rpc_rmdir(struct dentry *dentry)
* 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.
*/
struct
dentry
*
rpc_mkpipe
(
struct
dentry
*
parent
,
const
char
*
name
,
void
*
private
,
struct
rpc_pipe_ops
*
ops
,
int
flags
)
struct
dentry
*
rpc_mkpipe
(
struct
dentry
*
parent
,
const
char
*
name
,
void
*
private
,
const
struct
rpc_pipe_ops
*
ops
,
int
flags
)
{
struct
dentry
*
dentry
;
struct
inode
*
dir
,
*
inode
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录