Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
3ab6abee
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看板
提交
3ab6abee
编写于
3月 16, 2013
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
more conversions to namespace_unlock()
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
b54b9be7
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
6 addition
and
14 deletion
+6
-14
fs/namespace.c
fs/namespace.c
+6
-14
未找到文件。
fs/namespace.c
浏览文件 @
3ab6abee
...
...
@@ -1426,13 +1426,11 @@ struct vfsmount *collect_mounts(struct path *path)
void
drop_collected_mounts
(
struct
vfsmount
*
mnt
)
{
LIST_HEAD
(
umount_list
);
down_write
(
&
namespace_sem
);
br_write_lock
(
&
vfsmount_lock
);
umount_tree
(
real_mount
(
mnt
),
0
,
&
u
mount_list
);
umount_tree
(
real_mount
(
mnt
),
0
,
&
u
nmounted
);
br_write_unlock
(
&
vfsmount_lock
);
up_write
(
&
namespace_sem
);
release_mounts
(
&
umount_list
);
namespace_unlock
();
}
int
iterate_mounts
(
int
(
*
f
)(
struct
vfsmount
*
,
void
*
),
void
*
arg
,
...
...
@@ -2060,7 +2058,6 @@ void mark_mounts_for_expiry(struct list_head *mounts)
{
struct
mount
*
mnt
,
*
next
;
LIST_HEAD
(
graveyard
);
LIST_HEAD
(
umounts
);
if
(
list_empty
(
mounts
))
return
;
...
...
@@ -2083,12 +2080,10 @@ void mark_mounts_for_expiry(struct list_head *mounts)
while
(
!
list_empty
(
&
graveyard
))
{
mnt
=
list_first_entry
(
&
graveyard
,
struct
mount
,
mnt_expire
);
touch_mnt_namespace
(
mnt
->
mnt_ns
);
umount_tree
(
mnt
,
1
,
&
u
mounts
);
umount_tree
(
mnt
,
1
,
&
u
nmounted
);
}
br_write_unlock
(
&
vfsmount_lock
);
up_write
(
&
namespace_sem
);
release_mounts
(
&
umounts
);
namespace_unlock
();
}
EXPORT_SYMBOL_GPL
(
mark_mounts_for_expiry
);
...
...
@@ -2741,16 +2736,13 @@ void __init mnt_init(void)
void
put_mnt_ns
(
struct
mnt_namespace
*
ns
)
{
LIST_HEAD
(
umount_list
);
if
(
!
atomic_dec_and_test
(
&
ns
->
count
))
return
;
down_write
(
&
namespace_sem
);
br_write_lock
(
&
vfsmount_lock
);
umount_tree
(
ns
->
root
,
0
,
&
u
mount_list
);
umount_tree
(
ns
->
root
,
0
,
&
u
nmounted
);
br_write_unlock
(
&
vfsmount_lock
);
up_write
(
&
namespace_sem
);
release_mounts
(
&
umount_list
);
namespace_unlock
();
free_mnt_ns
(
ns
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录