Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
beffb8fe
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
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看板
提交
beffb8fe
编写于
7月 20, 2016
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
qstr: constify instances in nfs
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
612645f7
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
26 addition
and
25 deletion
+26
-25
fs/nfs/nfs3proc.c
fs/nfs/nfs3proc.c
+4
-4
fs/nfs/nfs4_fs.h
fs/nfs/nfs4_fs.h
+3
-2
fs/nfs/nfs4namespace.c
fs/nfs/nfs4namespace.c
+2
-2
fs/nfs/nfs4proc.c
fs/nfs/nfs4proc.c
+8
-8
fs/nfs/proc.c
fs/nfs/proc.c
+4
-4
fs/nfs/unlink.c
fs/nfs/unlink.c
+1
-1
include/linux/nfs_xdr.h
include/linux/nfs_xdr.h
+4
-4
未找到文件。
fs/nfs/nfs3proc.c
浏览文件 @
beffb8fe
...
...
@@ -144,7 +144,7 @@ nfs3_proc_setattr(struct dentry *dentry, struct nfs_fattr *fattr,
}
static
int
nfs3_proc_lookup
(
struct
inode
*
dir
,
struct
qstr
*
name
,
nfs3_proc_lookup
(
struct
inode
*
dir
,
const
struct
qstr
*
name
,
struct
nfs_fh
*
fhandle
,
struct
nfs_fattr
*
fattr
,
struct
nfs4_label
*
label
)
{
...
...
@@ -404,7 +404,7 @@ nfs3_proc_create(struct inode *dir, struct dentry *dentry, struct iattr *sattr,
}
static
int
nfs3_proc_remove
(
struct
inode
*
dir
,
struct
qstr
*
name
)
nfs3_proc_remove
(
struct
inode
*
dir
,
const
struct
qstr
*
name
)
{
struct
nfs_removeargs
arg
=
{
.
fh
=
NFS_FH
(
dir
),
...
...
@@ -480,7 +480,7 @@ nfs3_proc_rename_done(struct rpc_task *task, struct inode *old_dir,
}
static
int
nfs3_proc_link
(
struct
inode
*
inode
,
struct
inode
*
dir
,
struct
qstr
*
name
)
nfs3_proc_link
(
struct
inode
*
inode
,
struct
inode
*
dir
,
const
struct
qstr
*
name
)
{
struct
nfs3_linkargs
arg
=
{
.
fromfh
=
NFS_FH
(
inode
),
...
...
@@ -582,7 +582,7 @@ nfs3_proc_mkdir(struct inode *dir, struct dentry *dentry, struct iattr *sattr)
}
static
int
nfs3_proc_rmdir
(
struct
inode
*
dir
,
struct
qstr
*
name
)
nfs3_proc_rmdir
(
struct
inode
*
dir
,
const
struct
qstr
*
name
)
{
struct
nfs_fattr
*
dir_attr
;
struct
nfs3_diropargs
arg
=
{
...
...
fs/nfs/nfs4_fs.h
浏览文件 @
beffb8fe
...
...
@@ -224,7 +224,8 @@ int nfs_atomic_open(struct inode *, struct dentry *, struct file *,
extern
struct
file_system_type
nfs4_fs_type
;
/* nfs4namespace.c */
struct
rpc_clnt
*
nfs4_negotiate_security
(
struct
rpc_clnt
*
,
struct
inode
*
,
struct
qstr
*
);
struct
rpc_clnt
*
nfs4_negotiate_security
(
struct
rpc_clnt
*
,
struct
inode
*
,
const
struct
qstr
*
);
struct
vfsmount
*
nfs4_submount
(
struct
nfs_server
*
,
struct
dentry
*
,
struct
nfs_fh
*
,
struct
nfs_fattr
*
);
int
nfs4_replace_transport
(
struct
nfs_server
*
server
,
...
...
@@ -251,7 +252,7 @@ extern int nfs4_proc_fs_locations(struct rpc_clnt *, struct inode *, const struc
extern
int
nfs4_proc_get_locations
(
struct
inode
*
,
struct
nfs4_fs_locations
*
,
struct
page
*
page
,
struct
rpc_cred
*
);
extern
int
nfs4_proc_fsid_present
(
struct
inode
*
,
struct
rpc_cred
*
);
extern
struct
rpc_clnt
*
nfs4_proc_lookup_mountpoint
(
struct
inode
*
,
struct
qstr
*
,
extern
struct
rpc_clnt
*
nfs4_proc_lookup_mountpoint
(
struct
inode
*
,
const
struct
qstr
*
,
struct
nfs_fh
*
,
struct
nfs_fattr
*
);
extern
int
nfs4_proc_secinfo
(
struct
inode
*
,
const
struct
qstr
*
,
struct
nfs4_secinfo_flavors
*
);
extern
const
struct
xattr_handler
*
nfs4_xattr_handlers
[];
...
...
fs/nfs/nfs4namespace.c
浏览文件 @
beffb8fe
...
...
@@ -208,7 +208,7 @@ static struct rpc_clnt *nfs_find_best_sec(struct rpc_clnt *clnt,
*/
struct
rpc_clnt
*
nfs4_negotiate_security
(
struct
rpc_clnt
*
clnt
,
struct
inode
*
inode
,
struct
qstr
*
name
)
const
struct
qstr
*
name
)
{
struct
page
*
page
;
struct
nfs4_secinfo_flavors
*
flavors
;
...
...
@@ -397,7 +397,7 @@ struct vfsmount *nfs4_submount(struct nfs_server *server, struct dentry *dentry,
rpc_authflavor_t
flavor
=
server
->
client
->
cl_auth
->
au_flavor
;
struct
dentry
*
parent
=
dget_parent
(
dentry
);
struct
inode
*
dir
=
d_inode
(
parent
);
struct
qstr
*
name
=
&
dentry
->
d_name
;
const
struct
qstr
*
name
=
&
dentry
->
d_name
;
struct
rpc_clnt
*
client
;
struct
vfsmount
*
mnt
;
...
...
fs/nfs/nfs4proc.c
浏览文件 @
beffb8fe
...
...
@@ -3530,7 +3530,7 @@ static void nfs_fixup_secinfo_attributes(struct nfs_fattr *fattr)
}
static
int
nfs4_proc_lookup_common
(
struct
rpc_clnt
**
clnt
,
struct
inode
*
dir
,
struct
qstr
*
name
,
struct
nfs_fh
*
fhandle
,
const
struct
qstr
*
name
,
struct
nfs_fh
*
fhandle
,
struct
nfs_fattr
*
fattr
,
struct
nfs4_label
*
label
)
{
struct
nfs4_exception
exception
=
{
};
...
...
@@ -3572,7 +3572,7 @@ static int nfs4_proc_lookup_common(struct rpc_clnt **clnt, struct inode *dir,
return
err
;
}
static
int
nfs4_proc_lookup
(
struct
inode
*
dir
,
struct
qstr
*
name
,
static
int
nfs4_proc_lookup
(
struct
inode
*
dir
,
const
struct
qstr
*
name
,
struct
nfs_fh
*
fhandle
,
struct
nfs_fattr
*
fattr
,
struct
nfs4_label
*
label
)
{
...
...
@@ -3588,7 +3588,7 @@ static int nfs4_proc_lookup(struct inode *dir, struct qstr *name,
}
struct
rpc_clnt
*
nfs4_proc_lookup_mountpoint
(
struct
inode
*
dir
,
struct
qstr
*
name
,
nfs4_proc_lookup_mountpoint
(
struct
inode
*
dir
,
const
struct
qstr
*
name
,
struct
nfs_fh
*
fhandle
,
struct
nfs_fattr
*
fattr
)
{
struct
rpc_clnt
*
client
=
NFS_CLIENT
(
dir
);
...
...
@@ -3747,7 +3747,7 @@ nfs4_proc_create(struct inode *dir, struct dentry *dentry, struct iattr *sattr,
return
status
;
}
static
int
_nfs4_proc_remove
(
struct
inode
*
dir
,
struct
qstr
*
name
)
static
int
_nfs4_proc_remove
(
struct
inode
*
dir
,
const
struct
qstr
*
name
)
{
struct
nfs_server
*
server
=
NFS_SERVER
(
dir
);
struct
nfs_removeargs
args
=
{
...
...
@@ -3770,7 +3770,7 @@ static int _nfs4_proc_remove(struct inode *dir, struct qstr *name)
return
status
;
}
static
int
nfs4_proc_remove
(
struct
inode
*
dir
,
struct
qstr
*
name
)
static
int
nfs4_proc_remove
(
struct
inode
*
dir
,
const
struct
qstr
*
name
)
{
struct
nfs4_exception
exception
=
{
};
int
err
;
...
...
@@ -3853,7 +3853,7 @@ static int nfs4_proc_rename_done(struct rpc_task *task, struct inode *old_dir,
return
1
;
}
static
int
_nfs4_proc_link
(
struct
inode
*
inode
,
struct
inode
*
dir
,
struct
qstr
*
name
)
static
int
_nfs4_proc_link
(
struct
inode
*
inode
,
struct
inode
*
dir
,
const
struct
qstr
*
name
)
{
struct
nfs_server
*
server
=
NFS_SERVER
(
inode
);
struct
nfs4_link_arg
arg
=
{
...
...
@@ -3900,7 +3900,7 @@ static int _nfs4_proc_link(struct inode *inode, struct inode *dir, struct qstr *
return
status
;
}
static
int
nfs4_proc_link
(
struct
inode
*
inode
,
struct
inode
*
dir
,
struct
qstr
*
name
)
static
int
nfs4_proc_link
(
struct
inode
*
inode
,
struct
inode
*
dir
,
const
struct
qstr
*
name
)
{
struct
nfs4_exception
exception
=
{
};
int
err
;
...
...
@@ -3922,7 +3922,7 @@ struct nfs4_createdata {
};
static
struct
nfs4_createdata
*
nfs4_alloc_createdata
(
struct
inode
*
dir
,
struct
qstr
*
name
,
struct
iattr
*
sattr
,
u32
ftype
)
const
struct
qstr
*
name
,
struct
iattr
*
sattr
,
u32
ftype
)
{
struct
nfs4_createdata
*
data
;
...
...
fs/nfs/proc.c
浏览文件 @
beffb8fe
...
...
@@ -145,7 +145,7 @@ nfs_proc_setattr(struct dentry *dentry, struct nfs_fattr *fattr,
}
static
int
nfs_proc_lookup
(
struct
inode
*
dir
,
struct
qstr
*
name
,
nfs_proc_lookup
(
struct
inode
*
dir
,
const
struct
qstr
*
name
,
struct
nfs_fh
*
fhandle
,
struct
nfs_fattr
*
fattr
,
struct
nfs4_label
*
label
)
{
...
...
@@ -299,7 +299,7 @@ nfs_proc_mknod(struct inode *dir, struct dentry *dentry, struct iattr *sattr,
}
static
int
nfs_proc_remove
(
struct
inode
*
dir
,
struct
qstr
*
name
)
nfs_proc_remove
(
struct
inode
*
dir
,
const
struct
qstr
*
name
)
{
struct
nfs_removeargs
arg
=
{
.
fh
=
NFS_FH
(
dir
),
...
...
@@ -357,7 +357,7 @@ nfs_proc_rename_done(struct rpc_task *task, struct inode *old_dir,
}
static
int
nfs_proc_link
(
struct
inode
*
inode
,
struct
inode
*
dir
,
struct
qstr
*
name
)
nfs_proc_link
(
struct
inode
*
inode
,
struct
inode
*
dir
,
const
struct
qstr
*
name
)
{
struct
nfs_linkargs
arg
=
{
.
fromfh
=
NFS_FH
(
inode
),
...
...
@@ -456,7 +456,7 @@ nfs_proc_mkdir(struct inode *dir, struct dentry *dentry, struct iattr *sattr)
}
static
int
nfs_proc_rmdir
(
struct
inode
*
dir
,
struct
qstr
*
name
)
nfs_proc_rmdir
(
struct
inode
*
dir
,
const
struct
qstr
*
name
)
{
struct
nfs_diropargs
arg
=
{
.
fh
=
NFS_FH
(
dir
),
...
...
fs/nfs/unlink.c
浏览文件 @
beffb8fe
...
...
@@ -162,7 +162,7 @@ static int nfs_call_unlink(struct dentry *dentry, struct nfs_unlinkdata *data)
* @dentry: dentry to unlink
*/
static
int
nfs_async_unlink
(
struct
dentry
*
dentry
,
struct
qstr
*
name
)
nfs_async_unlink
(
struct
dentry
*
dentry
,
const
struct
qstr
*
name
)
{
struct
nfs_unlinkdata
*
data
;
int
status
=
-
ENOMEM
;
...
...
include/linux/nfs_xdr.h
浏览文件 @
beffb8fe
...
...
@@ -1543,7 +1543,7 @@ struct nfs_rpc_ops {
struct
nfs_fattr
*
,
struct
nfs4_label
*
);
int
(
*
setattr
)
(
struct
dentry
*
,
struct
nfs_fattr
*
,
struct
iattr
*
);
int
(
*
lookup
)
(
struct
inode
*
,
struct
qstr
*
,
int
(
*
lookup
)
(
struct
inode
*
,
const
struct
qstr
*
,
struct
nfs_fh
*
,
struct
nfs_fattr
*
,
struct
nfs4_label
*
);
int
(
*
access
)
(
struct
inode
*
,
struct
nfs_access_entry
*
);
...
...
@@ -1551,18 +1551,18 @@ struct nfs_rpc_ops {
unsigned
int
);
int
(
*
create
)
(
struct
inode
*
,
struct
dentry
*
,
struct
iattr
*
,
int
);
int
(
*
remove
)
(
struct
inode
*
,
struct
qstr
*
);
int
(
*
remove
)
(
struct
inode
*
,
const
struct
qstr
*
);
void
(
*
unlink_setup
)
(
struct
rpc_message
*
,
struct
inode
*
dir
);
void
(
*
unlink_rpc_prepare
)
(
struct
rpc_task
*
,
struct
nfs_unlinkdata
*
);
int
(
*
unlink_done
)
(
struct
rpc_task
*
,
struct
inode
*
);
void
(
*
rename_setup
)
(
struct
rpc_message
*
msg
,
struct
inode
*
dir
);
void
(
*
rename_rpc_prepare
)(
struct
rpc_task
*
task
,
struct
nfs_renamedata
*
);
int
(
*
rename_done
)
(
struct
rpc_task
*
task
,
struct
inode
*
old_dir
,
struct
inode
*
new_dir
);
int
(
*
link
)
(
struct
inode
*
,
struct
inode
*
,
struct
qstr
*
);
int
(
*
link
)
(
struct
inode
*
,
struct
inode
*
,
const
struct
qstr
*
);
int
(
*
symlink
)
(
struct
inode
*
,
struct
dentry
*
,
struct
page
*
,
unsigned
int
,
struct
iattr
*
);
int
(
*
mkdir
)
(
struct
inode
*
,
struct
dentry
*
,
struct
iattr
*
);
int
(
*
rmdir
)
(
struct
inode
*
,
struct
qstr
*
);
int
(
*
rmdir
)
(
struct
inode
*
,
const
struct
qstr
*
);
int
(
*
readdir
)
(
struct
dentry
*
,
struct
rpc_cred
*
,
u64
,
struct
page
**
,
unsigned
int
,
int
);
int
(
*
mknod
)
(
struct
inode
*
,
struct
dentry
*
,
struct
iattr
*
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录