Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
gsplhtlxg
clone-Linux
提交
a3b05e8f
C
clone-Linux
项目概览
gsplhtlxg
/
clone-Linux
通知
2
Star
0
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
clone-Linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a3b05e8f
编写于
7月 28, 2006
作者:
J
Jens Axboe
提交者:
Jens Axboe
9月 30, 2006
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[PATCH] Kill various deprecated/unused block layer defines/functions
Signed-off-by:
N
Jens Axboe
<
axboe@suse.de
>
上级
1ea25ecb
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
0 addition
and
32 deletion
+0
-32
drivers/block/cciss.c
drivers/block/cciss.c
+0
-1
drivers/block/cpqarray.c
drivers/block/cpqarray.c
+0
-1
include/linux/blkdev.h
include/linux/blkdev.h
+0
-29
include/linux/fs.h
include/linux/fs.h
+0
-1
未找到文件。
drivers/block/cciss.c
浏览文件 @
a3b05e8f
...
...
@@ -1229,7 +1229,6 @@ static inline void complete_buffers(struct bio *bio, int status)
int
nr_sectors
=
bio_sectors
(
bio
);
bio
->
bi_next
=
NULL
;
blk_finished_io
(
len
);
bio_endio
(
bio
,
nr_sectors
<<
9
,
status
?
0
:
-
EIO
);
bio
=
xbh
;
}
...
...
drivers/block/cpqarray.c
浏览文件 @
a3b05e8f
...
...
@@ -989,7 +989,6 @@ static inline void complete_buffers(struct bio *bio, int ok)
xbh
=
bio
->
bi_next
;
bio
->
bi_next
=
NULL
;
blk_finished_io
(
nr_sectors
);
bio_endio
(
bio
,
nr_sectors
<<
9
,
ok
?
0
:
-
EIO
);
bio
=
xbh
;
...
...
include/linux/blkdev.h
浏览文件 @
a3b05e8f
...
...
@@ -578,12 +578,6 @@ static inline void blk_clear_queue_full(struct request_queue *q, int rw)
#define rq_mergeable(rq) \
(!((rq)->cmd_flags & RQ_NOMERGE_FLAGS) && blk_fs_request((rq)))
/*
* noop, requests are automagically marked as active/inactive by I/O
* scheduler -- see elv_next_request
*/
#define blk_queue_headactive(q, head_active)
/*
* q->prep_rq_fn return values
*/
...
...
@@ -621,11 +615,6 @@ static inline void blk_queue_bounce(request_queue_t *q, struct bio **bio)
if ((rq->bio)) \
for (_bio = (rq)->bio; _bio; _bio = _bio->bi_next)
struct
sec_size
{
unsigned
block_size
;
unsigned
block_size_bits
;
};
extern
int
blk_register_queue
(
struct
gendisk
*
disk
);
extern
void
blk_unregister_queue
(
struct
gendisk
*
disk
);
extern
void
register_disk
(
struct
gendisk
*
dev
);
...
...
@@ -690,16 +679,6 @@ extern void end_that_request_last(struct request *, int);
extern
void
end_request
(
struct
request
*
req
,
int
uptodate
);
extern
void
blk_complete_request
(
struct
request
*
);
static
inline
int
rq_all_done
(
struct
request
*
rq
,
unsigned
int
nr_bytes
)
{
if
(
blk_fs_request
(
rq
))
return
(
nr_bytes
>=
(
rq
->
hard_nr_sectors
<<
9
));
else
if
(
blk_pc_request
(
rq
))
return
nr_bytes
>=
rq
->
data_len
;
return
0
;
}
/*
* end_that_request_first/chunk() takes an uptodate argument. we account
* any value <= as an io error. 0 means -EIO for compatability reasons,
...
...
@@ -807,14 +786,6 @@ static inline int queue_dma_alignment(request_queue_t *q)
return
retval
;
}
static
inline
int
bdev_dma_aligment
(
struct
block_device
*
bdev
)
{
return
queue_dma_alignment
(
bdev_get_queue
(
bdev
));
}
#define blk_finished_io(nsects) do { } while (0)
#define blk_started_io(nsects) do { } while (0)
/* assumes size > 256 */
static
inline
unsigned
int
blksize_bits
(
unsigned
int
size
)
{
...
...
include/linux/fs.h
浏览文件 @
a3b05e8f
...
...
@@ -79,7 +79,6 @@ extern int dir_notify_enable;
#define WRITE 1
#define READA 2
/* read-ahead - don't block if no resources */
#define SWRITE 3
/* for ll_rw_block() - wait for buffer lock */
#define SPECIAL 4
/* For non-blockdevice requests in request queue */
#define READ_SYNC (READ | (1 << BIO_RW_SYNC))
#define WRITE_SYNC (WRITE | (1 << BIO_RW_SYNC))
#define WRITE_BARRIER ((1 << BIO_RW) | (1 << BIO_RW_BARRIER))
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录