mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-29 01:51:39 +00:00
block: remove the CONFIG_BLOCK ifdef in blk_types.h
Now that we have a separate header for struct bio_vec there is absolutely no excuse for including this header from non-block I/O code. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@fb.com>
This commit is contained in:
parent
be297968da
commit
7281b4526c
1 changed files with 0 additions and 3 deletions
|
@ -17,7 +17,6 @@ struct io_context;
|
||||||
struct cgroup_subsys_state;
|
struct cgroup_subsys_state;
|
||||||
typedef void (bio_end_io_t) (struct bio *);
|
typedef void (bio_end_io_t) (struct bio *);
|
||||||
|
|
||||||
#ifdef CONFIG_BLOCK
|
|
||||||
/*
|
/*
|
||||||
* main unit of I/O for the block layer and lower layers (ie drivers and
|
* main unit of I/O for the block layer and lower layers (ie drivers and
|
||||||
* stacking drivers)
|
* stacking drivers)
|
||||||
|
@ -126,8 +125,6 @@ struct bio {
|
||||||
#define BVEC_POOL_OFFSET (16 - BVEC_POOL_BITS)
|
#define BVEC_POOL_OFFSET (16 - BVEC_POOL_BITS)
|
||||||
#define BVEC_POOL_IDX(bio) ((bio)->bi_flags >> BVEC_POOL_OFFSET)
|
#define BVEC_POOL_IDX(bio) ((bio)->bi_flags >> BVEC_POOL_OFFSET)
|
||||||
|
|
||||||
#endif /* CONFIG_BLOCK */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Operations and flags common to the bio and request structures.
|
* Operations and flags common to the bio and request structures.
|
||||||
* We use 8 bits for encoding the operation, and the remaining 24 for flags.
|
* We use 8 bits for encoding the operation, and the remaining 24 for flags.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue