Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
1f895f75
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看板
提交
1f895f75
编写于
6月 05, 2010
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
switch shmem.c to ->evice_inode()
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
6d8af64c
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
4 addition
and
4 deletion
+4
-4
mm/shmem.c
mm/shmem.c
+4
-4
未找到文件。
mm/shmem.c
浏览文件 @
1f895f75
...
...
@@ -820,7 +820,7 @@ static int shmem_notify_change(struct dentry *dentry, struct iattr *attr)
return
error
;
}
static
void
shmem_
delete
_inode
(
struct
inode
*
inode
)
static
void
shmem_
evict
_inode
(
struct
inode
*
inode
)
{
struct
shmem_inode_info
*
info
=
SHMEM_I
(
inode
);
...
...
@@ -837,7 +837,7 @@ static void shmem_delete_inode(struct inode *inode)
}
BUG_ON
(
inode
->
i_blocks
);
shmem_free_inode
(
inode
->
i_sb
);
clear_inode
(
inode
);
end_writeback
(
inode
);
}
static
inline
int
shmem_find_swp
(
swp_entry_t
entry
,
swp_entry_t
*
dir
,
swp_entry_t
*
edir
)
...
...
@@ -934,7 +934,7 @@ static int shmem_unuse_inode(struct shmem_inode_info *info, swp_entry_t entry, s
/*
* Move _head_ to start search for next from here.
* But be careful: shmem_
delete
_inode checks list_empty without taking
* But be careful: shmem_
evict
_inode checks list_empty without taking
* mutex, and there's an instant in list_move_tail when info->swaplist
* would appear empty, if it were the only one on shmem_swaplist. We
* could avoid doing it if inode NULL; or use this minor optimization.
...
...
@@ -2497,7 +2497,7 @@ static const struct super_operations shmem_ops = {
.
remount_fs
=
shmem_remount_fs
,
.
show_options
=
shmem_show_options
,
#endif
.
delete_inode
=
shmem_delete
_inode
,
.
evict_inode
=
shmem_evict
_inode
,
.
drop_inode
=
generic_delete_inode
,
.
put_super
=
shmem_put_super
,
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录