Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
ca923ef9
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
ca923ef9
编写于
2月 29, 2012
作者:
G
Greg Kroah-Hartman
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'work-next' into staging-next
上级
cd4361c7
041aba19
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
7 addition
and
9 deletion
+7
-9
drivers/staging/ozwpan/ozeventdef.h
drivers/staging/ozwpan/ozeventdef.h
+1
-1
drivers/staging/zcache/zcache-main.c
drivers/staging/zcache/zcache-main.c
+6
-8
未找到文件。
drivers/staging/ozwpan/ozeventdef.h
浏览文件 @
ca923ef9
...
...
@@ -37,7 +37,7 @@ struct oz_event {
unsigned
ctx4
;
};
#define OZ_EVT_LIST_SZ
256
#define OZ_EVT_LIST_SZ
64
struct
oz_evtlist
{
int
count
;
int
missed
;
...
...
drivers/staging/zcache/zcache-main.c
浏览文件 @
ca923ef9
...
...
@@ -701,7 +701,6 @@ static struct zv_hdr *zv_create(struct zs_pool *pool, uint32_t pool_id,
u32
size
=
clen
+
sizeof
(
struct
zv_hdr
);
int
chunks
=
(
size
+
(
CHUNK_SIZE
-
1
))
>>
CHUNK_SHIFT
;
void
*
handle
=
NULL
;
char
*
buf
;
BUG_ON
(
!
irqs_disabled
());
BUG_ON
(
chunks
>=
NCHUNKS
);
...
...
@@ -710,14 +709,13 @@ static struct zv_hdr *zv_create(struct zs_pool *pool, uint32_t pool_id,
goto
out
;
atomic_inc
(
&
zv_curr_dist_counts
[
chunks
]);
atomic_inc
(
&
zv_cumul_dist_counts
[
chunks
]);
zv
=
(
struct
zv_hdr
*
)((
char
*
)
cdata
-
sizeof
(
*
zv
)
);
zv
=
zs_map_object
(
pool
,
handle
);
zv
->
index
=
index
;
zv
->
oid
=
*
oid
;
zv
->
pool_id
=
pool_id
;
zv
->
size
=
clen
;
SET_SENTINEL
(
zv
,
ZVH
);
buf
=
zs_map_object
(
pool
,
handle
);
memcpy
(
buf
,
zv
,
clen
+
sizeof
(
*
zv
));
memcpy
((
char
*
)
zv
+
sizeof
(
struct
zv_hdr
),
cdata
,
clen
);
zs_unmap_object
(
pool
,
handle
);
out:
return
handle
;
...
...
@@ -1170,14 +1168,14 @@ static atomic_t zcache_curr_pers_pampd_count = ATOMIC_INIT(0);
static
unsigned
long
zcache_curr_pers_pampd_count_max
;
/* forward reference */
static
int
zcache_compress
(
struct
page
*
from
,
void
**
out_va
,
size_t
*
out_len
);
static
int
zcache_compress
(
struct
page
*
from
,
void
**
out_va
,
unsigned
*
out_len
);
static
void
*
zcache_pampd_create
(
char
*
data
,
size_t
size
,
bool
raw
,
int
eph
,
struct
tmem_pool
*
pool
,
struct
tmem_oid
*
oid
,
uint32_t
index
)
{
void
*
pampd
=
NULL
,
*
cdata
;
size_t
clen
;
unsigned
clen
;
int
ret
;
unsigned
long
count
;
struct
page
*
page
=
(
struct
page
*
)(
data
);
...
...
@@ -1326,7 +1324,7 @@ static struct tmem_pamops zcache_pamops = {
static
DEFINE_PER_CPU
(
unsigned
char
*
,
zcache_dstmem
);
#define ZCACHE_DSTMEM_ORDER 1
static
int
zcache_compress
(
struct
page
*
from
,
void
**
out_va
,
size_t
*
out_len
)
static
int
zcache_compress
(
struct
page
*
from
,
void
**
out_va
,
unsigned
*
out_len
)
{
int
ret
=
0
;
unsigned
char
*
dmem
=
__get_cpu_var
(
zcache_dstmem
);
...
...
@@ -1339,7 +1337,7 @@ static int zcache_compress(struct page *from, void **out_va, size_t *out_len)
from_va
=
kmap_atomic
(
from
,
KM_USER0
);
mb
();
ret
=
zcache_comp_op
(
ZCACHE_COMPOP_COMPRESS
,
from_va
,
PAGE_SIZE
,
dmem
,
(
unsigned
int
*
)
out_len
);
out_len
);
BUG_ON
(
ret
);
*
out_va
=
dmem
;
kunmap_atomic
(
from_va
,
KM_USER0
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录