Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
dcf787f3
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
dcf787f3
编写于
3月 01, 2013
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
constify path_get/path_put and fs_struct.c stuff
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
26567cdb
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
10 addition
and
10 deletion
+10
-10
fs/fs_struct.c
fs/fs_struct.c
+3
-3
fs/internal.h
fs/internal.h
+1
-1
fs/namei.c
fs/namei.c
+2
-2
include/linux/fs_struct.h
include/linux/fs_struct.h
+2
-2
include/linux/path.h
include/linux/path.h
+2
-2
未找到文件。
fs/fs_struct.c
浏览文件 @
dcf787f3
...
...
@@ -10,7 +10,7 @@
* Replace the fs->{rootmnt,root} with {mnt,dentry}. Put the old values.
* It can block.
*/
void
set_fs_root
(
struct
fs_struct
*
fs
,
struct
path
*
path
)
void
set_fs_root
(
struct
fs_struct
*
fs
,
const
struct
path
*
path
)
{
struct
path
old_root
;
...
...
@@ -29,7 +29,7 @@ void set_fs_root(struct fs_struct *fs, struct path *path)
* Replace the fs->{pwdmnt,pwd} with {mnt,dentry}. Put the old values.
* It can block.
*/
void
set_fs_pwd
(
struct
fs_struct
*
fs
,
struct
path
*
path
)
void
set_fs_pwd
(
struct
fs_struct
*
fs
,
const
struct
path
*
path
)
{
struct
path
old_pwd
;
...
...
@@ -53,7 +53,7 @@ static inline int replace_path(struct path *p, const struct path *old, const str
return
1
;
}
void
chroot_fs_refs
(
struct
path
*
old_root
,
struct
path
*
new_root
)
void
chroot_fs_refs
(
const
struct
path
*
old_root
,
const
struct
path
*
new_root
)
{
struct
task_struct
*
g
,
*
p
;
struct
fs_struct
*
fs
;
...
...
fs/internal.h
浏览文件 @
dcf787f3
...
...
@@ -69,7 +69,7 @@ extern void __mnt_drop_write_file(struct file *);
/*
* fs_struct.c
*/
extern
void
chroot_fs_refs
(
struct
path
*
,
struct
path
*
);
extern
void
chroot_fs_refs
(
const
struct
path
*
,
const
struct
path
*
);
/*
* file_table.c
...
...
fs/namei.c
浏览文件 @
dcf787f3
...
...
@@ -451,7 +451,7 @@ int inode_permission(struct inode *inode, int mask)
*
* Given a path increment the reference count to the dentry and the vfsmount.
*/
void
path_get
(
struct
path
*
path
)
void
path_get
(
const
struct
path
*
path
)
{
mntget
(
path
->
mnt
);
dget
(
path
->
dentry
);
...
...
@@ -464,7 +464,7 @@ EXPORT_SYMBOL(path_get);
*
* Given a path decrement the reference count to the dentry and the vfsmount.
*/
void
path_put
(
struct
path
*
path
)
void
path_put
(
const
struct
path
*
path
)
{
dput
(
path
->
dentry
);
mntput
(
path
->
mnt
);
...
...
include/linux/fs_struct.h
浏览文件 @
dcf787f3
...
...
@@ -17,8 +17,8 @@ struct fs_struct {
extern
struct
kmem_cache
*
fs_cachep
;
extern
void
exit_fs
(
struct
task_struct
*
);
extern
void
set_fs_root
(
struct
fs_struct
*
,
struct
path
*
);
extern
void
set_fs_pwd
(
struct
fs_struct
*
,
struct
path
*
);
extern
void
set_fs_root
(
struct
fs_struct
*
,
const
struct
path
*
);
extern
void
set_fs_pwd
(
struct
fs_struct
*
,
const
struct
path
*
);
extern
struct
fs_struct
*
copy_fs_struct
(
struct
fs_struct
*
);
extern
void
free_fs_struct
(
struct
fs_struct
*
);
extern
int
unshare_fs_struct
(
void
);
...
...
include/linux/path.h
浏览文件 @
dcf787f3
...
...
@@ -9,8 +9,8 @@ struct path {
struct
dentry
*
dentry
;
};
extern
void
path_get
(
struct
path
*
);
extern
void
path_put
(
struct
path
*
);
extern
void
path_get
(
const
struct
path
*
);
extern
void
path_put
(
const
struct
path
*
);
static
inline
int
path_equal
(
const
struct
path
*
path1
,
const
struct
path
*
path2
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录