Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
4ba97dff
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看板
提交
4ba97dff
编写于
3月 19, 2012
作者:
N
NeilBrown
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
md/bitmap: remove some unused noise from bitmap.h
Signed-off-by:
N
NeilBrown
<
neilb@suse.de
>
上级
006a09a0
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
0 addition
and
18 deletion
+0
-18
drivers/md/bitmap.h
drivers/md/bitmap.h
+0
-18
未找到文件。
drivers/md/bitmap.h
浏览文件 @
4ba97dff
...
@@ -13,8 +13,6 @@
...
@@ -13,8 +13,6 @@
#define BITMAP_MAJOR_HI 4
#define BITMAP_MAJOR_HI 4
#define BITMAP_MAJOR_HOSTENDIAN 3
#define BITMAP_MAJOR_HOSTENDIAN 3
#define BITMAP_MINOR 39
/*
/*
* in-memory bitmap:
* in-memory bitmap:
*
*
...
@@ -101,21 +99,11 @@ typedef __u16 bitmap_counter_t;
...
@@ -101,21 +99,11 @@ typedef __u16 bitmap_counter_t;
/* same, except a mask value for more efficient bitops */
/* same, except a mask value for more efficient bitops */
#define PAGE_COUNTER_MASK (PAGE_COUNTER_RATIO - 1)
#define PAGE_COUNTER_MASK (PAGE_COUNTER_RATIO - 1)
#define BITMAP_BLOCK_SIZE 512
#define BITMAP_BLOCK_SHIFT 9
#define BITMAP_BLOCK_SHIFT 9
/* how many blocks per chunk? (this is variable) */
/* how many blocks per chunk? (this is variable) */
#define CHUNK_BLOCK_RATIO(bitmap) ((bitmap)->mddev->bitmap_info.chunksize >> BITMAP_BLOCK_SHIFT)
#define CHUNK_BLOCK_RATIO(bitmap) ((bitmap)->mddev->bitmap_info.chunksize >> BITMAP_BLOCK_SHIFT)
#define CHUNK_BLOCK_SHIFT(bitmap) ((bitmap)->chunkshift - BITMAP_BLOCK_SHIFT)
#define CHUNK_BLOCK_SHIFT(bitmap) ((bitmap)->chunkshift - BITMAP_BLOCK_SHIFT)
#define CHUNK_BLOCK_MASK(bitmap) (CHUNK_BLOCK_RATIO(bitmap) - 1)
/* when hijacked, the counters and bits represent even larger "chunks" */
/* there will be 1024 chunks represented by each counter in the page pointers */
#define PAGEPTR_BLOCK_RATIO(bitmap) \
(CHUNK_BLOCK_RATIO(bitmap) << PAGE_COUNTER_SHIFT >> 1)
#define PAGEPTR_BLOCK_SHIFT(bitmap) \
(CHUNK_BLOCK_SHIFT(bitmap) + PAGE_COUNTER_SHIFT - 1)
#define PAGEPTR_BLOCK_MASK(bitmap) (PAGEPTR_BLOCK_RATIO(bitmap) - 1)
#endif
#endif
...
@@ -181,12 +169,6 @@ struct bitmap_page {
...
@@ -181,12 +169,6 @@ struct bitmap_page {
unsigned
int
count
:
31
;
unsigned
int
count
:
31
;
};
};
/* keep track of bitmap file pages that have pending writes on them */
struct
page_list
{
struct
list_head
list
;
struct
page
*
page
;
};
/* the main bitmap structure - one per mddev */
/* the main bitmap structure - one per mddev */
struct
bitmap
{
struct
bitmap
{
struct
bitmap_page
*
bp
;
struct
bitmap_page
*
bp
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录