Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
7d217cac
K
kernel_linux
项目概览
OpenHarmony
/
kernel_linux
上一次同步 4 年多
通知
15
Star
8
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kernel_linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
7d217cac
编写于
8月 09, 2009
作者:
T
Trond Myklebust
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
SUNRPC: Replace rpc_client->cl_dentry and cl_mnt, with a cl_path
Signed-off-by:
N
Trond Myklebust
<
Trond.Myklebust@netapp.com
>
上级
7d59d1e8
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
18 addition
and
18 deletion
+18
-18
fs/nfs/idmap.c
fs/nfs/idmap.c
+2
-2
include/linux/sunrpc/clnt.h
include/linux/sunrpc/clnt.h
+2
-2
net/sunrpc/auth_gss/auth_gss.c
net/sunrpc/auth_gss/auth_gss.c
+2
-2
net/sunrpc/clnt.c
net/sunrpc/clnt.c
+12
-12
未找到文件。
fs/nfs/idmap.c
浏览文件 @
7d217cac
...
@@ -119,8 +119,8 @@ nfs_idmap_new(struct nfs_client *clp)
...
@@ -119,8 +119,8 @@ nfs_idmap_new(struct nfs_client *clp)
if
(
idmap
==
NULL
)
if
(
idmap
==
NULL
)
return
-
ENOMEM
;
return
-
ENOMEM
;
idmap
->
idmap_dentry
=
rpc_mkpipe
(
clp
->
cl_rpcclient
->
cl_
dentry
,
"idmap"
,
idmap
->
idmap_dentry
=
rpc_mkpipe
(
clp
->
cl_rpcclient
->
cl_
path
.
dentry
,
idmap
,
&
idmap_upcall_ops
,
0
);
"idmap"
,
idmap
,
&
idmap_upcall_ops
,
0
);
if
(
IS_ERR
(
idmap
->
idmap_dentry
))
{
if
(
IS_ERR
(
idmap
->
idmap_dentry
))
{
error
=
PTR_ERR
(
idmap
->
idmap_dentry
);
error
=
PTR_ERR
(
idmap
->
idmap_dentry
);
kfree
(
idmap
);
kfree
(
idmap
);
...
...
include/linux/sunrpc/clnt.h
浏览文件 @
7d217cac
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
#include <linux/sunrpc/xdr.h>
#include <linux/sunrpc/xdr.h>
#include <linux/sunrpc/timer.h>
#include <linux/sunrpc/timer.h>
#include <asm/signal.h>
#include <asm/signal.h>
#include <linux/path.h>
struct
rpc_inode
;
struct
rpc_inode
;
...
@@ -51,8 +52,7 @@ struct rpc_clnt {
...
@@ -51,8 +52,7 @@ struct rpc_clnt {
int
cl_nodelen
;
/* nodename length */
int
cl_nodelen
;
/* nodename length */
char
cl_nodename
[
UNX_MAXNODENAME
];
char
cl_nodename
[
UNX_MAXNODENAME
];
char
cl_pathname
[
30
];
/* Path in rpc_pipe_fs */
char
cl_pathname
[
30
];
/* Path in rpc_pipe_fs */
struct
vfsmount
*
cl_vfsmnt
;
struct
path
cl_path
;
struct
dentry
*
cl_dentry
;
/* inode */
struct
rpc_clnt
*
cl_parent
;
/* Points to parent of clones */
struct
rpc_clnt
*
cl_parent
;
/* Points to parent of clones */
struct
rpc_rtt
cl_rtt_default
;
struct
rpc_rtt
cl_rtt_default
;
struct
rpc_timeout
cl_timeout_default
;
struct
rpc_timeout
cl_timeout_default
;
...
...
net/sunrpc/auth_gss/auth_gss.c
浏览文件 @
7d217cac
...
@@ -777,7 +777,7 @@ gss_create(struct rpc_clnt *clnt, rpc_authflavor_t flavor)
...
@@ -777,7 +777,7 @@ gss_create(struct rpc_clnt *clnt, rpc_authflavor_t flavor)
* that we supported only the old pipe. So we instead create
* that we supported only the old pipe. So we instead create
* the new pipe first.
* the new pipe first.
*/
*/
gss_auth
->
dentry
[
1
]
=
rpc_mkpipe
(
clnt
->
cl_dentry
,
gss_auth
->
dentry
[
1
]
=
rpc_mkpipe
(
clnt
->
cl_
path
.
dentry
,
"gssd"
,
"gssd"
,
clnt
,
&
gss_upcall_ops_v1
,
clnt
,
&
gss_upcall_ops_v1
,
RPC_PIPE_WAIT_FOR_OPEN
);
RPC_PIPE_WAIT_FOR_OPEN
);
...
@@ -786,7 +786,7 @@ gss_create(struct rpc_clnt *clnt, rpc_authflavor_t flavor)
...
@@ -786,7 +786,7 @@ gss_create(struct rpc_clnt *clnt, rpc_authflavor_t flavor)
goto
err_put_mech
;
goto
err_put_mech
;
}
}
gss_auth
->
dentry
[
0
]
=
rpc_mkpipe
(
clnt
->
cl_dentry
,
gss_auth
->
dentry
[
0
]
=
rpc_mkpipe
(
clnt
->
cl_
path
.
dentry
,
gss_auth
->
mech
->
gm_name
,
gss_auth
->
mech
->
gm_name
,
clnt
,
&
gss_upcall_ops_v0
,
clnt
,
&
gss_upcall_ops_v0
,
RPC_PIPE_WAIT_FOR_OPEN
);
RPC_PIPE_WAIT_FOR_OPEN
);
...
...
net/sunrpc/clnt.c
浏览文件 @
7d217cac
...
@@ -99,24 +99,24 @@ rpc_setup_pipedir(struct rpc_clnt *clnt, char *dir_name)
...
@@ -99,24 +99,24 @@ rpc_setup_pipedir(struct rpc_clnt *clnt, char *dir_name)
static
uint32_t
clntid
;
static
uint32_t
clntid
;
int
error
;
int
error
;
clnt
->
cl_
vfs
mnt
=
ERR_PTR
(
-
ENOENT
);
clnt
->
cl_
path
.
mnt
=
ERR_PTR
(
-
ENOENT
);
clnt
->
cl_dentry
=
ERR_PTR
(
-
ENOENT
);
clnt
->
cl_
path
.
dentry
=
ERR_PTR
(
-
ENOENT
);
if
(
dir_name
==
NULL
)
if
(
dir_name
==
NULL
)
return
0
;
return
0
;
clnt
->
cl_
vfs
mnt
=
rpc_get_mount
();
clnt
->
cl_
path
.
mnt
=
rpc_get_mount
();
if
(
IS_ERR
(
clnt
->
cl_
vfs
mnt
))
if
(
IS_ERR
(
clnt
->
cl_
path
.
mnt
))
return
PTR_ERR
(
clnt
->
cl_
vfs
mnt
);
return
PTR_ERR
(
clnt
->
cl_
path
.
mnt
);
for
(;;)
{
for
(;;)
{
snprintf
(
clnt
->
cl_pathname
,
sizeof
(
clnt
->
cl_pathname
),
snprintf
(
clnt
->
cl_pathname
,
sizeof
(
clnt
->
cl_pathname
),
"%s/clnt%x"
,
dir_name
,
"%s/clnt%x"
,
dir_name
,
(
unsigned
int
)
clntid
++
);
(
unsigned
int
)
clntid
++
);
clnt
->
cl_pathname
[
sizeof
(
clnt
->
cl_pathname
)
-
1
]
=
'\0'
;
clnt
->
cl_pathname
[
sizeof
(
clnt
->
cl_pathname
)
-
1
]
=
'\0'
;
clnt
->
cl_dentry
=
rpc_create_client_dir
(
clnt
->
cl_pathname
,
clnt
);
clnt
->
cl_
path
.
dentry
=
rpc_create_client_dir
(
clnt
->
cl_pathname
,
clnt
);
if
(
!
IS_ERR
(
clnt
->
cl_dentry
))
if
(
!
IS_ERR
(
clnt
->
cl_
path
.
dentry
))
return
0
;
return
0
;
error
=
PTR_ERR
(
clnt
->
cl_dentry
);
error
=
PTR_ERR
(
clnt
->
cl_
path
.
dentry
);
if
(
error
!=
-
EEXIST
)
{
if
(
error
!=
-
EEXIST
)
{
printk
(
KERN_INFO
"RPC: Couldn't create pipefs entry %s, error %d
\n
"
,
printk
(
KERN_INFO
"RPC: Couldn't create pipefs entry %s, error %d
\n
"
,
clnt
->
cl_pathname
,
error
);
clnt
->
cl_pathname
,
error
);
...
@@ -231,8 +231,8 @@ static struct rpc_clnt * rpc_new_client(const struct rpc_create_args *args, stru
...
@@ -231,8 +231,8 @@ static struct rpc_clnt * rpc_new_client(const struct rpc_create_args *args, stru
return
clnt
;
return
clnt
;
out_no_auth:
out_no_auth:
if
(
!
IS_ERR
(
clnt
->
cl_dentry
))
{
if
(
!
IS_ERR
(
clnt
->
cl_
path
.
dentry
))
{
rpc_remove_client_dir
(
clnt
->
cl_dentry
);
rpc_remove_client_dir
(
clnt
->
cl_
path
.
dentry
);
rpc_put_mount
();
rpc_put_mount
();
}
}
out_no_path:
out_no_path:
...
@@ -423,8 +423,8 @@ rpc_free_client(struct kref *kref)
...
@@ -423,8 +423,8 @@ rpc_free_client(struct kref *kref)
dprintk
(
"RPC: destroying %s client for %s
\n
"
,
dprintk
(
"RPC: destroying %s client for %s
\n
"
,
clnt
->
cl_protname
,
clnt
->
cl_server
);
clnt
->
cl_protname
,
clnt
->
cl_server
);
if
(
!
IS_ERR
(
clnt
->
cl_dentry
))
{
if
(
!
IS_ERR
(
clnt
->
cl_
path
.
dentry
))
{
rpc_remove_client_dir
(
clnt
->
cl_dentry
);
rpc_remove_client_dir
(
clnt
->
cl_
path
.
dentry
);
rpc_put_mount
();
rpc_put_mount
();
}
}
if
(
clnt
->
cl_parent
!=
clnt
)
{
if
(
clnt
->
cl_parent
!=
clnt
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录